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
418 KiB
150 lines
418 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5888],{26227:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return ke}});var ae=oe(54476),Se=oe(59301),Ke={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=Ke,fe=oe(7657),we=function(Fe,it){return Se.createElement(fe.Z,(0,ae.Z)({},Fe,{ref:it,icon:Ie}))},le=Se.forwardRef(we),ke=le},41464:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return ke}});var ae=oe(54476),Se=oe(59301),Ke={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=Ke,fe=oe(7657),we=function(Fe,it){return Se.createElement(fe.Z,(0,ae.Z)({},Fe,{ref:it,icon:Ie}))},le=Se.forwardRef(we),ke=le},61481:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return ke}});var ae=oe(54476),Se=oe(59301),Ke={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=Ke,fe=oe(7657),we=function(Fe,it){return Se.createElement(fe.Z,(0,ae.Z)({},Fe,{ref:it,icon:Ie}))},le=Se.forwardRef(we),ke=le},33853:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return ke}});var ae=oe(54476),Se=oe(59301),Ke={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=Ke,fe=oe(7657),we=function(Fe,it){return Se.createElement(fe.Z,(0,ae.Z)({},Fe,{ref:it,icon:Ie}))},le=Se.forwardRef(we),ke=le},12893:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return ke}});var ae=oe(54476),Se=oe(59301),Ke={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=Ke,fe=oe(7657),we=function(Fe,it){return Se.createElement(fe.Z,(0,ae.Z)({},Fe,{ref:it,icon:Ie}))},le=Se.forwardRef(we),ke=le},32134:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return ke}});var ae=oe(54476),Se=oe(59301),Ke={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=Ke,fe=oe(7657),we=function(Fe,it){return Se.createElement(fe.Z,(0,ae.Z)({},Fe,{ref:it,icon:Ie}))},le=Se.forwardRef(we),ke=le},38819:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return ke}});var ae=oe(54476),Se=oe(59301),Ke={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=Ke,fe=oe(7657),we=function(Fe,it){return Se.createElement(fe.Z,(0,ae.Z)({},Fe,{ref:it,icon:Ie}))},le=Se.forwardRef(we),ke=le},69453:function(Ge,st){"use strict";st.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},72179:function(){"use strict";function Ge(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ge.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(Ge.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(Ge.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(Ge.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof Ge))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var st=[];function oe(ne,a){var y=st.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=st.pop();return ne===void 0?new go.Point:ne}function Se(ne){st.push(ne)}function Ke(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ne-y,ie=b-z,ge=NaN,me=NaN;if(re===0)if(ie===0)ne===y&&(ge=ne,me=a);else{var se=(x-ee)/ie,Le=x-se*b;ge=ne,me=se*ge+Le}else if(ie===0){var Me=(a-E)/re,qe=a-Me*ne;ge=b,me=Me*ge+qe}else{var Me=(a-E)/re,se=(x-ee)/ie,qe=a-Me*ne,Le=x-se*b;ge=(Le-qe)/(Me-se),me=Me*ge+qe}return te.x=ge,te.y=me,te}function Ie(ne,a,y,E,b,x,z,ee,te,re,ie,ge,me,se){var Le=1-te,Me=te,qe=ne*Le+y*Me,xt=a*Le+E*Me,It=y*Le+b*Me,be=E*Le+x*Me,Ne=b*Le+z*Me,xe=x*Le+ee*Me,De=qe*Le+It*Me,nt=xt*Le+be*Me,ct=It*Le+Ne*Me,Ue=be*Le+xe*Me,ot=De*Le+ct*Me,Ze=nt*Le+Ue*Me;re.x=qe,re.y=xt,ie.x=De,ie.y=nt,ge.x=ot,ge.y=Ze,me.x=ct,me.y=Ue,se.x=Ne,se.y=xe}var fe=new go.Spot(.156,.156),we=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=fe,b.spot2=we,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ge("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ge("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ge("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var ke=[];function Ve(){var ne=ke.pop();return ne===void 0?[]:ne}function Fe(ne){ne.length=0,ke.push(ne)}function it(ne){for(var a=Ve(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Te(ne){var a=_e(ne),y=Ve();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 Fe(a),y}function _e(ne){for(var a=it(ne),y=Ve(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ke(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],Fe(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=it(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()),Fe(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=it(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()),Fe(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=it(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()),Fe(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=it(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()),Fe(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=it(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()),Fe(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=it(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()),Fe(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=it(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()),Fe(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=_e(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Fe(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=_e(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Fe(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=_e(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Fe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=_e(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Fe(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=_e(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Fe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=_e(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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()),Fe(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=Te(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(),Fe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=Te(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(),Fe(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=Te(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(),Fe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=Te(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(),Fe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=Te(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(),Fe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=Te(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(),Fe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ge("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=fe,x.spot2=we,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=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 Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),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 Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ge("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ge("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=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=ae(),ie=ae(),ge=ae(),me=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,me,me);var se=ae(),Le=ae(),Me=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,Me,se,Le);var qe=ae(),xt=ae(),It=ae();Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,qe,xt,It,me,me);var be=ae(),Ne=ae(),xe=ae();return Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,xe,be,Ne),te.add(new go.PathSegment(go.PathSegment.Move,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,be.x*a,be.y*y,Ne.x*a,Ne.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,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,xe.x*a,xe.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,It.x*a,It.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,Le.x*a,Le.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,It.x*a,It.y*y,qe.x*a,qe.y*y,xt.x*a,xt.y*y).close()),Se(re),Se(ie),Se(ge),Se(me),Se(se),Se(Le),Se(Me),Se(qe),Se(xt),Se(It),Se(be),Se(Ne),Se(xe),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ae(),re=ae(),ie=ae(),ge=ae(),me=new go.PathFigure((z-x)*a,ee*y,!1);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var se=oe(re.x,re.y);Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var Le=oe(re.x,re.y);me.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,(Le.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Le.x*a,Le.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var Me=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var qe=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(qe),Se(te),Se(re),Se(ie),Se(ge),Se(se),Se(Le),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*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(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,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=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,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=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ge("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ke(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ke(.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 Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var 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=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return re.spot1=new go.Spot(ge.x,ge.y),ge=Ke(.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 Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var 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=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ae());return re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ke(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ke(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=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(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=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(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=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(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,me=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+me)*a,(re-ge)*y,(te+ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,me=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,me=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,me=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,me=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-me)*y,(te-me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ge("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=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(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=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(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=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(ne,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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,me=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.2,ee=.2,te=.5,re=.5;var Le=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(Le),Le.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)),Le.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)),Le.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)),Le.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 Me=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=le*.8,ee=.8,te=1,re=.5;var qe=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(qe),qe.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)),qe.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)),qe.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)),qe.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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ae(),re=ae(),ie=ae(),ge=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var me=oe(re.x,re.y),se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),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(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,me=.5,se=0,Le=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Le.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)),Le.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)),Le.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,me=z,se=z,Le=ie*me,Me=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Le+me)/2)*a,(te+(se+Me)/2)*y,(ee-me)*a,(te+Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-Me)*y,(ee-Le)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Le)*a,(te-se)*y,(ee+me)*a,(te-Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Me)*y,(ee+(Le+me)/2)*a,(te+(se+Me)/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 qe=new go.PathFigure(.2*a,y,!1);E.add(qe),qe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var xt=new go.PathFigure(.8*a,y,!1);return E.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=le*.1,ie=.1,ge=.9,me=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=le*.05,me=.175,se=.95,ee=new go.PathFigure((me-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.375,se=.95,te=new go.PathFigure((me-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.625,se=.95,re=new go.PathFigure((me-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.825,se=.95,Le=new go.PathFigure((me-ie)*a,se*y,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y).close());var Me=new go.PathFigure(0,y,!1);return E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=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(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*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(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},25730:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ge={},st="5.0",oe={},ae=null,Se=!1,Ke=!1,Ie=null,fe=!1,we=null,le=null,ke=0;ke<arguments.length;ke++){var Ve=arguments[ke];if(Ve!==null)switch(typeof Ve){case"number":st=Ve.toFixed(1);break;case"string":Ve.match(new RegExp("^[0-9]\\.[0-9]+$"))?st=Ve:Ie=Ve;break;case"object":typeof Ve.is3D!="undefined"?ae=Ve:oe=Ve;break;case"boolean":Se=Ve,Ke=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!Ke&&(Se=!0)),Ie!==null&&oe.id===void 0&&(oe.id=Ie);var Fe="",it="",Te=!1,_e=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(he){return parseFloat(he)>4?parseFloat(he):5};Ge.setHTML5Codebase=function(he,$e){le=he,Ue(he,$e)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(he,$e){var je=parseFloat(he);if(je!==NaN&&je<5){console.log("The GeoGebra HTML5 codebase version "+je+" is deprecated. Using version latest instead.");return}we=he,ct(he,$e)},Ge.getHTML5CodebaseVersion=function(){return ne},Ge.getParameters=function(){return oe},Ge.setFontsCSSURL=function(he){z=he},Ge.setGiacJSURL=function(he){},Ge.setJNLPFile=function(he){Fe=he},Ge.setJNLPBaseDir=function(he){},Ge.inject=function(){function he(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",je=oe.id,ft,Je=!1,dt=0;dt<arguments.length;dt++){var de=arguments[dt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$e=de:je=arguments[dt]):typeof de=="boolean"?Je=de:de instanceof HTMLElement&&(ft=de)}tt();function tt(){if(!fe){setTimeout(tt,200);return}$e=De($e);var pt=ft||document.getElementById(je);if(!pt){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(pt,!1),oe.width===void 0&&pt.clientWidth&&(oe.width=pt.clientWidth),oe.height===void 0&&pt.clientHeight&&(oe.height=pt.clientHeight),!(oe.width&&oe.height)&&$e==="html5"&&(delete oe.width,delete oe.height),_e=$e,$e==="screenshot")xt(pt,oe);else{var yt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?yt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(yt=(!re()||he())&&ie()),yt?(_e="screenshot",be(pt,oe,Je,$e)):qe(pt,oe,Je)}}};function re(){try{return window.self!==window.top}catch(he){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return ae},Ge.isJavaInstalled=function(){return!1};var ge=function(he){var $e=function(dt){var de=JSON.parse(dt),tt=function(Mt){return Mt.type=="G"||Mt.type=="E"},pt=de.elements?de.elements.filter(tt)[0]:de;if(!pt||!pt.url){je();return}oe.fileName=pt.url,me(pt.settings||{}),ae.is3D=!0;var yt="https://www.geogebra.org/images/";Ge.setPreviewImage(E||pt.previewUrl,yt+"GeoGebra_loading.png",yt+"applet_play.png"),he()},je=function(){oe.onError&&oe.onError(),ot("Error: Fetching material (id "+oe.material_id+") failed.",oe)},ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Je="/materials/"+oe.material_id+"?scope=basic";se("https://"+ft+"/api/proxy.php?path="+encodeURIComponent(Je),$e,je)};function me(he){var $e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(je){he[je]=!!he[je]}),$e.forEach(function(je){oe[je]===void 0&&he[je]!==void 0&&(oe[je]=he[je])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(he,$e,je){var ft=new XMLHttpRequest;ft.open("GET",he),ft.onload=function(){$e(ft.responseText)},ft.onerror=je,ft.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return _e},Ge.setPreviewImage=function(he,$e,je){E=he,b=$e,x=je},Ge.removeExistingApplet=function(he,$e){var je;typeof he=="string"&&(he=document.getElementById(he)),_e=null;var ft=null;for(je=0;je<he.childNodes.length;je++){var Je=he.childNodes[je],dt=Je.className;dt==="applet_screenshot"?$e?(Je.style.display="block",_e="screenshot"):Je.style.display="none":dt!=="applet_scaler prerender"&&(he.removeChild(Je),ft=dt&&dt.indexOf("appletParameters")!=-1?Je.id:null,je--)}var de=oe.id!==void 0?oe.id:ft,tt=window[de];tt&&typeof tt.getBase64=="function"&&(tt.remove(),window[de]=null)},Ge.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var he=Ge.getAppletObject();return he&&typeof he.recalculateEnvironments=="function"?(he.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var he=Ge.getAppletObject();return he&&typeof he.startAnimation=="function"?(he.startAnimation(),!0):!1},Ge.stopAnimation=function(){var he=Ge.getAppletObject();return he&&typeof he.stopAnimation=="function"?(he.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var he=oe.id!==void 0?oe.id:"ggbApplet";return window[he]},Ge.resize=function(){};var Le=function(he,$e,je){var ft=document.createElement("param");ft.setAttribute("name",$e),ft.setAttribute("value",je),he.appendChild(ft)},Me=function(he){return he&&he!=="false"},qe=function(he,$e,je){te(ne)<=4.2&&(je=!0);var ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Je=document.createElement("div");Je.classList.add("appletParameters","notranslate");var dt=$e.width,de=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(te(ne)<=4.4)Me($e.showToolBar)&&($e.height-=7),Me($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&Me($e.showToolBar)&&($e.width=605,dt=605);else{var tt=100;(Me($e.showToolBar)||Me($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),tt=Me($e.showMenuBar)?245:155),dt<tt&&($e.width=tt,dt=tt)}Je.style.border="none",Je.style.display="inline-block";for(var pt in $e)$e.hasOwnProperty(pt)&&pt!=="appletOnLoad"&&Je.setAttribute("data-param-"+pt,$e[pt]);z&&Je.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(he,$e)},window.addEventListener("resize",function(Et){Ge.resize()});var yt=typeof $e.appletOnLoad=="function"?$e.appletOnLoad:function(){};if(!je&&$e.width!==void 0){$e.hasOwnProperty("showSplash")||Je.setAttribute("data-param-showSplash","false");var Mt=he.querySelector(".applet_scaler.prerender"),Oe=Mt!==null;if(Oe)var ue=Mt.querySelector(".ggb_preview");else{var ue=xe(dt,de,$e.borderColor,!1);Mt=document.createElement("div"),Mt.className="applet_scaler",Mt.style.position="relative",Mt.style.display="block",Mt.style.width=dt+"px",Mt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Mt,"66%"),te(ne)>=5?($e.appletOnLoad=function(Et){var _t=he.querySelector(".ggb_preview");_t&&_t.parentNode.removeChild(_t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Mt),window.GGBT_wsf_view&&$(window).trigger("resize"),yt(Et)},Oe||Mt.appendChild(ue)):Je.appendChild(ue),Mt.appendChild(Je),Oe||he.appendChild(Mt),setTimeout(function(){Ge.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(Je),he.appendChild(Pe),$e.appletOnLoad=function(Et){Ge.resize(),yt(Et)}}function Re(Et,_t){_t&&typeof _t.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Et,_t.appletOnLoad):renderGGBElement(Et),ot("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",_t)}function Ye(Et,_t){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Et,params:_t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ln){Re(ln.article,ln.params)}),html5AppletsToProcess=null)},te(ne)<5&&(Et.className+=" geogebraweb")):Re(Et,_t)}if(ft){scriptLoadStarted=!0;for(var ut=0;ut<Je.childNodes.length;ut++){var ht=Je.childNodes[ut].tagName;ht==="TABLE"&&(Je.removeChild(Je.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var Bt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Bt!=null&&Bt.parentNode.removeChild(Bt)}var Nt=document.createElement("script"),Wt=function(){Ye(Je,$e)};Nt.src=it+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Nt.src,ot("GeoGebra HTML5 codebase loaded: '"+it+"'.",$e),!le&&(!we||we=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Wt()):it.requirejs?__webpack_require__.e(3690).then(function(){var Et=[__webpack_require__(63690)];Wt.apply(null,Et)}.bind(this)).catch(__webpack_require__.oe):(Nt.onload=Wt,he.appendChild(Nt))}else Ye(Je,$e);$e.height=de,$e.width=dt},xt=function(he,$e,je){var ft=xe($e.width,$e.height,$e.borderColor,je),Je=document.createElement("div");Je.style.position="relative",Je.style.display="block",Je.style.width=$e.width+"px",Je.style.height=$e.height+"px",Je.className="applet_screenshot applet_scaler"+(je?" applet_screenshot_play":""),Je.appendChild(ft);var dt=GGBAppletUtils.getScale($e,he,je);je?(he.appendChild(Ne()),window.GGBT_wsf_view||(he.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Je,"66%"),he.appendChild(Je),dt!==1&&!isNaN(dt)&&(GGBAppletUtils.scaleElement(Je,dt),Je.style.width=$e.width+"px",Je.style.height=$e.height+"px",Je.parentNode.style.width=$e.width*dt+"px",Je.parentNode.style.height=$e.height*dt+"px"),Ge.resize=function(){It(he,ft,Je,je)},window.addEventListener("resize",function(de){Ge.resize()}),Ge.resize()};function It(he,$e,je,ft){if(he.contains($e)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(he.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(he)}var Je=GGBAppletUtils.getScale(oe,he,ft);je.parentNode!==null&&(!isNaN(Je)&&Je!==1?(GGBAppletUtils.scaleElement(je,Je),je.parentNode.style.width=oe.width*Je+"px",je.parentNode.style.height=oe.height*Je+"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(he),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(he,$e){$e.appendChild(he)};var be=function(he,$e,je,ft){xt(he,$e,!0);for(var Je=function(){var tt=[];for(de=0;de<he.childNodes.length;de++)tt.push(he.childNodes[de]);if(window.GGBT_wsf_view){var pt=window.GGBT_wsf_view.renderFullScreen(he,$e.id),yt=document.getElementById("fullscreencontainer"),Mt=jQuery(he).find(".fullscreencontent");Mt.length>0?(pt.remove(),Mt.attr("id","fullscreencontent").show(),jQuery(yt).append(Mt),window.dispatchEvent(new Event("resize"))):qe(pt,$e,!1),window.GGBT_wsf_view.launchFullScreen(yt)}else _e=ft,qe(he,$e,!1);if(!window.GGBT_wsf_view)for(de=0;de<tt.length;de++)he.removeChild(tt[de])},dt=he.getElementsByClassName("ggb_preview_play"),de=0;de<dt.length;de++)dt[de].addEventListener("click",Je,!1),dt[de].addEventListener("ontouchstart",Je,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(he),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ne=function(){var he=document.createElement("div");if(he.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $e='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',je=document.createElement("style");je.styleSheet?je.styleSheet.cssText=$e:je.appendChild(document.createTextNode($e)),document.getElementsByTagName("head")[0].appendChild(je)}return he},xe=function(he,$e,je,ft){var Je=document.createElement("div");Je.className="ggb_preview",Je.style.position="absolute",Je.style.zIndex="90",Je.style.width=he-2+"px",Je.style.height=$e-2+"px",Je.style.top="0px",Je.style.left="0px",Je.style.overflow="hidden",Je.style.backgroundColor="white";var dt="lightgrey";je!==void 0&&(je==="none"?dt="transparent":dt=je),Je.style.border="1px solid "+dt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var tt,pt,yt;if(!ft){tt=document.createElement("img"),tt.style.position="absolute",tt.style.zIndex="1001",tt.style.opacity=1,de.style.opacity=.3,pt=360,pt>he/4*3&&(pt=he/4*3),yt=pt/5.8,tt.setAttribute("src",b),tt.setAttribute("width",pt),tt.setAttribute("height",yt);var Mt=(he-pt)/2,Oe=($e-yt)/2;tt.style.left=Mt+"px",tt.style.top=Oe+"px",Je.appendChild(tt)}}return Je.appendChild(de),Je},De=function(he){return he=he.toLowerCase(),he==="html5"||he==="screenshot"?he:"html5"},nt=["web","webSimple","web3d","tablet","tablet3d","phone"],ct=function(he,$e){if(ne=he,$e){Ue(ne,!0);return}var je=!Se;if(je){var ft=te(ne);!isNaN(ft)&&ft<4.4&&(je=!1)}var Je,dt;window.location.protocol.substr(0,4)==="http"?Je=window.location.protocol:Je="http:";var de=ne.indexOf("//");de>0?dt=ne:de===0?dt=Je+ne:dt="https://www.geogebra.org/apps/5.2.814.0/";for(var tt in nt)if(ne.slice(nt[tt].length*-1)===nt[tt]||ne.slice((nt[tt].length+1)*-1)===nt[tt]+"/"){Ue(dt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&je&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Me(oe.showToolBar)&&!Me(oe.showMenuBar)&&!Me(oe.showAlgebraInput)&&!Me(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?dt+="webSimple/":dt+="web3d/",Ue(dt,!1)},Ue=function(he,$e){if(he.requirejs){it=he;return}he.slice(-1)!=="/"&&(he+="/"),it=he,$e===null&&($e=he.indexOf("http")===-1),Te=$e,a="web.nocache.js",y=!1;var je=it.split("/");je.length>1&&(!$e&&je[je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):nt.indexOf(je[je.length-2])>=0&&(a=je[je.length-2]+".nocache.js")),je=he.split("/"),ne=je[je.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var ft=parseFloat(ne);ft!==NaN&&ft<5&&he.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ft+" is deprecated. Using version latest instead."),ct("5.0",$e))},ot=function(he,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(he)};oe.material_id!==void 0?ge(Ze):Ze();function Ze(){var he=st;we!==null?he=we:parseFloat(he)<5&&(he="5.0"),ct(he,!1),le!==null&&Ue(le,Te),fe=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function st(fe,we){we!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+we+","+we+")",fe.style.webkitTransform="scale("+we+","+we+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function oe(fe,we,le,ke,Ve,Fe){var it=null;if(Fe!=null&&Fe!="")for(var Te=fe.parentNode;Te!=null;)if((" "+Te.className+" ").indexOf(" "+Fe+" ")>-1){it=Te;break}else Te=Te.parentNode;var _e=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(it)_e=it.offsetWidth,ne=Math.max(ke?it.offsetWidth:0,it.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(_e=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=_e):(_e=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=_e&&(Ve===void 0||!Ve)&&(document.dir==="rtl"?(E=_e-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return fe&&((le===void 0||!le)&&we>0&&we+y<_e?_e=we:_e-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ne-=x)),{width:_e,height:ne}}function ae(fe,we,le,ke,Ve){if(fe.isScreenshoGenerator)return 1;var Fe=ke!==void 0&&ke,it=fe.noScaleMargin!=null&&fe.noScaleMargin,Te=function(ee){return ee&&ee!=="false"},_e=Te(fe.autoHeight),ne=oe(we,fe.width,le,_e,Fe&&window.GGBT_wsf_view||it,Ve),a=parseInt(ne.width),y=fe.width,E=fe.height;if(y===void 0){var b=we.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Fe?1:ne.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Se(fe,we,le){var ke=1,Ve,Fe=!1;if(fe.hasOwnProperty("allowUpscale")&&(Fe=fe.allowUpscale),fe.hasOwnProperty("scale")&&(ke=parseFloat(fe.scale),(isNaN(ke)||ke===null||ke===0)&&(ke=1),ke>1&&(Fe=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Fe=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))Ve=ae(fe,we,Fe,le,fe.scaleContainerClass);else return ke;return Fe&&(!fe.hasOwnProperty("scale")||ke===1)?Ve:Math.min(ke,Ve)}function Ke(fe){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=fe.getBoundingClientRect(),Ve=(we-ke.width)/2,Fe=(le-ke.height)/2;Fe<0&&(Fe=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ve<40?fe.style.left="40px":fe.style.left=Ve+"px",fe.style.top=Fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Fe<40?fe.style.top="40px":fe.style.top=Fe+"px",fe.style.left=Ve+"px")}function Ie(fe,we){var le=fe.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var ke=Se(we,fe);Ge()&&le.setAttribute("data-param-scale",ke);for(var Ve=null,Fe=0;Fe<fe.childNodes.length;Fe++)if(fe.childNodes[Fe].className!==void 0&&fe.childNodes[Fe].className.match(/^applet_scaler/)){Ve=fe.childNodes[Fe];break}if(Ve!==null&&Ve.querySelector(".noscale")!==null)return;var it=we.id!==void 0?we.id:"ggbApplet",Te=window[it];(Te==null||!Te.recalculateEnvironments)&&Ve!==null&&!Ve.className.match(/fullscreen/)&&(Ve.parentNode.style.transform="",!isNaN(ke)&&ke!==1?(Ve.parentNode.style.width=we.width*ke+"px",Ve.parentNode.style.height=we.height*ke+"px",st(Ve,ke)):(st(Ve,1),Ve.parentNode.style.width=we.width+"px",Ve.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ke(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Ge,positionCenter:Ke,getScale:Se,scaleElement:st}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,st){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ge){var st=s[L].bindings;s[L].bindings=function(){for(var oe=st?st():{},ae=Ge[webModule.__softPermutationId],Se=O;Se<ae.length;Se++){var Ke=ae[Se];oe[Ke[O]]=Ke[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var st=document.compatMode==U?V:W;t.write(st+X),t.close()}}}function w(Ge){function st(ae){function Se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=Se();if(Ke){ae();return}function Ie(){if(!Ke){if(!Se())return;Ke=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var fe=setInterval(function(){Ie()},$)}function oe(ae){var Se=u(),Ke=Se.body,Ie=Se.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=ae,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ke.appendChild(Ie)}st(function(){oe(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var st=u(),oe=st.body,ae=st.createElement(_);ae.language=ab,ae.text=Ge,oe.appendChild(ae),oe.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var st=c[Ge];return st==null?null:st},r=d,webModule.__errFn=e}function B(){function Ge(fe){var we=fe.lastIndexOf(rb);we==-1&&(we=fe.length);var le=fe.indexOf(sb);le==-1&&(le=fe.length);var ke=fe.lastIndexOf(tb,Math.min(le,we));return ke>=O?fe.substring(O,ke+P):W}function st(fe){if(!fe.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=fe+vb,fe=Ge(we.src)}return fe}function oe(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function ae(){for(var fe=o.getElementsByTagName(_),we=O;we<fe.length;++we)if(fe[we].src.indexOf(xb)!=-1)return Ge(fe[we].src);return W}function Se(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function Ke(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var Ie=oe();return Ie==W&&(Ie=ae()),Ie==W&&(Ie=Se()),Ie==W&&Ke()&&(Ie=Ge(o.location.href)),Ie=st(Ie),Ie}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],st=O,oe=[],ae=[];function Se(fe){var we=ae[fe](),le=oe[fe];if(we in le)return we;var ke=[];for(var Ve in le)ke[le[Ve]]=Ve;throw r&&r(fe,ke,we),null}if(__gwt_isKnownPropertyValue=function(fe,we){return we in oe[fe]},webModule.__getPropMap=function(){var fe={};for(var we in oe)oe.hasOwnProperty(we)&&(fe[we]=Se(we));return fe},webModule.__computePropValue=Se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Ie=Ke.indexOf(Db);Ie!=-1&&(st=parseInt(Ke.substring(Ie+P),$),Ke=Ke.substring(O,Ie))}catch(fe){}return webModule.__softPermutationId=st,C(Ke+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})()},82977:function(Ge,st,oe){"use strict";oe.d(st,{Ax:function(){return Ie},Ds:function(){return fe},KI:function(){return le},SI:function(){return Ke},f1:function(){return Se}});var ae=oe(49647);function Se(ke){let Ve=!0;if(ke.length>0){for(let Fe=0;Fe<ke.length;Fe++)if(ke[Fe].compile_success==0||!ke[Fe].compile_success){Ve=!1;break}}else Ve=!1;return Ve}function Ke(ke,Ve=""){let Fe=[];for(let it=0;it<ke.length;it++){let Te=ke[it],_e=Ve?`${Ve}/${Te.name}`:`${Te.name}`;Fe.push({title:Te.name,type:Te.type,isLeaf:Te.type!=="tree",key:_e})}return Fe}function Ie(ke,Ve,Fe){for(let it=0;it<ke.length;it++){let Te=ke[it];if(Te.key===Ve){Te.children=Fe;break}Te.children&&Ie(Te.children,Ve,Fe)}return ke}function fe(ke,Ve,Fe){let it;return function(){let Te=this,_e=arguments,ne=function(){it=null,Fe||ke.apply(Te,_e)},a=Fe&&!it;clearTimeout(it),it=setTimeout(ne,Ve),a&&ke.apply(Te,_e)}}const we=!0,le=ae.Z.API_SERVER},99099:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return It}});var ae=oe(59301),Se=oe(75790),Ke=oe(24905),Ie=oe(12893),fe=oe(32134),we=oe(98280),le=oe(78241),ke=oe(57809),Ve={},Fe=Object.defineProperty,it=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,ne=(be,Ne,xe)=>Ne in be?Fe(be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:xe}):be[Ne]=xe,a=(be,Ne)=>{for(var xe in Ne||(Ne={}))Te.call(Ne,xe)&&ne(be,xe,Ne[xe]);if(it)for(var xe of it(Ne))_e.call(Ne,xe)&&ne(be,xe,Ne[xe]);return be},y=(be,Ne,xe)=>new Promise((De,nt)=>{var ct=Ze=>{try{ot(xe.next(Ze))}catch(he){nt(he)}},Ue=Ze=>{try{ot(xe.throw(Ze))}catch(he){nt(he)}},ot=Ze=>Ze.done?De(Ze.value):Promise.resolve(Ze.value).then(ct,Ue);ot((xe=xe.apply(be,Ne)).next())});const E=Ke.default.Group,b=({classroomList:be,loading:Ne,user:xe,exercise_id:De=null,homework_common_id:nt=null,setitem:ct,item:Ue,type:ot,rz:Ze,dispatch:he})=>{var $e,je,ft,Je,dt,de,tt,pt;const yt=(0,Se.useIntl)(),[Mt,Oe]=(0,ae.useState)([]);let[ue,Pe]=(0,ae.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Re=(0,Se.useParams)(),[Ye,ut]=(0,ae.useState)(!1),[ht,Bt]=(0,ae.useState)(!1),[Nt]=le.default.useForm();(0,ae.useEffect)(()=>{Ze&&(ue.zydatas=Ze,Pe(a({},ue)),Ue!=null&&Ue.ec_course_id&&Wt())},[Ue,Ze]);function Wt(){return y(this,null,function*(){console.log("----",Ue),yield Et(Ue==null?void 0:Ue.ec_major_school_id),yield _t(Ue==null?void 0:Ue.ec_year_id),yield ln(Ue==null?void 0:Ue.ec_course_id),Nt.setFieldsValue({ec_course_id:Ue==null?void 0:Ue.ec_course_id,ec_major_school_id:Ue==null?void 0:Ue.ec_major_school_id,ec_point_ids:Ue==null?void 0:Ue.ec_point_ids,ec_year_id:Ue==null?void 0:Ue.ec_year_id})})}function Et(St){return y(this,null,function*(){const Ut=yield(0,we.ZP)(`/api/ec_major_schools/${St}/ec_years/get_year_list.json`,{method:"get"});ue.jbdatas=Ut==null?void 0:Ut.data,Pe(a({},ue)),Nt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function _t(St){return y(this,null,function*(){const Ut=yield(0,we.ZP)(`/api/ec_years/${St}/ec_courses/get_courses.json`,{method:"get"});ue.kcdatas=Ut==null?void 0:Ut.data,Pe(a({},ue)),Nt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const ln=St=>y(void 0,null,function*(){const Ut=yield(0,we.ZP)(`/api/ec_courses/${St}/ec_points.json`,{method:"get",params:{ec_course_id:St}});ue.zsdatas=Ut==null?void 0:Ut.data,Pe(a({},ue))});return ae.createElement("div",{className:Ve.from},ae.createElement(le.default,{form:Nt,layout:"inline",onValuesChange:St=>{console.log("----",St),St.ec_major_school_id&&(ue.jbdatas=[],ue.kcdatas=[],ue.zsdatas=[],Pe(a({},ue)),Et(St.ec_major_school_id)),St.ec_year_id&&(ue.kcdatas=[],ue.zsdatas=[],Pe(a({},ue)),_t(St.ec_year_id)),St.ec_course_id&&(ue.zsdatas=[],Pe(a({},ue)),ln(St.ec_course_id))},onFinish:St=>y(void 0,null,function*(){ct(St)})},ae.createElement(le.default.Item,{label:yt.formatMessage({id:"common.certificationMajor",defaultMessage:"\u8BA4\u8BC1\u4E13\u4E1A"}),name:"ec_major_school_id"},ae.createElement(ke.default,{style:{width:150},disabled:(($e=ue.zydatas)==null?void 0:$e.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(je=ue==null?void 0:ue.zydatas)==null?void 0:je.map((St,Ut)=>ae.createElement(ke.default.Option,{key:Ut,value:St==null?void 0:St.ec_major_school_id},St==null?void 0:St.name)))),ae.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ae.createElement(ke.default,{style:{width:150},disabled:((ft=ue.jbdatas)==null?void 0:ft.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Je=ue==null?void 0:ue.jbdatas)==null?void 0:Je.map((St,Ut)=>ae.createElement(ke.default.Option,{key:Ut,value:St==null?void 0:St.ec_year_id},St==null?void 0:St.year)))),ae.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ae.createElement(ke.default,{style:{width:150},disabled:((dt=ue.kcdatas)==null?void 0:dt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=ue==null?void 0:ue.kcdatas)==null?void 0:de.map((St,Ut)=>ae.createElement(ke.default.Option,{key:Ut,value:St==null?void 0:St.id},St==null?void 0:St.name)))),ae.createElement(le.default.Item,{label:yt.formatMessage({id:"classroomClassroomExperiments.knowledgePoints",defaultMessage:"\u77E5\u8BC6\u70B9"}),name:"ec_point_ids"},ae.createElement(ke.default,{onChange:()=>{Nt.submit()},style:{width:150},mode:"multiple",disabled:((tt=ue.zsdatas)==null?void 0:tt.length)<=0,placeholder:yt.formatMessage({id:"questionBankAddQuestion.pleaseSelectKnowledgePoints",defaultMessage:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"})},(pt=ue==null?void 0:ue.zsdatas)==null?void 0:pt.map((St,Ut)=>ae.createElement(ke.default.Option,{key:Ut,value:St==null?void 0:St.id},St==null?void 0:St.name))))))};var x=(0,Se.connect)(({classroomList:be,loading:Ne,globalSetting:xe,user:De})=>({classroomList:be,globalSetting:xe,loading:Ne.effects,user:De}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(be,Ne,xe)=>Ne in be?z(be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:xe}):be[Ne]=xe,se=(be,Ne)=>{for(var xe in Ne||(Ne={}))ie.call(Ne,xe)&&me(be,xe,Ne[xe]);if(re)for(var xe of re(Ne))ge.call(Ne,xe)&&me(be,xe,Ne[xe]);return be},Le=(be,Ne)=>ee(be,te(Ne)),Me=(be,Ne,xe)=>new Promise((De,nt)=>{var ct=Ze=>{try{ot(xe.next(Ze))}catch(he){nt(he)}},Ue=Ze=>{try{ot(xe.throw(Ze))}catch(he){nt(he)}},ot=Ze=>Ze.done?De(Ze.value):Promise.resolve(Ze.value).then(ct,Ue);ot((xe=xe.apply(be,Ne)).next())});const qe=Ke.default.Group,xt=({classroomList:be,loading:Ne,user:xe,exercise_id:De=null,homework_common_id:nt=null,setitem:ct,type:Ue,dispatch:ot})=>{var Ze,he;const $e=(0,Se.useIntl)();let[je,ft]=(0,ae.useState)([{}]),[Je,dt]=(0,ae.useState)([]);function de(){return Me(this,null,function*(){var pt,yt,Mt;let Oe=yield(0,we.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:De,homework_common_id:nt}});if(((pt=Oe==null?void 0:Oe.data)==null?void 0:pt.length)>0){let ue=[];(yt=Oe==null?void 0:Oe.data)==null||yt.map(Pe=>{var Re;(Re=Pe==null?void 0:Pe.ec_point_ids)==null||Re.map(Ye=>{ue.push(Ye)})}),ct(Le(se({},(Mt=Oe==null?void 0:Oe.data)==null?void 0:Mt[0]),{ec_point_ids:ue})),ft(Oe==null?void 0:Oe.data)}})}(0,ae.useEffect)(()=>{var pt,yt;(yt=(pt=xe==null?void 0:xe.userInfo)==null?void 0:pt.course)!=null&&yt.course_school_id&&tt()},[(he=(Ze=xe==null?void 0:xe.userInfo)==null?void 0:Ze.course)==null?void 0:he.course_school_id]);function tt(){return Me(this,null,function*(){var pt,yt;const Mt=yield(0,we.ZP)(`/api/schools/${(yt=(pt=xe==null?void 0:xe.userInfo)==null?void 0:pt.course)==null?void 0:yt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});dt(Mt==null?void 0:Mt.data),(nt||De)&&de()})}return ae.createElement("div",null,ae.createElement("p",{style:{fontSize:"16px",fontWeight:400}},$e.formatMessage({id:"common.engineeringCertificationPoints",defaultMessage:"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"})),je==null?void 0:je.map((pt,yt)=>ae.createElement("div",{key:yt,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ae.createElement(x,{rz:Je,item:pt,type:yt,setitem:Mt=>{je.splice(yt,1,Mt),ft([...je]);let Oe=[];je==null||je.map(ue=>{var Pe;(Pe=ue==null?void 0:ue.ec_point_ids)==null||Pe.map(Re=>{Oe.push(Re)})}),ct(Le(se({},Mt),{ec_point_ids:Oe}))}}),yt!=0&&ae.createElement(Ie.Z,{onClick:()=>{je.splice(yt,1),ft([...je])},style:{marginLeft:10,fontSize:"20px"}}),ae.createElement(fe.Z,{onClick:()=>{je.push({}),ft([...je])},style:{marginLeft:10,fontSize:"20px"}}))))};var It=(0,Se.connect)(({classroomList:be,loading:Ne,globalSetting:xe,user:De})=>({classroomList:be,globalSetting:xe,loading:Ne.effects,user:De}))(xt)},5140:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return Te}});var ae=oe(59301),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=oe(92310),Ie=oe.n(Ke),fe=oe(71418),we=oe(2859),le=oe(98280),ke=oe(19374),Ve=oe(75790),Fe=(_e,ne,a)=>new Promise((y,E)=>{var b=ee=>{try{z(a.next(ee))}catch(te){E(te)}},x=ee=>{try{z(a.throw(ee))}catch(te){E(te)}},z=ee=>ee.done?y(ee.value):Promise.resolve(ee.value).then(b,x);z((a=a.apply(_e,ne)).next())}),Te=({data:_e,className:ne,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,Ve.useIntl)(),te=(0,ae.useRef)(null),re=(0,ae.useRef)(null),ie=(0,ae.useRef)(null),ge=(0,ae.useRef)(null),[me,se]=(0,ae.useState)(!1),[Le,Me]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),_e!=null&&_e.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",_e!=null&&_e.src&&qe()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[_e==null?void 0:_e.visible]);const qe=()=>Fe(void 0,null,function*(){se(!0),Me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const xe=yield(0,ke.ZJ)(_e==null?void 0:_e.src);te.current.src="",te.current.src=xe,te.current.onload=function(){Ne()},se(!1),Me("")}),xt=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",E()},It=xe=>Fe(void 0,null,function*(){se(!0),Me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const De=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:_e.title,file:xe.dataUrl}});De!=null&&De.id&&!z?(yield(0,le.ZP)(`/api/attachments/${_e.id}/add_subitem.json`,{method:"post",body:{subitem_id:De==null?void 0:De.id,settings:JSON.stringify(xe.state)}})).status===0&&b():De!=null&&De.id&&b(De),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",se(!1),Me("")}),be=()=>{const xe=document.querySelector('a[href="https://markerjs.com/"]');xe&&xe.parentNode&&(xe.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:ee.formatMessage({id:"shixuns.text",defaultMessage:"\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:ee.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(nt=>{const ct=document.querySelector(nt.name);ct&&ct.setAttribute("title",nt.title)})},Ne=()=>{re.current=new we.hP(te.current),re.current.targetRoot=ge.current,re.current.addEventListener("render",It),re.current.addEventListener("beforeclose",xt),x&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),_e!=null&&_e.snapshotData&&re.current.restoreState(_e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),be()},300)};return ae.createElement(ae.Fragment,null,(_e==null?void 0:_e.visible)&&ae.createElement(fe.Z,{spinning:me,tip:Le,style:{position:"absolute"}},ae.createElement("div",{ref:ge,className:Ie()(Se.imageDimensions,ne,a?Se.fullWidth:""),style:y},ae.createElement("img",{className:Se.img,ref:te}))))}},88601:function(Ge,st,oe){"use strict";var ae=oe(59301),Se=oe(95237),Ke=oe(43604),Ie=oe(99313),fe=oe(3113),we=oe(12470),le=oe(69453),ke=oe(48136),Ve=oe(75790),Fe=oe(59301);const it=(0,ae.forwardRef)(({callback:Te,showSaveButton:_e,value:ne=""},a)=>{const y=(0,ae.useRef)(),E=(0,Ve.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\u62EC\u53F7\u53D6\u6574"}),value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\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}`}]}]}],z=re=>{y.current.setValue(y.current.getValue()+" "+re.value+" ")},ee=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Fe.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},b.map((re,ie)=>Fe.createElement(Ke.Z,{flex:"110px",className:le.Z.item},Fe.createElement("div",null,Fe.createElement(we.Z,{value:`$$${re.value}$$`}),re.name),Fe.createElement("div",{className:le.Z.children},re.children.map((ge,me)=>Fe.createElement("div",{key:me},Fe.createElement("h1",null,ge.name),Fe.createElement(Se.Z,{gutter:[10,10]},ge.data.map((se,Le)=>Fe.createElement(Ke.Z,{key:Le,onClick:()=>z(se),className:le.Z.diamond},Fe.createElement(we.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Fe.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},x.map((re,ie)=>Fe.createElement(Ke.Z,{flex:"110px",className:le.Z.item},Fe.createElement("div",null,Fe.createElement(we.Z,{value:"`$$"+re.value+"$$`"}),re.name),Fe.createElement("div",{className:le.Z.children},re.children.map((ge,me)=>Fe.createElement("div",{key:me},ge.name&&Fe.createElement("h1",null,ge.name),Fe.createElement(Se.Z,{gutter:[10,10]},ge.data.map((se,Le)=>Fe.createElement(Ke.Z,{key:Le,onClick:()=>z(se),className:le.Z.diamond},Fe.createElement(we.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],te=()=>{var re=document.createElement("div");re.innerHTML=y.current.getValue();var ie=re.innerText;return Te&&Te(ie),ie};return(0,ae.useImperativeHandle)(a,()=>({getData:te})),Fe.createElement("div",{className:le.Z.mathWrap},Fe.createElement(Ie.default,{defaultActiveKey:"1",items:ee}),Fe.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:y,style:{width:800,marginTop:30,fontSize:18}},ne||""),_e&&Fe.createElement("div",{className:le.Z.button},Fe.createElement(fe.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});st.Z=it},49318:function(Ge,st,oe){"use strict";oe.d(st,{z:function(){return nt},Z:function(){return ct}});var ae=oe(59301),Se=oe(54580),Ke=oe(8591),Ie=oe(43418),fe=oe(3113),we=oe(49647),le=oe(90278),ke=Object.defineProperty,Ve=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,Te=(Ue,ot,Ze)=>ot in Ue?ke(Ue,ot,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[ot]=Ze,_e=(Ue,ot)=>{for(var Ze in ot||(ot={}))Fe.call(ot,Ze)&&Te(Ue,Ze,ot[Ze]);if(Ve)for(var Ze of Ve(ot))it.call(ot,Ze)&&Te(Ue,Ze,ot[Ze]);return Ue},ne=(Ue,ot,Ze)=>new Promise((he,$e)=>{var je=dt=>{try{Je(Ze.next(dt))}catch(de){$e(de)}},ft=dt=>{try{Je(Ze.throw(dt))}catch(de){$e(de)}},Je=dt=>dt.done?he(dt.value):Promise.resolve(dt.value).then(je,ft);Je((Ze=Ze.apply(Ue,ot)).next())});const a="\u3000\u3000";function y(Ue){var ot=["Bytes","KB","MB","GB","TB"];if(Ue==0)return"0 Byte";var Ze=parseInt(""+Math.floor(Math.log(Ue)/Math.log(1024)),10);return(Ue/Math.pow(1024,Ze)).toFixed(1)+" "+ot[Ze]}var E=({value:Ue=[],action:ot,onChange:Ze,className:he,maxSize:$e=150,title:je="\u6587\u4EF6\u4E0A\u4F20",accept:ft=null})=>{const Je={multiple:!1,fileList:Ue,accept:ft,withCredentials:!0,beforeUpload:de=>de.size/1024/1024<$e?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${$e}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(de){var tt,pt,yt,Mt;let Oe=[...de.fileList];if(Oe=Oe.map(ue=>(ue.name.indexOf(a)===-1&&(ue.name=`${ue.name}${a}${y(ue.size)}`),_e({},ue))),de.file.status==="done"&&((pt=(tt=de.file)==null?void 0:tt.response)==null?void 0:pt.status)===-1){message.error((Mt=(yt=de.file)==null?void 0:yt.response)==null?void 0:Mt.message),Ze([]);return}Ze(Oe)},onRemove:de=>ne(void 0,null,function*(){const tt=de.size/1024/1024;return de.status==="uploading"?!0:tt<$e&&(de.response?de.response.id:de.uid)?yield removeAttachment(de.response?de.response.id:de.id):!0})};function dt(de){de.preventDefault(),de.stopPropagation()}return React.createElement("div",{className:`single-upload ${he||""}`},React.createElement(Upload,_e({},Je),React.createElement(Button,{type:"primary",title:Ue.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:Ue.length>0,ghost:!0},je),React.createElement("span",{onClick:dt,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",$e,"M)"," ")))},b=oe(61481),x=oe(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(Ue,ot,Ze)=>ot in Ue?z(Ue,ot,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[ot]=Ze,ge=(Ue,ot)=>{for(var Ze in ot||(ot={}))te.call(ot,Ze)&&ie(Ue,Ze,ot[Ze]);if(ee)for(var Ze of ee(ot))re.call(ot,Ze)&&ie(Ue,Ze,ot[Ze]);return Ue};const me=Ue=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ue),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=",Le=oe(75790),Me=Object.defineProperty,qe=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,be=(Ue,ot,Ze)=>ot in Ue?Me(Ue,ot,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ue[ot]=Ze,Ne=(Ue,ot)=>{for(var Ze in ot||(ot={}))xt.call(ot,Ze)&&be(Ue,Ze,ot[Ze]);if(qe)for(var Ze of qe(ot))It.call(ot,Ze)&&be(Ue,Ze,ot[Ze]);return Ue},xe=(Ue,ot,Ze)=>new Promise((he,$e)=>{var je=dt=>{try{Je(Ze.next(dt))}catch(de){$e(de)}},ft=dt=>{try{Je(Ze.throw(dt))}catch(de){$e(de)}},Je=dt=>dt.done?he(dt.value):Promise.resolve(dt.value).then(je,ft);Je((Ze=Ze.apply(Ue,ot)).next())});const{Dragger:De}=Se.default;function nt(Ue){let ot=[];return Ue&&Ue.length>0&&(ot=Ue.map(Ze=>({uid:Ze.id,id:Ze.id,name:Ze.title+a+Ze.filesize,url:Ze.url,filesize:Ze.filesize,status:"done",response:{id:Ze.id}}))),ot}var ct=({value:Ue,onChange:ot,action:Ze,data:he,className:$e,maxSize:je=150,title:ft,showRemoveModal:Je=!1,accept:dt="",additionalText:de,isDragger:tt,number:pt=1e3,aloneClear:yt=!1,realTimeRemove:Mt=!0,uploadText:Oe,setFileProgress:ue,showFileProgress:Pe})=>{const Re=(0,Le.useIntl)(),[Ye,ut]=(0,ae.useState)(!1);let[ht,Bt]=(0,ae.useState)(Ue||[]),[Nt,Wt]=(0,ae.useState)(1);(0,ae.useEffect)(()=>{Ue&&(Nt===1&&Bt([...Ue]),Wt(2),pt===(Ue==null?void 0:Ue.length)&&ut(!0))},[Ue]);const Et=()=>{setTimeout(()=>{ht.pop(),Bt([...ht])},500)};Pe&&ue(ht.some(St=>St.status==="uploading"));const _t={multiple:!0,disabled:Ye,accept:dt,withCredentials:!0,fileList:ht,beforeUpload:(St,Ut)=>{const Kt=St.size/1024/1024;return ht.concat(Ut).length>pt?(ht.pop(),Bt([...ht]),Ke.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${pt}\u4E2A\u6587\u4EF6`),yt?Promise.reject():(Et(),!1)):Kt<je?!0:(Ke.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${je}MB).`),yt?Promise.reject():(Et(),!1))},data:he,action:Ze||`${we.Z.API_SERVER}/api/attachments.json`,onChange(St){var Ut,Kt,Jt,pe;if(St.file.status==="removed"?ht=St.fileList:ht=(0,x.uniqBy)([...St.fileList,...ht],"uid"),St.file.status==="done"&&((Kt=(Ut=St.file)==null?void 0:Ut.response)==null?void 0:Kt.status)===-1){Ke.ZP.error((pe=(Jt=St.file)==null?void 0:Jt.response)==null?void 0:pe.message);return}ht.length>=pt?ut(!0):ut(!1),Bt([...ht]),ht=ht.map(Ce=>{var Xe,mt;return(Xe=Ce==null?void 0:Ce.response)!=null&&Xe.id&&(Ce.url=(mt=Ce==null?void 0:Ce.response)==null?void 0:mt.url),Ce.name.indexOf(a)===-1&&(Ce.name=`${Ce.name}${a}${y(Ce.size)}`),Ne({},Ce)}),console.log("info:",St,ht),ot(ht)},onRemove:St=>xe(void 0,null,function*(){if(!Mt)return!0;const Ut=()=>xe(void 0,null,function*(){if(St.response?St.response.id:St.id){let Jt=yield(0,le.JZ)(St.response?St.response.id:St.uid);return Promise.resolve(Jt)}else return!0});return Je?new Promise((Kt,Jt)=>{Ie.default.confirm({centered:!0,width:530,okText:Re.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:Re.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:Re.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),content:ae.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>xe(void 0,null,function*(){const pe=yield Ut();Ke.ZP.success("\u5220\u9664\u6210\u529F"),Kt(!0)}),onCancel:()=>Kt(!1)})}):yield Ut()})};function ln(St){St.preventDefault(),St.stopPropagation()}return ae.createElement("div",{className:`multi-upload ${$e||""}`},tt&&ae.createElement(De,Ne({},_t),ae.createElement("p",{className:"ant-upload-drag-icon"},ae.createElement(b.Z,null)),ae.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ae.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",je,"MB)"," "),de),!tt&&ae.createElement(Se.default,Ne({},_t),ae.createElement(fe.ZP,{disabled:Ye,className:"upload_button"},ae.createElement("img",{className:"aBtn_img",src:se}),ft||Re.formatMessage({id:"classroomGraphicGroupHomework.uploadAttachment",defaultMessage:"\u4E0A\u4F20\u9644\u4EF6"})),ae.createElement("span",{onClick:ln,className:"upload_text"},Oe||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${je}MB)`)))}},45923:function(Ge,st,oe){"use strict";oe.d(st,{h:function(){return te}});var ae=oe(59301),Se=oe(57809),Ke=oe(78241),Ie=oe(3113),fe=oe(89780),we=oe.n(fe),le=oe(6303),ke=oe(87671),Ve=oe(75790),Fe=Object.defineProperty,it=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,y=(re,ie,ge)=>ie in re?Fe(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):re[ie]=ge,E=(re,ie)=>{for(var ge in ie||(ie={}))ne.call(ie,ge)&&y(re,ge,ie[ge]);if(_e)for(var ge of _e(ie))a.call(ie,ge)&&y(re,ge,ie[ge]);return re},b=(re,ie)=>it(re,Te(ie));const x=Se.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ee={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"]};st.Z=({callback:re,onCancel:ie})=>{const[ge,me]=(0,ae.useState)("python");function se(qe){me(ee[qe][1])}function Le(qe){re(qe)}const Me=(0,Ve.useIntl)();return ae.createElement(Ke.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Le,style:{width:500}}),ae.createElement(Ke.default.Item,{label:Me.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ae.createElement(Se.default,{getPopupContainer:qe=>qe.parentNode,onChange:se},Object.keys(ee).map(qe=>ae.createElement(x,{key:qe,value:qe},ee[qe][0])))),ae.createElement(Ke.default.Item,{label:Me.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(te,{mode:ge})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Me.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Ie.ZP,{type:"ghost",onClick:ie},Me.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function te({value:re,onChange:ie,mode:ge,options:me={}}){const se=(0,ae.useRef)(),[Le,Me]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(Le){let qe=function(xt){const It=xt.getValue();ie&&ie(It)};return Le.on("change",qe),()=>{Le.off("change",qe)}}},[Le,ie]),(0,ae.useEffect)(()=>{Le&&Le.setOption("mode",ge)},[Le,ge]),(0,ae.useEffect)(()=>{Le&&(re!==Le.getValue()||re==="")&&setTimeout(()=>{Le.setValue(re||"")},300)},[Le,re]),(0,ae.useEffect)(()=>{if(se.current&&!Le){const qe=we().fromTextArea(se.current,E({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},me));Me(qe)}},[se.current,Le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},48551:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return na}});var ae=oe(59301),Se=oe(89780),Ke=oe.n(Se),Ie=oe(76374),fe=oe(6303),we=oe(6313),le=oe(25717),ke=oe(99498),Ve=oe(25419),Fe=oe(67549),it=oe(12470),Te=({value:ve="",className:Ee,showTextOnly:ye,showLines:rt,style:wt={}})=>{const Gt=(0,ae.useMemo)(()=>"",[ve]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Gt}}))},_e=oe(75790),ne=oe(59301),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(ve,Ee,ye)=>Ee in ve?a(ve,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ve[Ee]=ye,te=(ve,Ee)=>{for(var ye in Ee||(Ee={}))x.call(Ee,ye)&&ee(ve,ye,Ee[ye]);if(b)for(var ye of b(Ee))z.call(Ee,ye)&&ee(ve,ye,Ee[ye]);return ve},re=(ve,Ee)=>y(ve,E(Ee));function ie({onActionCallback:ve,title:Ee,icon:ye,actionName:rt,className:wt="",children:Gt}){function en(){ve(rt)}return ne.createElement("a",{title:Ee,className:wt,onClick:en},ne.createElement("i",{className:`${ye}`}),Gt)}var ge=({watch:ve,showNullButton:Ee,showNullProgramButton:ye,onActionCallback:rt,fullScreen:wt,insertTemp:Gt,hidetoolBar:en,extraUse:Yt})=>{const At=(0,_e.useIntl)(),Qn=[...[{title:At.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:At.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:At.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:At.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:At.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:At.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:At.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:At.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:At.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:At.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:At.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:At.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:At.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:At.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:At.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:At.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${ve?At.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):At.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${ve?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ne.createElement("ul",{className:"markdown-toolbar-container"},!en&&Qn.map((An,lt)=>ne.createElement("li",{key:lt},An.actionName?ne.createElement(ie,re(te({},An),{onActionCallback:rt})):ne.createElement("span",{className:"v-line"}))),Ee?ne.createElement("li",null,ne.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rt},ne.createElement("span",{className:"fill-tip"},At.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",At.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,ye?ne.createElement(ne.Fragment,null,ne.createElement("li",null,ne.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:rt},ne.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ne.createElement("li",null,ne.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:rt},ne.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Gt&&ne.createElement("li",null,ne.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:At.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${Gt}`,onActionCallback:rt},ne.createElement("span",{className:"fill-tip"},At.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),Yt&&ne.createElement("li",null,Yt),ne.createElement("li",{className:"btn-full-screen"},ne.createElement(ie,{icon:`${wt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:wt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rt})))},me=oe(44991),se=oe(78241),Le=oe(92832),Me=oe(3113),qe=Object.defineProperty,xt=Object.defineProperties,It=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,De=(ve,Ee,ye)=>Ee in ve?qe(ve,Ee,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ve[Ee]=ye,nt=(ve,Ee)=>{for(var ye in Ee||(Ee={}))Ne.call(Ee,ye)&&De(ve,ye,Ee[ye]);if(be)for(var ye of be(Ee))xe.call(Ee,ye)&&De(ve,ye,Ee[ye]);return ve},ct=(ve,Ee)=>xt(ve,It(Ee));const Ue={labelCol:{span:4},wrapperCol:{span:20}};var ot=({callback:ve,onCancel:Ee})=>{function ye(wt){ve(wt)}const rt=(0,_e.useIntl)();return ae.createElement(se.default,ct(nt({},Ue),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ye,style:{width:500}}),ae.createElement(se.default.Item,{label:rt.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Le.default,null)),ae.createElement(se.default.Item,{label:rt.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Le.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},rt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Me.ZP,{type:"ghost",onClick:Ee},rt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Ze=oe(45923),he=oe(76021),$e=oe(43418),je=oe(95237),ft=oe(5140),Je=oe(59301),dt=({callback:ve,onCancel:Ee})=>{const ye=document.createElement("canvas"),rt=ye.getContext("2d");ye.width=1e3,ye.height=800,rt.fillStyle="#ffffff",rt.fillRect(0,0,ye.width,ye.height);const wt=ye.toDataURL("image/png");return Je.createElement($e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Je.createElement(je.Z,{style:{height:"100vh"}},Je.createElement(ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:wt,visible:!0,title:String(Date.now())},onOk:Gt=>{ve({src:Gt.url})},onClose:Ee})))},de=oe(12378);function tt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(tt,go.CommandHandler),tt.prototype.canAlignSelection=function(){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<2)},tt.prototype.alignLeft=function(){var ve=this.diagram;ve.startTransaction("aligning left");var Ee=1/0;ve.selection.each(function(ye){ye instanceof go.Link||(Ee=Math.min(ye.position.x,Ee))}),ve.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(Ee,ye.position.y))}),ve.commitTransaction("aligning left")},tt.prototype.alignRight=function(){var ve=this.diagram;ve.startTransaction("aligning right");var Ee=-1/0;ve.selection.each(function(ye){if(!(ye instanceof go.Link)){var rt=ye.actualBounds.x+ye.actualBounds.width;Ee=Math.max(rt,Ee)}}),ve.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(Ee-ye.actualBounds.width,ye.position.y))}),ve.commitTransaction("aligning right")},tt.prototype.alignTop=function(){var ve=this.diagram;ve.startTransaction("alignTop");var Ee=1/0;ve.selection.each(function(ye){ye instanceof go.Link||(Ee=Math.min(ye.position.y,Ee))}),ve.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(ye.position.x,Ee))}),ve.commitTransaction("alignTop")},tt.prototype.alignBottom=function(){var ve=this.diagram;ve.startTransaction("aligning bottom");var Ee=-1/0;ve.selection.each(function(ye){if(!(ye instanceof go.Link)){var rt=ye.actualBounds.y+ye.actualBounds.height;Ee=Math.max(rt,Ee)}}),ve.selection.each(function(ye){ye instanceof go.Link||ye.move(new go.Point(ye.actualBounds.x,Ee-ye.actualBounds.height))}),ve.commitTransaction("aligning bottom")},tt.prototype.alignCenterX=function(){var ve=this.diagram,Ee=ve.selection.first();if(Ee){ve.startTransaction("aligning Center X");var ye=Ee.actualBounds.x+Ee.actualBounds.width/2;ve.selection.each(function(rt){rt instanceof go.Link||rt.move(new go.Point(ye-rt.actualBounds.width/2,rt.actualBounds.y))}),ve.commitTransaction("aligning Center X")}},tt.prototype.alignCenterY=function(){var ve=this.diagram,Ee=ve.selection.first();if(Ee){ve.startTransaction("aligning Center Y");var ye=Ee.actualBounds.y+Ee.actualBounds.height/2;ve.selection.each(function(rt){rt instanceof go.Link||rt.move(new go.Point(rt.actualBounds.x,ye-rt.actualBounds.height/2))}),ve.commitTransaction("aligning Center Y")}},tt.prototype.alignColumn=function(ve){var Ee=this.diagram;Ee.startTransaction("align Column"),ve===void 0&&(ve=0),ve=parseFloat(ve);var ye=new Array;Ee.selection.each(function(Yt){Yt instanceof go.Link||ye.push(Yt)});for(var rt=0;rt<ye.length-1;rt++){var wt=ye[rt],Gt=wt.actualBounds.y+wt.actualBounds.height+ve,en=ye[rt+1];en.move(new go.Point(wt.actualBounds.x,Gt))}Ee.commitTransaction("align Column")},tt.prototype.alignRow=function(ve){ve===void 0&&(ve=0),ve=parseFloat(ve);var Ee=this.diagram;Ee.startTransaction("align Row");var ye=new Array;Ee.selection.each(function(Yt){Yt instanceof go.Link||ye.push(Yt)});for(var rt=0;rt<ye.length-1;rt++){var wt=ye[rt],Gt=wt.actualBounds.x+wt.actualBounds.width+ve,en=ye[rt+1];en.move(new go.Point(Gt,wt.actualBounds.y))}Ee.commitTransaction("align Row")},tt.prototype.canRotate=function(ve){var Ee=this.diagram;return!(Ee===null||Ee.isReadOnly||Ee.isModelReadOnly||Ee.selection.count<1)},tt.prototype.rotate=function(ve){ve===void 0&&(ve=90);var Ee=this.diagram;Ee.startTransaction("rotate "+ve.toString());var Ee=this.diagram;Ee.selection.each(function(ye){ye instanceof go.Link||ye instanceof go.Group||(ye.angle+=ve)}),Ee.commitTransaction("rotate "+ve.toString())},tt.prototype.pullToFront=function(){var ve=this.diagram;ve.startTransaction("pullToFront");var Ee=new go.Map;ve.selection.each(function(ye){Ee.set(ye.layer,0)}),Ee.iteratorKeys.each(function(ye){var rt=0;ye.parts.each(function(wt){if(!wt.isSelected){var Gt=wt.zOrder;isNaN(Gt)?wt.zOrder=0:rt=Math.max(rt,Gt)}}),Ee.set(ye,rt)}),ve.selection.each(function(ye){tt._assignZOrder(ye,Ee.get(ye.layer)+1)}),ve.commitTransaction("pullToFront")},tt.prototype.pushToBack=function(){var ve=this.diagram;ve.startTransaction("pushToBack");var Ee=new go.Map;ve.selection.each(function(ye){Ee.set(ye.layer,0)}),Ee.iteratorKeys.each(function(ye){var rt=0;ye.parts.each(function(wt){if(!wt.isSelected){var Gt=wt.zOrder;isNaN(Gt)?wt.zOrder=0:rt=Math.min(rt,Gt)}}),Ee.set(ye,rt)}),ve.selection.each(function(ye){tt._assignZOrder(ye,Ee.get(ye.layer)-1-tt._findGroupDepth(ye))}),ve.commitTransaction("pushToBack")},tt._assignZOrder=function(ve,Ee,ye){ye===void 0&&(ye=ve),ve.layer===ye.layer&&(ve.zOrder=Ee),ve instanceof go.Group&&ve.memberParts.each(function(rt){tt._assignZOrder(rt,Ee+1,ye)})},tt._findGroupDepth=function(ve){if(ve instanceof go.Group){var Ee=0;return ve.memberParts.each(function(ye){Ee=Math.max(Ee,tt._findGroupDepth(ye))}),Ee+1}else return 0},tt.prototype.doKeyDown=function(){var ve=this.diagram;if(ve!==null){var Ee=ve.lastInput;if(Ee.key==="Up"||Ee.key==="Down"||Ee.key==="Left"||Ee.key==="Right"){var ye=this.arrowKeyBehavior;if(ye==="none")return;if(ye==="select"){this._arrowKeySelect();return}else if(ye==="move"){this._arrowKeyMove();return}else if(ye==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},tt.prototype._getAllParts=function(){var ve=new Array;return this.diagram.nodes.each(function(Ee){ve.push(Ee)}),this.diagram.parts.each(function(Ee){ve.push(Ee)}),ve},tt.prototype._arrowKeyMove=function(){var ve=this.diagram,Ee=ve.lastInput,ye=0,rt=0;if(Ee.control||Ee.meta)ye=1,rt=1;else if(ve.grid!==null){var wt=ve.grid.gridCellSize;rt=wt.width,ye=wt.height}ve.startTransaction("arrowKeyMove"),ve.selection.each(function(Gt){Ee.key==="Up"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y-ye)):Ee.key==="Down"?Gt.move(new go.Point(Gt.actualBounds.x,Gt.actualBounds.y+ye)):Ee.key==="Left"?Gt.move(new go.Point(Gt.actualBounds.x-rt,Gt.actualBounds.y)):Ee.key==="Right"&&Gt.move(new go.Point(Gt.actualBounds.x+rt,Gt.actualBounds.y))}),ve.commitTransaction("arrowKeyMove")},tt.prototype._arrowKeySelect=function(){var ve=this.diagram,Ee=ve.lastInput,ye=null;Ee.key==="Up"?ye=this._findNearestPartTowards(270):Ee.key==="Down"?ye=this._findNearestPartTowards(90):Ee.key==="Left"?ye=this._findNearestPartTowards(180):Ee.key==="Right"&&(ye=this._findNearestPartTowards(0)),ye!==null&&(Ee.shift?ye.isSelected=!0:Ee.control||Ee.meta?ye.isSelected=!ye.isSelected:ve.select(ye))},tt.prototype._findNearestPartTowards=function(ve){var Ee=this.diagram.selection.first();if(Ee===null)return null;for(var ye=Ee.actualBounds.center,rt=this._getAllParts(),wt=1/0,Gt=Ee,en=0;en<rt.length;en++){var Yt=rt[en];if(Yt!==Ee&&Yt.canSelect()){var At=Yt.actualBounds.center,bn=ye.directionPoint(At),Qn=this._angleCloseness(bn,ve);if(Qn<=45){var An=ye.distanceSquaredPoint(At);An*=1+Math.sin(Qn*Math.PI/180),An<wt&&(wt=An,Gt=Yt)}}}return Gt},tt.prototype._angleCloseness=function(ve,Ee){return Math.min(Math.abs(Ee-ve),Math.min(Math.abs(Ee+360-ve),Math.abs(Ee-360-ve)))},tt.prototype._arrowKeyTree=function(){var ve=this.diagram,Ee=ve.selection.first();if(Ee instanceof go.Node){var ye=ve.lastInput;if(ye.key==="Right"){if(!Ee.isTreeLeaf)if(!Ee.isTreeExpanded)ve.commandHandler.canExpandTree(Ee)&&ve.commandHandler.expandTree(Ee);else{var rt=this._sortTreeChildrenByY(Ee).first();rt!==null&&ve.select(rt)}}else if(ye.key==="Left")if(!Ee.isTreeLeaf&&Ee.isTreeExpanded)ve.commandHandler.canCollapseTree(Ee)&&ve.commandHandler.collapseTree(Ee);else{var wt=Ee.findTreeParentNode();wt!==null&&ve.select(wt)}else if(ye.key==="Up"){var wt=Ee.findTreeParentNode();if(wt!==null){var Gt=this._sortTreeChildrenByY(wt),en=Gt.indexOf(Ee);if(en>0){for(var Yt=Gt.elt(en-1);Yt!==null&&Yt.isTreeExpanded&&!Yt.isTreeLeaf;){var At=this._sortTreeChildrenByY(Yt);Yt=At.last()}Yt!==null&&ve.select(Yt)}else ve.select(wt)}}else if(ye.key==="Down")if(Ee.isTreeExpanded&&!Ee.isTreeLeaf){var rt=this._sortTreeChildrenByY(Ee).first();rt!==null&&ve.select(rt)}else for(;Ee!==null;){var wt=Ee.findTreeParentNode();if(wt===null)break;var Gt=this._sortTreeChildrenByY(wt),en=Gt.indexOf(Ee);if(en<Gt.length-1){ve.select(Gt.elt(en+1));break}else Ee=wt}var bn=ve.selection.first();bn!==null&&ve.scrollToRect(bn.actualBounds)}},tt.prototype._sortTreeChildrenByY=function(ve){var Ee=new go.List().addAll(ve.findTreeChildrenNodes());return Ee.sort(function(ye,rt){var wt=ye.location,Gt=rt.location;return wt.y<Gt.y?-1:wt.y>Gt.y?1:wt.x<Gt.x?-1:wt.x>Gt.x?1:0}),Ee},tt.prototype.copyToClipboard=function(ve){go.CommandHandler.prototype.copyToClipboard.call(this,ve),this._lastPasteOffset.set(this.pasteOffset)},tt.prototype.pasteFromClipboard=function(){var ve=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ve,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ve},Object.defineProperty(tt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ve){if(ve!=="move"&&ve!=="select"&&ve!=="scroll"&&ve!=="tree"&&ve!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ve);this._arrowKeyBehavior=ve}}),Object.defineProperty(tt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ve){if(!(ve instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ve);this._pasteOffset.set(ve)}});var pt=tt,yt=oe(72179),Mt=oe(43604),Oe=oe(98280),ue={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=oe(59301),Re=(ve,Ee,ye)=>new Promise((rt,wt)=>{var Gt=At=>{try{Yt(ye.next(At))}catch(bn){wt(bn)}},en=At=>{try{Yt(ye.throw(At))}catch(bn){wt(bn)}},Yt=At=>At.done?rt(At.value):Promise.resolve(At.value).then(Gt,en);Yt((ye=ye.apply(ve,Ee)).next())});function Ye({onCancel:ve,callback:Ee}){let ye=(0,ae.useRef)(),rt=(0,ae.useRef)(),wt=(0,ae.useRef)(),Gt=(0,ae.useRef)(!1);const en=(0,ae.useRef)(!1),[Yt,At]=(0,ae.useState)(0);function bn(){const lt=de.bx.make,Qt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ye.current=new de.S0(rt.current,{padding:20,grid:lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:et=>{var Ct=et.diagram.commandHandler.addTopLevelParts(et.diagram.selection,!0);Ct||et.diagram.currentTool.doCancel()},commandHandler:lt(pt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:et=>{var Ct=et.subject;Ct.location=Ct.location.copy().snapToGridPoint(et.diagram.grid.gridOrigin,et.diagram.grid.gridCellSize),setTimeout(()=>{et.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:et=>{var Ct=et.subject;setTimeout(()=>{et.diagram.commandHandler.editTextBlock()})},LinkRelinked:et=>{var Ct=et.parameter.part;Ct.invalidateConnectedLinks();var Lt=et.subject;et.diagram.toolManager.linkingTool.isForwards?Lt.toNode.invalidateConnectedLinks():Lt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ye.current.nodeTemplate=lt(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),lt(de.bn,{name:"SHAPE",fill:Qt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),lt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),lt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ye.current.nodeTemplate.toolTip=lt("ToolTip",lt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},lt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),lt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Hn(et,Ct){var Lt=(Ft,gn)=>{Ft.handled=!0,Ft.diagram.model.commit(an=>{var Zt=gn.part.adornedPart,fn=new de.E9().setRectSpot(Zt.actualBounds,et);fn.subtract(Zt.location),fn.scale(2,2),fn.x+=Math.sign(fn.x)*130,fn.y+=Math.sign(fn.y)*130,fn.add(Zt.location),fn.snapToGridPoint(Ft.diagram.grid.gridOrigin,Ft.diagram.grid.gridCellSize);var pn=an.copyNodeData(Zt.data);an.setGroupKeyForNodeData(pn,an.getGroupKeyForNodeData(Zt.data)),an.addNodeData(pn);var Kn={from:Zt.key,to:an.getKeyForNodeData(pn)};an.addLinkData(Kn);var qn=Ft.diagram.findNodeForData(pn);qn.location=fn,Ft.diagram.select(qn),setTimeout(()=>{Ft.diagram.commandHandler.editTextBlock()},20)})};return lt(de.bn,{figure:Ct,alignment:et,alignmentFocus:et.opposite(),width:et.equals(de.z6.Top)||et.equals(de.z6.Bottom)?25:18,height:et.equals(de.z6.Top)||et.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Qt.white,strokeWidth:4,mouseEnter:(Ft,gn)=>gn.fill="dodgerblue",mouseLeave:(Ft,gn)=>gn.fill="orange",isActionable:!0,click:Lt,contextClick:Lt})}function Rn(et){return lt(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Ct,Lt)=>Lt.fill="dodgerblue",mouseLeave:(Ct,Lt)=>Lt.fill="orange",click:(Ct,Lt)=>{Ct.diagram.commandHandler.showContextMenu(Lt.part.adornedPart)}},et||{})}ye.current.nodeTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.Vm,{padding:10}),Hn(de.z6.Top,"TriangleUp"),Hn(de.z6.Left,"TriangleLeft"),Hn(de.z6.Right,"TriangleRight"),Hn(de.z6.Bottom,"TriangleDown"),Rn({alignment:new de.z6(.75,0)}));function Mn(et,Ct){return(Lt,Ft)=>{Lt.handled=!0,Lt.diagram.model.commit(gn=>{gn.set(Ft.part.adornedPart.data,et,Ct)})}}function ce(et,Ct){return Ct||(Ct="color"),lt(de.bn,{width:16,height:16,stroke:"lightgray",fill:et,margin:1,background:"transparent",mouseEnter:(Lt,Ft)=>Ft.stroke="dodgerblue",mouseLeave:(Lt,Ft)=>Ft.stroke="lightgray",click:Mn(Ct,et),contextClick:Mn(Ct,et)})}function Ae(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",ce(Qt.white,"fill"),ce(Qt.beige,"fill"),ce(Qt.extralightblue,"fill"),ce(Qt.extralightred,"fill"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",ce(Qt.lightgray,"fill"),ce(Qt.lightgreen,"fill"),ce(Qt.lightblue,"fill"),ce(Qt.lightred,"fill")))]}function ze(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",ce(Qt.black),ce(Qt.green),ce(Qt.blue),ce(Qt.red))),lt("ContextMenuButton",lt(de.s_,"Horizontal",ce(Qt.white),ce(Qt.magenta),ce(Qt.purple),ce(Qt.orange)))]}function He(et,Ct){return Ct||(Ct="thickness"),lt(de.bn,"LineH",{width:16,height:16,strokeWidth:et,margin:1,background:"transparent",mouseEnter:(Lt,Ft)=>Ft.background="dodgerblue",mouseLeave:(Lt,Ft)=>Ft.background="transparent",click:Mn(Ct,et),contextClick:Mn(Ct,et)})}function at(et,Ct){return Ct||(Ct="dash"),lt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:et,margin:1,background:"transparent",mouseEnter:(Lt,Ft)=>Ft.background="dodgerblue",mouseLeave:(Lt,Ft)=>Ft.background="transparent",click:Mn(Ct,et),contextClick:Mn(Ct,et)})}function gt(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",He(1),He(2),He(3),He(4))),lt("ContextMenuButton",lt(de.s_,"Horizontal",at(null),at([2,4]),at([4,4])))]}function Qe(et,Ct){return Ct||(Ct="figure"),lt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:et,margin:1,background:"transparent",mouseEnter:(Lt,Ft)=>Ft.fill="dodgerblue",mouseLeave:(Lt,Ft)=>Ft.fill="lightgray",click:Mn(Ct,et),contextClick:Mn(Ct,et)})}ye.current.nodeTemplate.contextMenu=lt("ContextMenu",lt("ContextMenuButton",lt(de.s_,"Horizontal",Qe("Rectangle"),Qe("RoundedRectangle"),Qe("Ellipse"),Qe("Diamond"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Qe("Parallelogram2"),Qe("ManualOperation"),Qe("Procedure"),Qe("Cylinder1"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Qe("Terminator"),Qe("CreateRequest"),Qe("Document"),Qe("TriangleDown"))),Ae(),ze(),gt()),ye.current.groupTemplate=lt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(et,Ct)=>{var Lt=Ct.addMembers(Ct.diagram.selection,!0);Lt||Ct.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),lt(de.s_,"Auto",{name:"BODY"},lt(de.bn,{parameter1:10,fill:Qt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),lt(de.Vm,{background:"transparent",margin:20})),lt(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),ye.current.groupTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.s_,"Auto",lt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),lt(de.Vm,{margin:1.5})),Rn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ye.current.groupTemplate.contextMenu=lt("ContextMenu",Ae(),ze(),gt()),ye.current.linkTemplate=lt(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",et=>et>=1?10:0),new de.KX("toShortLength","dir",et=>et>=1?10:0),new de.KX("points").makeTwoWay(),lt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),lt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",et=>et===1)),lt(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",et=>et>=1),new de.KX("width","thickness",et=>7+3*et),new de.KX("height","thickness",et=>7+3*et),new de.KX("segmentOffset","thickness",et=>new de.E9(-15,4+1.5*et))),lt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",et=>et===2),new de.KX("width","thickness",et=>7+3*et),new de.KX("height","thickness",et=>7+3*et),new de.KX("segmentOffset","thickness",et=>new de.E9(-15,4+1.5*et))),lt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ye.current.linkTemplate.selectionAdornmentTemplate=lt(de.uz,lt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:We(2)},new de.KX("pathPattern","thickness",We)),Rn({alignmentFocus:new de.z6(0,0,-6,-4)}));function We(et){return lt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(et+4).toString()+" H3"})}function Tt(et){var Ct="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return et===0?Ct="M0 0 M16 16 M0 8 L16 8":et===2&&(Ct="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),lt(de.bn,{geometryString:Ct,margin:2,background:"transparent",mouseEnter:(Lt,Ft)=>Ft.background="dodgerblue",mouseLeave:(Lt,Ft)=>Ft.background="transparent",click:Mn("dir",et),contextClick:Mn("dir",et)})}function Be(et){var Ct=(Lt,Ft)=>{Lt.handled=!0,Lt.diagram.model.commit(gn=>{var an=Ft.part.adornedPart;gn.set(an.data,et?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(et?an.toNode:an.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Lt,Ft)=>Ft.background="dodgerblue",mouseLeave:(Lt,Ft)=>Ft.background="transparent",click:Ct,contextClick:Ct})}function Rt(et,Ct){var Lt=0,Ft=de.z6.RightSide;et.equals(de.z6.Top)?(Lt=270,Ft=de.z6.TopSide):et.equals(de.z6.Left)?(Lt=180,Ft=de.z6.LeftSide):et.equals(de.z6.Bottom)&&(Lt=90,Ft=de.z6.BottomSide),Ct||(Lt-=180);var gn=(an,Zt)=>{an.handled=!0,an.diagram.model.commit(fn=>{var pn=Zt.part.adornedPart;fn.set(pn.data,Ct?"toSpot":"fromSpot",de.z6.stringify(Ft)),(Ct?pn.toNode:pn.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{alignment:et,alignmentFocus:et.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Lt,background:"transparent",mouseEnter:(an,Zt)=>Zt.background="dodgerblue",mouseLeave:(an,Zt)=>Zt.background="transparent",click:gn,contextClick:gn})}ye.current.linkTemplate.contextMenu=lt("ContextMenu",ze(),gt(),lt("ContextMenuButton",lt(de.s_,"Horizontal",Tt(0),Tt(1),Tt(2))),lt("ContextMenuButton",lt(de.s_,"Horizontal",lt(de.s_,"Spot",Be(!1),Rt(de.z6.Top,!1),Rt(de.z6.Left,!1),Rt(de.z6.Right,!1),Rt(de.z6.Bottom,!1)),lt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Be(!0),Rt(de.z6.Top,!0),Rt(de.z6.Left,!0),Rt(de.z6.Right,!0),Rt(de.z6.Bottom,!0)))));const tn=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var rn=["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 Sn(et){return console.log("shapeName:",et),rn.indexOf(et)>=0}var kn=new de.YI(wt.current,{maxSelectionCount:1,linkTemplate:lt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:lt(de.uz,"Link",{locationSpot:de.z6.Center},lt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),lt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),lt(de.bn,{isPanelMain:!0,strokeWidth:2}),lt(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(et=>({text:"\u672A\u547D\u540D",size:"100 100",figure:et.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ye.current.addDiagramListener("TextEdited",function(et){var Ct;const Lt=et.subject.part;var Ft=(Ct=document.activeElement)==null?void 0:Ct.value;typeof Ft=="string"&&Ft.trim()===""&&ye.current.model.commit(function(gn){gn.set(Lt.data,"text","\u672A\u547D\u540D"),ye.current.commandHandler.stopCommand()},"increment")}),kn.nodeTemplate=lt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),lt(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),lt(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{ye.current.grid=lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ye.current.grid.visible=!0,ye.current.grid.gridCellStroke="darkgray",ye.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ye.current,ye.current}const Qn=()=>Re(this,null,function*(){var lt=ye.current.makeImage();const Qt=yield(0,Oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:lt.src}});Ee({src:Qt.url})});(0,ae.useEffect)(()=>(setTimeout(()=>{bn()},500),At(Yt+1),()=>{ye.current=null}),[]);const An=(0,_e.useIntl)();return Pe.createElement("div",{ref:en,className:Gt.current?`${ue.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement($e.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Yt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(je.Z,null,Pe.createElement(Mt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(Mt.Z,{onClick:()=>{var lt,Qt,Hn=ye.current.selection.first();if(Gt.current=!Gt.current,document.activeElement&&Hn){let Rn=(Qt=(lt=document.activeElement)==null?void 0:lt.value)==null?void 0:Qt.trim();typeof Rn=="string"&&ye.current.model.commit(function(Mn){Mn.set(Hn.data,"text",Rn||"\u672A\u547D\u540D"),ye.current.commandHandler.stopCommand()},"increment")}At(Yt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",An.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:ve},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ue.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:ue.myPaletteDiv,ref:wt})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:rt,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(Me.ZP,{size:"large",onClick:Qn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},An.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var ut=Ye,ht=oe(5112),Bt=oe(5871);const Nt=ht.ZP.Group,Wt={margin:"0 8px"};var Et=({callback:ve,onCancel:Ee})=>{function ye(wt){ve(wt)}const rt=(0,_e.useIntl)();return ae.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ye},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Wt},rt.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ae.createElement("span",{style:Wt},rt.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ae.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Bt.Z,null)),ae.createElement("span",{style:Wt},rt.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ae.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Bt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Wt},rt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ae.createElement(se.default.Item,{name:"align"},ae.createElement(Nt,null,ae.createElement(ht.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(ht.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(ht.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(ht.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},rt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ae.createElement(Me.ZP,{type:"ghost",onClick:Ee},rt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},_t=oe(78673),ln=oe(25730),St=oe.n(ln),Kt=(0,ae.forwardRef)(({use3d:ve,width:Ee,height:ye,callback:rt,showSaveButton:wt},Gt)=>{const en=(0,ae.useRef)(),Yt=(0,ae.useRef)(),At=(0,_e.useIntl)(),[bn,Qn]=(0,ae.useState)(!1),An=(0,ae.useRef)({id:en,appName:"graphing",width:Ee||1e3,height:ye||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Yt.current=new(St())(An.current,!0),window.onload=function(){Yt.current.inject("applet_container")}},[]);const lt=()=>{var Qt=window.ggbApplet.getPNGBase64(1,!0,72);return rt&&rt(Qt),Qt};return(0,ae.useEffect)(()=>{An.current.appName=bn?"3D":"graphing",Yt.current.inject("applet_container")},[bn]),(0,ae.useEffect)(()=>{Qn(ve)},[ve]),(0,ae.useImperativeHandle)(Gt,()=>({getImgData:lt})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:en}),ae.createElement(je.Z,{align:"middle"},ae.createElement(Mt.Z,{flex:1},ae.createElement(_t.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:At.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:bn,onChange:Qt=>Qn(Qt)})),ae.createElement(Mt.Z,null,ae.createElement(Me.ZP,{size:"large",onClick:lt,style:{zIndex:8,marginTop:10},type:"primary"},At.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),Jt=oe(88601),pe=oe(1012),Ce=oe(8591);const Xe="link",mt="upload-image",vt="add-flowchart",Dt="draw-image",jt="add-flowchart",Ot="code-block",kt="add-table",qt="------------",Vt={default:qt,left:`:${qt}`,center:`:${qt}:`,right:`${qt}:`};var on=oe(28934),hn=(ve,Ee,ye)=>new Promise((rt,wt)=>{var Gt=At=>{try{Yt(ye.next(At))}catch(bn){wt(bn)}},en=At=>{try{Yt(ye.throw(At))}catch(bn){wt(bn)}},Yt=At=>At.done?rt(At.value):Promise.resolve(At.value).then(Gt,en);Yt((ye=ye.apply(ve,Ee)).next())});function yn(){}let Fn=0;const sn=1e4,dn="\u2581",Ln="@\u2581\u2581@",xn="@\u2581@",$n=`
|
|
**\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 zn(ve){return/^\d+$/.test(ve)?`${ve}px`:ve}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Zn={[In+"-B"]:"bold",[In+"-I"]:"italic"};var na=({defaultValue:ve="",onChange:Ee,width:ye="100%",height:rt=400,miniToolbar:wt=!1,isFocus:Gt=!1,watch:en,insertTemp:Yt,mode:At="markdown",id:bn="markdown-editor-id",showResizeBar:Qn=!1,noStorage:An=!1,showNullButton:lt=!1,showNullProgramButton:Qt=!1,hidetoolBar:Hn=!1,fullScreen:Rn=!1,onBlur:Mn,onCMBeforeChange:ce,onFullScreen:Ae,className:ze="",disablePaste:He=!1,disabled:at=!1,disabledFill:gt=!1,placeholder:Qe="",values:We="",extraUse:Tt})=>{const[Be,Rt]=(0,ae.useState)(null),[tn,rn]=(0,ae.useState)(ve),[Sn,kn]=(0,ae.useState)(en),[et,Ct]=(0,ae.useState)(Rn),[Lt,Ft]=(0,ae.useState)(""),[gn,an]=(0,ae.useState)(0),[Zt,fn]=(0,ae.useState)(rt),[pn,Kn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,pe.Z)()),Yn=(0,ae.useRef)(!1),ua=(0,ae.useRef)(),[fa,Pa]=(0,ae.useState)(0),[ia,Un]=(0,ae.useState)(0),vn=(0,ae.useRef)(),aa=(0,ae.useRef)(),oa=(0,ae.useRef)(),ra=(0,ae.useRef)(),ga=()=>hn(void 0,null,function*(){var zt;const Pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(zt=Pt==null?void 0:Pt.attachments)!=null&&zt.length&&(console.log("cm:",Be,vn),Pt.attachments.map(bt=>{bt.content_type.indexOf("image")>-1?Be.replaceSelection(``):bt.content_type.indexOf("video")>-1?Be.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):bt.content_type.indexOf("pdf")>-1?Be.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${bt.id}?type=${bt.content_type}&disposition=inline" target="_blank">${bt.name}</a>`):Be.replaceSelection(`[${bt.name}](${ENV.API_SERVER}/api/attachments/${bt.id}?type=${bt.content_type})`)}))});(0,ae.useEffect)(()=>{const zt=window.scrollY||window.pageYOffset;rn(We),Be==null||Be.setValue(We),window.scrollTo(0,zt)},[We]),(0,ae.useEffect)(()=>{Ae==null||Ae(et)},[et]),(0,ae.useEffect)(()=>{if(vn.current){let zt=function(bt,$t){var un;if(He){$t.preventDefault();return}const Cn=$t.clipboardData;if(Cn){const _n=Cn.types.toString(),Tn=Cn.items;if(_n==="Files"||Cn.types.indexOf("Files")>-1){if($t.preventDefault(),At=="stex")return;try{let jn=Tn[1];((un=Tn[0])==null?void 0:un.kind)==="file"&&(jn=Tn[0]);const Wn=jn.getAsFile(),ta=Wn.name.split(".").pop();(0,he.I)(Wn,Ht=>{var mn,wn,nn;Ht.id?((mn=Wn==null?void 0:Wn.type)==null?void 0:mn.indexOf("image"))>-1?Pt.replaceSelection(`<img width="100%" src="/api/attachments/${Ht.id}?type=${Ht.content_type})" alt="" />`):((wn=Wn==null?void 0:Wn.type)==null?void 0:wn.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ht.id}"></video>`):((nn=Wn==null?void 0:Wn.type)==null?void 0:nn.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="/api/attachments/${Ht.id}?type=${Wn.type}&disposition=inline" target="_blank">${Wn.name}</a>`):cn.includes(ta)?Pt.replaceSelection(`<a href="/api/attachments/${Ht.id}?type=office&disposition=inline" target="_blank">${Wn.name}</a>`):Pt.replaceSelection(`[${Wn.name}](/api/attachments/${Ht.id}?type=${Ht.content_type})`):(Ht==null?void 0:Ht.status)===401&&(Ce.ZP.warning((Ht==null?void 0:Ht.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Ce.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pt=Ke().fromTextArea(vn.current,{mode:At,lineNumbers:!wt,lineWrapping:!0,value:ve,autoCloseTags:!Qt,autoCloseBrackets:!0});return Pt.on("keyup",function(bt,$t){$t.keyCode===8&&(bt.getValue()==""?Pt.setOption("placeholder",Qe):Pt.setOption("placeholder",null))}),Pt.on("keydown",function(bt,$t){if($t.keyCode===8){var un=ha(bt);un&&$t.preventDefault()}}),Gt&&Pt.focus(),Pt.on("paste",zt),Pt.on("dragleave",function(bt,$t){aa.current.classList.remove("mouse-hover-md")}),at&&Pt.on("beforeChange",function(bt,$t){($t.origin==="paste"||$t.origin==="+input")&&$t.cancel()}),Rt(Pt),()=>{Pt.off("paste",zt)}}},[]);const Xn=(0,ae.useCallback)(()=>{if(aa.current)try{}catch(zt){console.log(zt,"---- to set md editor body height")}},[Zt,aa,et]);(0,ae.useEffect)(()=>{function zt(){let Pt=new Ie.Z(bt=>{for(let $t of bt)($t.target.offsetHeight>0||$t.target.offsetWidth>0)&&(Xn(),Be.setSize("100%","100%"),Be.refresh())});return Pt.observe(vn.current.parentElement),Pt}if(Be){const Pt=zt();return()=>{var bt,$t;(bt=vn.current)!=null&&bt.parentElement&&Pt.unobserve(($t=vn.current)==null?void 0:$t.parentElement)}}},[Be,Xn]),(0,ae.useEffect)(()=>{if(Be){let zt=[];for(const[Pt,bt]of Object.entries(Zn)){let $t={[Pt]:()=>{Xt(bt)}};zt.push($t),Be.addKeyMap($t)}return ua.current=setInterval(()=>{Yn.current&&ga()},4e3),()=>{clearInterval(ua.current);for(let Pt of zt)Be.removeKeyMap(Pt)}}},[Be]),(0,ae.useEffect)(()=>{Rn!==et&&Ct(Rn)},[Rn]),(0,on.Z)(()=>{if(!An&&gn>0){let zt=new Date().getTime(),Pt=window.sessionStorage.getItem(bn);zt>=gn+sn&&(!Pt||Pt!==tn)&&(window.sessionStorage.setItem(bn,tn),Kn(!0))}},sn),(0,ae.useEffect)(()=>{kn(en)},[Be,en]),(0,ae.useEffect)(()=>{Be&&Gt&&Be.focus()},[Be,Gt]),(0,ae.useEffect)(()=>{if(Sn&&Be){let zt=function(bt){let $t=bt.target;if(ra.current){let un=$t.scrollTop/$t.scrollHeight;ra.current.scrollTop=ra.current.scrollHeight*un}};const Pt=Be.getScrollerElement();return Pt.addEventListener("scroll",zt),()=>{Pt.removeEventListener("scroll",zt)}}},[Be,Sn]),(0,ae.useEffect)(()=>{if(Be&&ce){let zt=function(Pt,bt){ce(Pt,bt)};return Be.on("beforeChange",zt),()=>{Be.off("beforeChange",zt)}}},[Be,ce]),(0,ae.useEffect)(()=>{if(Be&&Mn){let zt=function(){Mn(Be.getValue())};return Be.on("blur",zt),()=>{Be.off("blur",zt)}}},[Be,Mn]);function ha(zt,Pt){var bt=zt.getDoc(),$t=bt.getCursor(),un=bt.getLine($t.line),Cn=un.charAt($t.ch-1),_n=un.lastIndexOf("@\u2581@",$t.ch),Tn=un.lastIndexOf("@\u2581\u2581@",$t.ch),jn=_n>Tn?_n:Tn,Wn=_n>Tn?3:4;if(Ln.indexOf(Cn)===-1)return null;if(console.log("change1:",Pt,zt,un,$t,jn,_n,Tn,Cn),jn>=0&&$t.ch-jn<5){var ta=jn+Wn;return bt.replaceRange("",{line:$t.line,ch:jn},{line:$t.line,ch:ta}),{line:$t.line,ch:ta}}return null}(0,ae.useEffect)(()=>{if(Be){let zt=function(Pt,bt){const $t=Pt.getValue();rn($t),an(new Date().getTime()),Pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ee&&(Qt?Ee($t,Gn($t)):Ee($t))};return Be.on("change",zt),()=>{Be.off("change",zt)}}},[Be,Ee]),(0,ae.useEffect)(()=>{if(Be)if(ve==null)Be.setValue(""),rn("");else{const zt=window.scrollY||window.pageYOffset;ve!==Be.getValue()&&(Be.setValue(ve),rn(ve),Be.setCursor(at?1:Be.lineCount(),0),window.scrollTo(0,zt))}},[Be,ve]);const Xt=(0,ae.useCallback)(zt=>{const Pt=Be.getCursor(),bt=Be.getSelection();let $t=bt.split(`
|
|
`);switch(zt){case"bold":return Be.replaceSelection("**"+bt+"**"),bt===""&&Be.setCursor(Pt.line,Pt.ch+2),Be.focus();case"italic":return Be.replaceSelection("*"+bt+"*"),bt===""&&Be.setCursor(Pt.line,Pt.ch+1),Be.focus();case"code":return Be.replaceSelection("`"+bt+"`"),bt===""&&Be.setCursor(Pt.line,Pt.ch+1),Be.focus();case"inline-latex":return Ft("inline-latex"),Be.focus();case"latex":return Be.replaceSelection("```latex\n"+bt+"\n```"),Be.setCursor(Pt.line+1,bt.length+1),Be.focus();case"line-break":return Be.replaceSelection(`<br/>
|
|
`),Be.focus();case"list-ul":return bt===""?Be.replaceSelection("- "+bt):Be.replaceSelection($t.map(un=>un===""?"":`- ${un}`).join(`
|
|
`)),Be.focus();case"list-ol":return bt===""?Be.replaceSelection("1. "+bt):Be.replaceSelection($t.map((un,Cn)=>un===""?"":`${Cn+1}. ${un}`).join(`
|
|
`)),Be.focus();case"add-null-ch":return bt===""&&Be.setCursor(Pt.line,Pt.ch),Be.replaceSelection(dn),Be.focus();case"add-signal":return bt===""&&Be.setCursor(Pt.line,Pt.ch),Be.replaceSelection(xn),Be.focus();case"add-multiple":return bt===""&&Be.setCursor(Pt.line,Pt.ch),Be.replaceSelection(Ln),Be.focus();case"inster-template-1":return bt===""&&Be.setCursor(Pt.line,Pt.ch),Be.replaceSelection($n),Be.focus();case"eraser":return Be.setValue(""),Be.focus();case"trigger-watch":return kn(!Sn),Be.focus();case"trigger-full-screen":return Ct(!et),Be.focus();case Xe:Ft(Xe);return;case Ot:Ft(Ot);return;case mt:Ft(mt);return;case Dt:Ft(Dt);return;case"maths-latex":Ft("maths-latex");return;case vt:Ft(vt);return;case kt:Ft(kt);return;default:throw new Error}},[Be,Sn,et]),Pn=(0,ae.useCallback)((zt,Pt)=>{var bt,$t,un,Cn,_n,Tn;switch(Ft(""),Lt){case Xe:const{title:mn,link:wn}=zt;return Be.replaceSelection(`[${mn}](${wn})`),Be.focus();case Ot:const{language:nn,content:En}=zt;return Be.replaceSelection(["```"+nn,En,"```"].join(`
|
|
`)),Be.focus();case"maths-latex":for(var jn=atob(zt),Wn=new Uint8Array(jn.length),ta=0;ta<jn.length;ta++)Wn[ta]=jn.charCodeAt(ta);var Ht=new Blob([Wn],{type:"image/png"});(0,he.I)(Ht,ma=>{ma.id?Be.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Be.replaceSelection("`$$"+zt+"$$`");break;case mt:case Dt:case jt:const{src:Dn,alt:sa}=zt,Bn=Pt,Sa=(un=($t=(bt=Bn==null?void 0:Bn.name)==null?void 0:bt.split("."))==null?void 0:$t.pop)==null?void 0:un.call($t);return((Cn=Bn==null?void 0:Bn.type)==null?void 0:Cn.indexOf("image"))>-1||!(Bn!=null&&Bn.type)?Bn.align||Bn.width?Be.replaceSelection(`<p style="text-align:${Bn.align||"initial"}"><img width="${Bn.width?Bn.width+"%":"initial"}" src="${Dn}" alt="${sa||""}" /></p>`):Be.replaceSelection(`<img width="100%" src="${Dn}" alt="${sa||""}" />`):((_n=Bn==null?void 0:Bn.type)==null?void 0:_n.indexOf("video"))>-1?Be.replaceSelection(`<video width="100%" controls src="${Dn}"></video>`):((Tn=Bn==null?void 0:Bn.type)==null?void 0:Tn.indexOf("pdf"))>-1?Be.replaceSelection(`<a href="${Dn}?type=${Bn.type}&disposition=inline" target="_blank">${Bn.name}</a>`):cn.includes(Sa)?Be.replaceSelection(`<a href="${Dn}?type=office&disposition=inline" target="_blank">${Bn.name}</a>`):Be.replaceSelection(`[${Bn.name}](${Dn})`),Be.focus();case kt:const{row:Ea,col:Fa,align:$a}=zt;let wa=`
|
|
`;for(let ma=0;ma<Ea;ma++){let Ca=[],Ba=[];for(let xa=0;xa<Fa;xa++)ma===1&&Ba.push(Vt[$a]),Ca.push(" ");ma===1&&(wa+=`| ${Ba.join(" | ")} |
|
|
`),wa+=`| ${Ca.join(Fa===1?"":" | ")} |
|
|
`}return Be.replaceSelection(wa+`
|
|
`),Be.focus();default:throw new Error}},[Be,Lt]),Jn=(0,ae.useMemo)(()=>{switch(Lt){case Xe:return ae.createElement(ot,{callback:Pn,onCancel:On});case Ot:return ae.createElement(Ze.Z,{callback:Pn,onCancel:On});case mt:return ae.createElement(he.Z,{callback:Pn,onCancel:On});case vt:return ae.createElement(ut,{callback:Pn,onCancel:On});case kt:return ae.createElement(Et,{callback:Pn,onCancel:On});case"maths-latex":return ae.createElement(Kt,{showSaveButton:!0,callback:Pn});case"inline-latex":return ae.createElement(Jt.Z,{showSaveButton:!0,callback:Pn});default:return null}},[Lt]);function On(){Ft("")}(0,ae.useEffect)(()=>{if(oa.current){let zt=function(_n){un=!0,Cn=_n.pageY},Pt=function(){un=!1},bt=function(_n){if(un){let Tn=_n.pageY-Cn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let jn=rt+Tn+"px";fn(jn)}},$t=oa.current,un=!1,Cn=0;return $t.addEventListener("mousedown",zt),document.addEventListener("mousemove",bt),document.addEventListener("mouseup",Pt),()=>{$t.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",bt),document.removeEventListener("mouseup",Pt)}}},[Be,oa]),(0,ae.useEffect)(()=>{fn(rt)},[rt]);const da=zn(ye),ea=zn(Zt),ya={width:da,height:ea},pa=(0,ae.useMemo)(()=>{if(gn){let zt=new Date(gn),Pt=zt.getHours(),bt=zt.getMinutes(),$t=zt.getSeconds();return Pt=Pt<10?"0"+Pt:Pt,bt=bt<10?"0"+bt:bt,$t=$t<10?"0"+$t:$t,`${Pt}:${bt}:${$t}`}return 0},[gn]),Gn=zt=>{const Pt=[];if(Qt){let bt=-1;zt=zt.replace(/(@▁▁@|@▁@)/g,function($t,un,Cn){Pt.push({multiLine:$t!==xn})})}return Pt};function Nn(){window.sessionStorage.removeItem(bn),Kn(!1),an(0)}function la(){Kn(!1),an(0),Be.setValue(window.sessionStorage.getItem(bn))}const ca=(0,_e.useIntl)(),va={[Xe]:"\u6DFB\u52A0\u94FE\u63A5",[Ot]:ca.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[mt]:ca.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Dt]:"\u6DFB\u52A0\u753B\u56FE",[vt]:ca.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[kt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":ca.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":ca.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ae.useEffect)(()=>{va[Lt]&&Lt!==Dt&&Lt!==vt&&setTimeout(()=>{const zt=document.getElementsByClassName("markdown-popup-form")[0],Pt=window.innerWidth/2-zt.offsetWidth/2,bt=window.innerHeight/2-zt.offsetHeight/2;Pa(Pt),Un(bt)},0)},[Lt]);const La=zt=>{zt.preventDefault();const Pt=zt.clientX-fa,bt=zt.clientY-ia;document.body.onmousemove=$t=>{let un=$t.clientX-Pt,Cn=$t.clientY-bt;const _n=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-_n.offsetWidth,jn=window.innerHeight-_n.offsetHeight;un=Math.max(0,Math.min(un,Tn)),Cn=Math.max(0,Math.min(Cn,jn)),ba($t.clientX,$t.clientY,Pt,bt)&&(Pa(un),Un(Cn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(zt,Pt,bt,$t)=>{const un=document.body.clientHeight,Cn=document.body.clientWidth;return zt<20&&bt>zt||zt>Cn-20&&bt<zt||Pt<20&&$t>Pt||Pt>un-20&&$t<Pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:aa},ae.createElement("div",{className:`markdown-editor-container ${ze} ${Sn?"on-preview":""} ${wt?"mini":""} ${et?"full-screen":""}`,style:ya},ae.createElement(ge,{insertTemp:Yt,watch:Sn,fullScreen:et,showNullButton:lt,showNullProgramButton:Qt,onActionCallback:Xt,hidetoolBar:Hn,extraUse:Tt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:vn,placeholder:Qe})),Sn?ae.createElement("div",{ref:ra,className:"preview-container"},At==="stex"&&ae.createElement(Te,{value:tn}),At!=="stex"&&ae.createElement(it.Z,{disabledFill:gt,showProgramFill:Qt,value:tn})):null))),Qn?ae.createElement("a",{ref:oa,className:"editor-resize"}):null,Lt===Dt&&ae.createElement(dt,{callback:Pn,onCancel:On}),Lt===vt&&ae.createElement(ut,{callback:Pn,onCancel:On}),ae.createElement(me.Z,null,va[Lt]&&Lt!==Dt&&Lt!==vt?ae.createElement($e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:fa,top:ia},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:La},va[Lt]),open:!0,onCancel:On,footer:null,destroyOnClose:!0,width:Lt===vt?"1200px":null,height:Lt===vt?"80vh":null,className:"markdown-popup-form"},Jn):null))}},76021:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return ge},I:function(){return se}});var ae=oe(78241),Se=oe(8591),Ke=oe(92832),Ie=oe(81327),fe=oe(5871),we=oe(5112),le=oe(3113),ke=oe(82977),Ve=oe(59301),Fe=oe(53229),it=oe(75790),Te=oe(59301),_e=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(Le,Me,qe)=>Me in Le?_e(Le,Me,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Le[Me]=qe,z=(Le,Me)=>{for(var qe in Me||(Me={}))E.call(Me,qe)&&x(Le,qe,Me[qe]);if(y)for(var qe of y(Me))b.call(Me,qe)&&x(Le,qe,Me[qe]);return Le},ee=(Le,Me)=>ne(Le,a(Me));const{useForm:te}=ae.default,re={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:Le,onCancel:Me})=>{const[qe]=te();let xt=(0,Ve.useRef)();const It=(0,it.useIntl)();function be(De){xt.current.width=qe.getFieldValue("width"),xt.current.align=qe.getFieldValue("align"),Le(De,xt.current)}function Ne(De,nt){if(De.status===-1){Se.ZP.error(De.message);return}qe.setFieldsValue({src:`/api/attachments/${De.id}`,type:nt.type})}function xe(De){let nt=De.target.files[0];xt.current=nt,se(nt,Ne)}return Te.createElement(ae.default,ee(z({form:qe},ie),{className:"upload-image-panel",onFinish:be,style:{width:470,overflow:"hidden"}}),Te.createElement(ae.default.Item,{label:It.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(Ke.default,{style:re})),Te.createElement(me,{onFileChange:xe}))),Te.createElement(ae.default.Item,{label:It.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Te.createElement(Ke.default,{style:{width:264}})),Te.createElement(ae.default.Item,{label:It.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Te.createElement(Ie.Z,null,Te.createElement(ae.default.Item,{name:"width",style:{margin:0}},Te.createElement(fe.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(ae.default.Item,{label:It.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Te.createElement(we.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:It.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:It.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:It.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Te.createElement("aside",null,Te.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},It.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Te.createElement(le.ZP,{type:"default",onClick:Me},It.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function me({onFileChange:Le}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:Le}))}function se(Le,Me){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Fe.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let qe=new FormData;qe.append("editormd-image-file",Le),qe.append("file_param_name","editormd-image-file"),qe.append("byxhr","true");var xt=new window.XMLHttpRequest;xt.withCredentials=!0,xt.addEventListener("load",function(It){Me(JSON.parse(It.target.responseText),Le)},!1),xt.addEventListener("error",function(It){console.error(It)},!1),xt.open("POST",`${ke.KI}/api/attachments.json`),xt.send(qe)}},44991:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return Ke}});var ae=oe(59301),Se=oe(4676);class Ke extends ae.Component{constructor(fe){super(fe);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,Se.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},28934:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return Se}});var ae=oe(59301);function Se(Ke,Ie){const fe=(0,ae.useRef)();(0,ae.useEffect)(()=>{fe.current=Ke}),(0,ae.useEffect)(()=>{function we(){fe.current()}if(Ie!==null){let le=setInterval(we,Ie);return()=>clearInterval(le)}},[Ie])}},62841:function(Ge,st,oe){"use strict";oe.r(st),oe.d(st,{default:function(){return ge}});var ae=oe(59301),Se=oe(75790),Ke=oe(78241),Ie=oe(66104),fe=oe(92832),we=oe(3113),le=oe(48551),ke=oe(59189),Ve={bg:"bg___mk00l",flexRow:"flexRow___cF86d",flexJustifyCenter:"flexJustifyCenter___xffJH",flexAlignEnd:"flexAlignEnd___XZNbd",flexAlignCenter:"flexAlignCenter___rBycD",flexColumn:"flexColumn___bvZmC",formWrap:"formWrap___IeMB8",titleWrap:"titleWrap___jBULn",fieldWrap:"fieldWrap___mRoj3",mdWrap:"mdWrap___XC6AD",backgroundFa:"backgroundFa___dCgV1",button:"button___ga1Ue"},Fe=oe(49318),it=oe(19374),Te=oe(99099),_e=oe(98280),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(me,se,Le)=>se in me?ne(me,se,{enumerable:!0,configurable:!0,writable:!0,value:Le}):me[se]=Le,ee=(me,se)=>{for(var Le in se||(se={}))b.call(se,Le)&&z(me,Le,se[Le]);if(E)for(var Le of E(se))x.call(se,Le)&&z(me,Le,se[Le]);return me},te=(me,se)=>a(me,y(se)),re=(me,se,Le)=>new Promise((Me,qe)=>{var xt=Ne=>{try{be(Le.next(Ne))}catch(xe){qe(xe)}},It=Ne=>{try{be(Le.throw(Ne))}catch(xe){qe(xe)}},be=Ne=>Ne.done?Me(Ne.value):Promise.resolve(Ne.value).then(xt,It);be((Le=Le.apply(me,se)).next())});const ie=({shixunHomeworks:me,newCourse:se,globalSetting:Le,user:Me,loading:qe,dispatch:xt})=>{var It,be;const Ne=(0,Se.useIntl)(),xe=(0,Se.useParams)(),[De]=Ke.default.useForm(),[nt,ct]=(0,ae.useState)({}),[Ue,ot]=(0,ae.useState)(),Ze=(0,ae.useRef)(),{commonHomeWorkAddDefaultData:he}=me;let[$e,je]=(0,ae.useState)({});(0,ae.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:de,categoryId:tt}=xe;Ze.current=xe==null?void 0:xe.courseId,ot(!!Ze.current),Ze.current&&ft(),xt({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:tt,coursesId:de,type:1}})},[]);const ft=()=>re(void 0,null,function*(){const de=yield xt({type:"newCourse/getEditCourseData",payload:{id:Ze.current}});de&&(De.setFieldsValue({name:de.name}),De.setFieldsValue({intro:de.description}),De.setFieldsValue({notice:de.learning_notes}),ct({name:de.name,intro:de.description,notice:de.learning_notes}))}),Je=de=>re(void 0,null,function*(){var tt,pt;const yt=ee({},nt);yt.attachment_ids&&(yt.attachment_ids=(tt=yt==null?void 0:yt.attachment_ids)==null?void 0:tt.map(Pe=>Pe.response.id)),yt.reference_attachment_ids&&(yt.reference_attachment_ids=(pt=yt==null?void 0:yt.reference_attachment_ids)==null?void 0:pt.map(Pe=>Pe.response.id));const{coursesId:Mt,categoryId:Oe}=xe,ue=yield(0,ke.H1)(te(ee({coursesId:Mt,category:Oe},yt),{base_on_project:!0,type:1}));(ue==null?void 0:ue.status)===0&&(dt(ue.homework_id),(0,it.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"]),Se.history.push(`/classrooms/${xe.coursesId}/common_homework/${ue.homework_id}/detail`))});function dt(de){return re(this,null,function*(){if(!($e!=null&&$e.ec_point_ids))return;let tt=yield(0,_e.ZP)(`/api/ec_courses/${$e==null?void 0:$e.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ee({homework_common_id:de},$e)})})}return ae.createElement("section",{className:Ve.bg},he.course_name&&ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},he.category&&ae.createElement(Ie.Z,{separator:">"},ae.createElement(Ie.Z.Item,null,ae.createElement(Se.Link,{to:`/classrooms/${he.course_id}/common_homework`},he.course_name)),ae.createElement(Ie.Z.Item,null,ae.createElement(Se.Link,{to:`/classrooms/${he.course_id}/common_homework`},he.category.category_name)),ae.createElement(Ie.Z.Item,null,Ne.formatMessage({id:"classrooms.createDetails",defaultMessage:"\u65B0\u5EFA\u8BE6\u60C5"}))))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},Ne.formatMessage({id:"paths.newGraphicHomework",defaultMessage:"\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"})),ae.createElement(Ke.default,{form:De,className:Ve.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",De.getFieldsValue()),ct(ee({},De.getFieldsValue()))},onFinish:Je},ae.createElement("div",{className:Ve.fieldWrap},ae.createElement(Ke.default.Item,{name:"name",label:`${Ne.formatMessage({id:"classrooms.title",defaultMessage:"\u6807\u9898"})}:`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(fe.default,{placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ae.createElement("div",{className:Ve.mdWrap},ae.createElement(Ke.default.Item,{name:"description",label:Ne.formatMessage({id:"classrooms.description",defaultMessage:"\u7B80\u4ECB"})+":",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"}]},ae.createElement(le.Z,{watch:!0,defaultValue:nt.intro})),ae.createElement("div",null,ae.createElement(Ke.default.Item,{name:"attachment_ids"},ae.createElement(Fe.Z,null)))),ae.createElement("div",{className:Ve.mdWrap},ae.createElement(Ke.default.Item,{name:"reference_answer",label:`${Ne.formatMessage({id:"classroomGraphicGroupHomework.referenceAnswer",defaultMessage:"\u53C2\u8003\u7B54\u6848"})} :`},ae.createElement(le.Z,{watch:!0,defaultValue:nt.notice})),ae.createElement("div",null,ae.createElement(Ke.default.Item,{name:"reference_attachment_ids"},ae.createElement(Fe.Z,null))))),ae.createElement("div",{className:Ve.mdWrap,style:{display:(It=Le==null?void 0:Le.setting)!=null&&It.hide_ec?"none":(be=Me.userInfo.course)!=null&&be.is_openengineering?"":"none"}},ae.createElement(Te.Z,{setitem:de=>je(ee({},de))})),ae.createElement("div",{className:Ve.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(Ke.default.Item,null,ae.createElement(we.ZP,{size:"middle",type:"primary",className:`${Ve.button} mr20`,htmlType:"submit",onClick:()=>{De.submit()},loading:qe["newCourse/editCourse"]||qe["newCourse/submitCourse"]},Ne.formatMessage({id:"classrooms.submit",defaultMessage:"\u63D0\u4EA4"})),ae.createElement(we.ZP,{size:"middle",type:"primary",ghost:!0,className:Ve.button,onClick:()=>Se.history.push(`/classrooms/${xe.coursesId}/common_homework`)},Ne.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}))))))};var ge=(0,Se.connect)(({shixunHomeworks:me,newCourse:se,loading:Le,user:Me,globalSetting:qe})=>({shixunHomeworks:me,newCourse:se,user:Me,globalSetting:qe,loading:Le.effects}))(ie)},90278:function(Ge,st,oe){"use strict";oe.d(st,{$J:function(){return Ke},JZ:function(){return fe},bN:function(){return le},jP:function(){return we},rO:function(){return Ie}});var ae=oe(98280),Se=(ke,Ve,Fe)=>new Promise((it,Te)=>{var _e=y=>{try{a(Fe.next(y))}catch(E){Te(E)}},ne=y=>{try{a(Fe.throw(y))}catch(E){Te(E)}},a=y=>y.done?it(y.value):Promise.resolve(y.value).then(_e,ne);a((Fe=Fe.apply(ke,Ve)).next())});function Ke(ke){return(0,ae.U2)(`libraries/${ke}.json`)}function Ie(ke){return(0,ae.U2)("library_tags.json",ke)}function fe(ke){return Se(this,null,function*(){return(yield(0,ae.IV)(`attachments/${ke}.json`)).status===0})}function we(ke){return(0,ae.v_)("libraries.json",ke)}function le(ke,Ve){return(0,ae.gz)(`libraries/${ke}.json`,Ve)}},56762:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return Se}});var ae=oe(59301);function Se(){const[,Ke]=ae.useReducer(Ie=>Ie+1,0);return Ke}},66104:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return It}});var ae=oe(92310),Se=oe.n(ae),Ke=oe(11592),Ie=oe(26112),fe=oe(59301),we=oe(92343),le=oe(36355),ke=oe(84105),Ve=oe(91857);const Fe=be=>{let{children:Ne}=be;const{getPrefixCls:xe}=fe.useContext(le.E_),De=xe("breadcrumb");return fe.createElement("li",{className:`${De}-separator`,"aria-hidden":"true"},Ne===""?Ne:Ne||"/")};Fe.__ANT_BREADCRUMB_SEPARATOR=!0;var it=Fe,Te=function(be,Ne){var xe={};for(var De in be)Object.prototype.hasOwnProperty.call(be,De)&&Ne.indexOf(De)<0&&(xe[De]=be[De]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,De=Object.getOwnPropertySymbols(be);nt<De.length;nt++)Ne.indexOf(De[nt])<0&&Object.prototype.propertyIsEnumerable.call(be,De[nt])&&(xe[De[nt]]=be[De[nt]]);return xe};function _e(be,Ne){if(be.title===void 0||be.title===null)return null;const xe=Object.keys(Ne).join("|");return typeof be.title=="object"?be.title:String(be.title).replace(new RegExp(`:(${xe})`,"g"),(De,nt)=>Ne[nt]||De)}function ne(be,Ne,xe,De){if(xe==null)return null;const{className:nt,onClick:ct}=Ne,Ue=Te(Ne,["className","onClick"]),ot=Object.assign(Object.assign({},(0,Ie.Z)(Ue,{data:!0,aria:!0})),{onClick:ct});return De!==void 0?fe.createElement("a",Object.assign({},ot,{className:Se()(`${be}-link`,nt),href:De}),xe):fe.createElement("span",Object.assign({},ot,{className:Se()(`${be}-link`,nt)}),xe)}function a(be,Ne){return(De,nt,ct,Ue,ot)=>{if(Ne)return Ne(De,nt,ct,Ue);const Ze=_e(De,nt);return ne(be,De,Ze,ot)}}var y=function(be,Ne){var xe={};for(var De in be)Object.prototype.hasOwnProperty.call(be,De)&&Ne.indexOf(De)<0&&(xe[De]=be[De]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,De=Object.getOwnPropertySymbols(be);nt<De.length;nt++)Ne.indexOf(De[nt])<0&&Object.prototype.propertyIsEnumerable.call(be,De[nt])&&(xe[De[nt]]=be[De[nt]]);return xe};const E=be=>{const{prefixCls:Ne,separator:xe="/",children:De,menu:nt,overlay:ct,dropdownProps:Ue,href:ot}=be,he=($e=>{if(nt||ct){const je=Object.assign({},Ue);if(nt){const ft=nt||{},{items:Je}=ft,dt=y(ft,["items"]);je.menu=Object.assign(Object.assign({},dt),{items:Je==null?void 0:Je.map((de,tt)=>{var{key:pt,title:yt,label:Mt,path:Oe}=de,ue=y(de,["key","title","label","path"]);let Pe=Mt!=null?Mt:yt;return Oe&&(Pe=fe.createElement("a",{href:`${ot}${Oe}`},Pe)),Object.assign(Object.assign({},ue),{key:pt!=null?pt:tt,label:Pe})})})}else ct&&(je.overlay=ct);return fe.createElement(Ve.Z,Object.assign({placement:"bottom"},je),fe.createElement("span",{className:`${Ne}-overlay-link`},$e,fe.createElement(ke.Z,null)))}return $e})(De);return he!=null?fe.createElement(fe.Fragment,null,fe.createElement("li",null,he),xe&&fe.createElement(it,null,xe)):null},b=be=>{const{prefixCls:Ne,children:xe,href:De}=be,nt=y(be,["prefixCls","children","href"]),{getPrefixCls:ct}=fe.useContext(le.E_),Ue=ct("breadcrumb",Ne);return fe.createElement(E,Object.assign({},nt,{prefixCls:Ue}),ne(Ue,nt,xe,De))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=be=>{const{componentCls:Ne,iconCls:xe}=be;return{[Ne]:Object.assign(Object.assign({},(0,z.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[xe]:{fontSize:be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:be.linkColor,transition:`color ${be.motionDurationMid}`,padding:`0 ${be.paddingXXS}px`,borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",marginInline:-be.marginXXS,"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover}},(0,z.Qy)(be)),"li:last-child":{color:be.lastItemColor},[`${Ne}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${Ne}-link`]:{[`
|
|
> ${xe} + span,
|
|
> ${xe} + a
|
|
`]:{marginInlineStart:be.marginXXS}},[`${Ne}-overlay-link`]:{borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",padding:`0 ${be.paddingXXS}px`,marginInline:-be.marginXXS,[`> ${xe}`]:{marginInlineStart:be.marginXXS,fontSize:be.fontSizeIcon},"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover,a:{color:be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${be.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",be=>{const Ne=(0,te.TS)(be,{});return[re(Ne)]},be=>({itemColor:be.colorTextDescription,lastItemColor:be.colorText,iconFontSize:be.fontSize,linkColor:be.colorTextDescription,linkHoverColor:be.colorText,separatorColor:be.colorTextDescription,separatorMargin:be.marginXS})),ge=function(be,Ne){var xe={};for(var De in be)Object.prototype.hasOwnProperty.call(be,De)&&Ne.indexOf(De)<0&&(xe[De]=be[De]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,De=Object.getOwnPropertySymbols(be);nt<De.length;nt++)Ne.indexOf(De[nt])<0&&Object.prototype.propertyIsEnumerable.call(be,De[nt])&&(xe[De[nt]]=be[De[nt]]);return xe};function me(be){const{breadcrumbName:Ne,children:xe}=be,De=ge(be,["breadcrumbName","children"]),nt=Object.assign({title:Ne},De);return xe&&(nt.menu={items:xe.map(ct=>{var{breadcrumbName:Ue}=ct,ot=ge(ct,["breadcrumbName"]);return Object.assign(Object.assign({},ot),{title:Ue})})}),nt}function se(be,Ne){return(0,fe.useMemo)(()=>be||(Ne?Ne.map(me):null),[be,Ne])}var Le=function(be,Ne){var xe={};for(var De in be)Object.prototype.hasOwnProperty.call(be,De)&&Ne.indexOf(De)<0&&(xe[De]=be[De]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,De=Object.getOwnPropertySymbols(be);nt<De.length;nt++)Ne.indexOf(De[nt])<0&&Object.prototype.propertyIsEnumerable.call(be,De[nt])&&(xe[De[nt]]=be[De[nt]]);return xe};const Me=(be,Ne)=>{if(Ne===void 0)return Ne;let xe=(Ne||"").replace(/^\//,"");return Object.keys(be).forEach(De=>{xe=xe.replace(`:${De}`,be[De])}),xe},qe=be=>{const{prefixCls:Ne,separator:xe="/",style:De,className:nt,rootClassName:ct,routes:Ue,items:ot,children:Ze,itemRender:he,params:$e={}}=be,je=Le(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ft,direction:Je,breadcrumb:dt}=fe.useContext(le.E_);let de;const tt=ft("breadcrumb",Ne),[pt,yt]=ie(tt),Mt=se(ot,Ue),Oe=a(tt,he);if(Mt&&Mt.length>0){const Re=[],Ye=ot||Ue;de=Mt.map((ut,ht)=>{const{path:Bt,key:Nt,type:Wt,menu:Et,overlay:_t,onClick:ln,className:St,separator:Ut,dropdownProps:Kt}=ut,Jt=Me($e,Bt);Jt!==void 0&&Re.push(Jt);const pe=Nt!=null?Nt:ht;if(Wt==="separator")return fe.createElement(it,{key:pe},Ut);const Ce={},Xe=ht===Mt.length-1;Et?Ce.menu=Et:_t&&(Ce.overlay=_t);let{href:mt}=ut;return Re.length&&Jt!==void 0&&(mt=`#/${Re.join("/")}`),fe.createElement(E,Object.assign({key:pe},Ce,(0,Ie.Z)(ut,{data:!0,aria:!0}),{className:St,dropdownProps:Kt,href:mt,separator:Xe?"":xe,onClick:ln,prefixCls:tt}),Oe(ut,$e,Ye,Re,mt))})}else if(Ze){const Re=(0,Ke.Z)(Ze).length;de=(0,Ke.Z)(Ze).map((Ye,ut)=>{if(!Ye)return Ye;const ht=ut===Re-1;return(0,we.Tm)(Ye,{separator:ht?"":xe,key:ut})})}const ue=Se()(tt,dt==null?void 0:dt.className,{[`${tt}-rtl`]:Je==="rtl"},nt,ct,yt),Pe=Object.assign(Object.assign({},dt==null?void 0:dt.style),De);return pt(fe.createElement("nav",Object.assign({className:ue,style:Pe},je),fe.createElement("ol",null,de)))};qe.Item=x,qe.Separator=it;var xt=qe,It=xt},24905:function(Ge,st,oe){"use strict";oe.d(st,{default:function(){return ie}});var ae=oe(92310),Se=oe.n(ae),Ke=oe(5630),Ie=oe(59301),fe=oe(36355),we=oe(1684),le=oe(32441),Ve=Ie.createContext(null),Fe=oe(98447),it=oe(14088),Te=oe(4572),_e=function(ge,me){var se={};for(var Le in ge)Object.prototype.hasOwnProperty.call(ge,Le)&&me.indexOf(Le)<0&&(se[Le]=ge[Le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Le=Object.getOwnPropertySymbols(ge);Me<Le.length;Me++)me.indexOf(Le[Me])<0&&Object.prototype.propertyIsEnumerable.call(ge,Le[Me])&&(se[Le[Me]]=ge[Le[Me]]);return se};const ne=(ge,me)=>{var se;const{prefixCls:Le,className:Me,rootClassName:qe,children:xt,indeterminate:It=!1,style:be,onMouseEnter:Ne,onMouseLeave:xe,skipGroup:De=!1,disabled:nt}=ge,ct=_e(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ue,direction:ot,checkbox:Ze}=Ie.useContext(fe.E_),he=Ie.useContext(Ve),{isFormItemInput:$e}=Ie.useContext(le.aM),je=Ie.useContext(we.Z),ft=(se=(he==null?void 0:he.disabled)||nt)!==null&&se!==void 0?se:je,Je=Ie.useRef(ct.value);Ie.useEffect(()=>{he==null||he.registerValue(ct.value)},[]),Ie.useEffect(()=>{if(!De)return ct.value!==Je.current&&(he==null||he.cancelValue(Je.current),he==null||he.registerValue(ct.value),Je.current=ct.value),()=>he==null?void 0:he.cancelValue(ct.value)},[ct.value]);const dt=Ue("checkbox",Le),[de,tt]=(0,Fe.ZP)(dt),pt=Object.assign({},ct);he&&!De&&(pt.onChange=function(){ct.onChange&&ct.onChange.apply(ct,arguments),he.toggleOption&&he.toggleOption({label:xt,value:ct.value})},pt.name=he.name,pt.checked=he.value.includes(ct.value));const yt=Se()(`${dt}-wrapper`,{[`${dt}-rtl`]:ot==="rtl",[`${dt}-wrapper-checked`]:pt.checked,[`${dt}-wrapper-disabled`]:ft,[`${dt}-wrapper-in-form-item`]:$e},Ze==null?void 0:Ze.className,Me,qe,tt),Mt=Se()({[`${dt}-indeterminate`]:It},Te.A,tt),Oe=It?"mixed":void 0;return de(Ie.createElement(it.Z,{component:"Checkbox",disabled:ft},Ie.createElement("label",{className:yt,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),be),onMouseEnter:Ne,onMouseLeave:xe},Ie.createElement(Ke.Z,Object.assign({"aria-checked":Oe},pt,{prefixCls:dt,className:Mt,disabled:ft,ref:me})),xt!==void 0&&Ie.createElement("span",null,xt))))};var y=Ie.forwardRef(ne),E=oe(94480),b=oe(2738),x=function(ge,me){var se={};for(var Le in ge)Object.prototype.hasOwnProperty.call(ge,Le)&&me.indexOf(Le)<0&&(se[Le]=ge[Le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Le=Object.getOwnPropertySymbols(ge);Me<Le.length;Me++)me.indexOf(Le[Me])<0&&Object.prototype.propertyIsEnumerable.call(ge,Le[Me])&&(se[Le[Me]]=ge[Le[Me]]);return se};const z=(ge,me)=>{const{defaultValue:se,children:Le,options:Me=[],prefixCls:qe,className:xt,rootClassName:It,style:be,onChange:Ne}=ge,xe=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:De,direction:nt}=Ie.useContext(fe.E_),[ct,Ue]=Ie.useState(xe.value||se||[]),[ot,Ze]=Ie.useState([]);Ie.useEffect(()=>{"value"in xe&&Ue(xe.value||[])},[xe.value]);const he=Ie.useMemo(()=>Me.map(ue=>typeof ue=="string"||typeof ue=="number"?{label:ue,value:ue}:ue),[Me]),$e=ue=>{Ze(Pe=>Pe.filter(Re=>Re!==ue))},je=ue=>{Ze(Pe=>[].concat((0,E.Z)(Pe),[ue]))},ft=ue=>{const Pe=ct.indexOf(ue.value),Re=(0,E.Z)(ct);Pe===-1?Re.push(ue.value):Re.splice(Pe,1),"value"in xe||Ue(Re),Ne==null||Ne(Re.filter(Ye=>ot.includes(Ye)).sort((Ye,ut)=>{const ht=he.findIndex(Nt=>Nt.value===Ye),Bt=he.findIndex(Nt=>Nt.value===ut);return ht-Bt}))},Je=De("checkbox",qe),dt=`${Je}-group`,[de,tt]=(0,Fe.ZP)(Je),pt=(0,b.Z)(xe,["value","disabled"]),yt=Me.length?he.map(ue=>Ie.createElement(y,{prefixCls:Je,key:ue.value.toString(),disabled:"disabled"in ue?ue.disabled:xe.disabled,value:ue.value,checked:ct.includes(ue.value),onChange:ue.onChange,className:`${dt}-item`,style:ue.style,title:ue.title},ue.label)):Le,Mt={toggleOption:ft,value:ct,disabled:xe.disabled,name:xe.name,registerValue:je,cancelValue:$e},Oe=Se()(dt,{[`${dt}-rtl`]:nt==="rtl"},xt,It,tt);return de(Ie.createElement("div",Object.assign({className:Oe,style:be},pt,{ref:me}),Ie.createElement(Ve.Provider,{value:Mt},yt)))},ee=Ie.forwardRef(z);var te=Ie.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(Ge,st,oe){"use strict";oe.d(st,{C2:function(){return fe}});var ae=oe(17313),Se=oe(37613),Ke=oe(83116);const Ie=we=>{const{checkboxCls:le}=we,ke=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[ke]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ke}`]:{marginInlineStart:0},[`&${ke}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ae.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ae.oN)(we))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[`
|
|
${ke}:not(${ke}-disabled),
|
|
${le}:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{borderColor:we.colorPrimary}},[`${ke}:not(${ke}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[`
|
|
${ke}-checked:not(${ke}-disabled),
|
|
${le}-checked:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ke}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:we.colorTextDisabled}}}]};function fe(we,le){const ke=(0,Se.TS)(le,{checkboxCls:`.${we}`,checkboxSize:le.controlInteractiveSize});return[Ie(ke)]}st.ZP=(0,Ke.Z)("Checkbox",(we,le)=>{let{prefixCls:ke}=le;return[fe(ke,we)]})},91857:function(Ge,st,oe){"use strict";var ae=oe(59301),Se=oe(38819),Ke=oe(92310),Ie=oe.n(Ke),fe=oe(31561),we=oe(70425),le=oe(18929),ke=oe(2738),Ve=oe(79676),Fe=oe(53487),it=oe(92343),Te=oe(36355),_e=oe(20834),ne=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=te=>{const{menu:re,arrow:ie,prefixCls:ge,children:me,trigger:se,disabled:Le,dropdownRender:Me,getPopupContainer:qe,overlayClassName:xt,rootClassName:It,open:be,onOpenChange:Ne,visible:xe,onVisibleChange:De,mouseEnterDelay:nt=.15,mouseLeaveDelay:ct=.1,autoAdjustOverflow:Ue=!0,placement:ot="",overlay:Ze,transitionName:he}=te,{getPopupContainer:$e,getPrefixCls:je,direction:ft}=ae.useContext(Te.E_),Je=ae.useMemo(()=>{const Et=je();return he!==void 0?he:ot.includes("top")?`${Et}-slide-down`:`${Et}-slide-up`},[je,ot,he]),dt=ae.useMemo(()=>ot?ot.includes("Center")?ot.slice(0,ot.indexOf("Center")):ot:ft==="rtl"?"bottomRight":"bottomLeft",[ot,ft]),de=je("dropdown",ge),[tt,pt]=(0,y.Z)(de),[,yt]=(0,a.Z)(),Mt=ae.Children.only(me),Oe=(0,it.Tm)(Mt,{className:Ie()(`${de}-trigger`,{[`${de}-rtl`]:ft==="rtl"},Mt.props.className),disabled:Le}),ue=Le?[]:se;let Pe;ue&&ue.includes("contextMenu")&&(Pe=!0);const[Re,Ye]=(0,le.Z)(!1,{value:be!=null?be:xe}),ut=(0,we.useEvent)(Et=>{Ne==null||Ne(Et),De==null||De(Et),Ye(Et)}),ht=Ie()(xt,It,pt,{[`${de}-rtl`]:ft==="rtl"}),Bt=(0,Ve.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:Ue,offset:yt.marginXXS,arrowWidth:ie?yt.sizePopupArrow:0,borderRadius:yt.borderRadius}),Nt=ae.useCallback(()=>{Ye(!1)},[]),Wt=()=>{let Et;return re!=null&&re.items?Et=ae.createElement(_e.default,Object.assign({},re)):typeof Ze=="function"?Et=Ze():Et=Ze,Me&&(Et=Me(Et)),Et=ae.Children.only(typeof Et=="string"?ae.createElement("span",null,Et):Et),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(Se.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Nt,validator:_t=>{let{mode:ln}=_t}},Et)};return tt(ae.createElement(fe.Z,Object.assign({alignPoint:Pe},(0,ke.Z)(te,["rootClassName"]),{mouseEnterDelay:nt,mouseLeaveDelay:ct,visible:Re,builtinPlacements:Bt,arrow:!!ie,overlayClassName:ht,prefixCls:de,getPopupContainer:qe||$e,transitionName:Je,trigger:ue,overlay:Wt,placement:dt,onVisibleChange:ut}),Oe))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Fe.Z)(b,"dropdown",te=>te,x),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,st.Z=b},47211:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return it}});var ae=oe(17313),Se=oe(13826),Ke=oe(92899),Ie=oe(29878),fe=oe(19447),we=oe(83116),le=oe(37613),Ve=Te=>{const{componentCls:_e,menuCls:ne,colorError:a,colorTextLightSolid:y}=Te,E=`${ne}-item`;return{[`${_e}, ${_e}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Fe=Te=>{const{componentCls:_e,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:se}=Te;return[{[_e]:Object.assign(Object.assign({},(0,ae.Wf)(Te)),{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}},[`${_e}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${_e}-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${_e}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${_e}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${_e}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${_e}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${_e}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${_e}-placement-bottomRight`]:{animationName:Se.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${_e}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${_e}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${_e}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${_e}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${_e}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${_e}-placement-topRight`]:{animationName:Se.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${_e}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${_e}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${_e}-placement-bottomRight`]:{animationName:Se.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${_e}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${_e}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${_e}-placement-topRight`]:{animationName:Se.ly}})},(0,fe.ZP)(Te,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${_e} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${_e}, ${_e}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary},(0,ae.Qy)(Te)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${me}px`,color:Te.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Te.marginXS,fontSize:Te.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:Te.colorText,fontWeight:"normal",fontSize:te,lineHeight:Te.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Te.borderRadiusSM,"&:hover, &-active":{backgroundColor:Te.controlItemBgHover}},(0,ae.Qy)(Te)),{"&-selected":{color:Te.colorPrimary,backgroundColor:Te.controlItemBgActive,"&:hover, &-active":{backgroundColor:Te.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Te.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Te.colorSplit},[`${_e}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Te.paddingXS,[`${_e}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Te.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Te.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:me+Te.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${_e}-menu-submenu-title`]:{[`&, ${_e}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ne}-submenu-selected ${_e}-menu-submenu-title`]:{color:Te.colorPrimary}})}},[(0,Se.oN)(Te,"slide-up"),(0,Se.oN)(Te,"slide-down"),(0,Ke.Fm)(Te,"move-up"),(0,Ke.Fm)(Te,"move-down"),(0,Ie._y)(Te,"zoom-big")]]};var it=(0,we.Z)("Dropdown",(Te,_e)=>{let{rootPrefixCls:ne}=_e;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Te,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,fe.fS)({contentRadius:te}),ge=(0,le.TS)(Te,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Fe(ge),Ve(ge)]},Te=>({zIndexPopup:Te.zIndexPopupBase+50}))},45818:function(Ge,st,oe){"use strict";oe.d(st,{D:function(){return z},Z:function(){return re}});var ae=oe(54476),Se=oe(59301),Ke={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=Ke,fe=oe(7657),we=function(ge,me){return Se.createElement(fe.Z,(0,ae.Z)({},ge,{ref:me,icon:Ie}))},le=Se.forwardRef(we),ke=le,Ve=oe(33853),Fe=oe(38819),it=oe(92310),Te=oe.n(it),_e=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),E=oe(84966),b=function(ie,ge){var me={};for(var se in ie)Object.prototype.hasOwnProperty.call(ie,se)&&ge.indexOf(se)<0&&(me[se]=ie[se]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,se=Object.getOwnPropertySymbols(ie);Le<se.length;Le++)ge.indexOf(se[Le])<0&&Object.prototype.propertyIsEnumerable.call(ie,se[Le])&&(me[se[Le]]=ie[se[Le]]);return me};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:me,className:se,trigger:Le,children:Me,defaultCollapsed:qe=!1,theme:xt="dark",style:It={},collapsible:be=!1,reverseArrow:Ne=!1,width:xe=200,collapsedWidth:De=80,zeroWidthTriggerStyle:nt,breakpoint:ct,onCollapse:Ue,onBreakpoint:ot}=ie,Ze=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:he}=(0,Se.useContext)(E.Gs),[$e,je]=(0,Se.useState)("collapsed"in ie?ie.collapsed:qe),[ft,Je]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in ie&&je(ie.collapsed)},[ie.collapsed]);const dt=(Oe,ue)=>{"collapsed"in ie||je(Oe),Ue==null||Ue(Oe,ue)},de=(0,Se.useRef)();de.current=Oe=>{Je(Oe.matches),ot==null||ot(Oe.matches),$e!==Oe.matches&&dt(Oe.matches,"responsive")},(0,Se.useEffect)(()=>{function Oe(Pe){return de.current(Pe)}let ue;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&ct&&ct in x){ue=Pe(`(max-width: ${x[ct]})`);try{ue.addEventListener("change",Oe)}catch(Re){ue.addListener(Oe)}Oe(ue)}}return()=>{try{ue==null||ue.removeEventListener("change",Oe)}catch(Pe){ue==null||ue.removeListener(Oe)}}},[ct]),(0,Se.useEffect)(()=>{const Oe=ee("ant-sider-");return he.addSider(Oe),()=>he.removeSider(Oe)},[]);const tt=()=>{dt(!$e,"clickTrigger")},{getPrefixCls:pt}=(0,Se.useContext)(y.E_),yt=()=>{const Oe=pt("layout-sider",me),ue=(0,_e.Z)(Ze,["collapsed"]),Pe=$e?De:xe,Re=a(Pe)?`${Pe}px`:String(Pe),Ye=parseFloat(String(De||0))===0?Se.createElement("span",{onClick:tt,className:Te()(`${Oe}-zero-width-trigger`,`${Oe}-zero-width-trigger-${Ne?"right":"left"}`),style:nt},Le||Se.createElement(ke,null)):null,Bt={expanded:Ne?Se.createElement(Fe.Z,null):Se.createElement(Ve.Z,null),collapsed:Ne?Se.createElement(Ve.Z,null):Se.createElement(Fe.Z,null)}[$e?"collapsed":"expanded"],Nt=Le!==null?Ye||Se.createElement("div",{className:`${Oe}-trigger`,onClick:tt,style:{width:Re}},Le||Bt):null,Wt=Object.assign(Object.assign({},It),{flex:`0 0 ${Re}`,maxWidth:Re,minWidth:Re,width:Re}),Et=Te()(Oe,`${Oe}-${xt}`,{[`${Oe}-collapsed`]:!!$e,[`${Oe}-has-trigger`]:be&&Le!==null&&!Ye,[`${Oe}-below`]:!!ft,[`${Oe}-zero-width`]:parseFloat(Re)===0},se);return Se.createElement("aside",Object.assign({className:Et},ue,{style:Wt,ref:ge}),Se.createElement("div",{className:`${Oe}-children`},Me),be||ft&&Ye?Nt:null)},Mt=Se.useMemo(()=>({siderCollapsed:$e}),[$e]);return Se.createElement(z.Provider,{value:Mt},yt())})},84966:function(Ge,st,oe){"use strict";oe.d(st,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return _e},ZP:function(){return ee}});var ae=oe(94480),Se=oe(92310),Ke=oe.n(Se),Ie=oe(2738),fe=oe(59301),we=oe(36355),le=oe(83116),Ve=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:me},[`${re}-sider-zero-width-trigger`]:{color:se,background:me,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Fe=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:me,footerBg:se,triggerBg:Le,headerHeight:Me,headerPadding:qe,headerColor:xt,footerPadding:It,triggerHeight:be,zeroTriggerHeight:Ne,zeroTriggerWidth:xe,motionDurationMid:De,motionDurationSlow:nt,fontSize:ct,borderRadius:Ue,bodyBg:ot,headerBg:Ze,siderBg:he}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ot,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:he,transition:`all ${De}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:be},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:be,color:me,lineHeight:`${be}px`,textAlign:"center",background:Le,cursor:"pointer",transition:`all ${De}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-xe,zIndex:1,width:xe,height:Ne,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:he,borderStartStartRadius:0,borderStartEndRadius:Ue,borderEndEndRadius:Ue,borderEndStartRadius:0,cursor:"pointer",transition:`background ${nt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${nt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-xe,borderStartStartRadius:Ue,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ue}}}}},Ve(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Me,padding:qe,color:xt,lineHeight:`${Me}px`,background:Ze,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:It,color:ge,fontSize:ct,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var it=(0,le.Z)("Layout",te=>[Fe(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:se,marginXXS:Le,colorTextLightSolid:Me,colorBgContainer:qe}=te,xt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${xt}px`,headerColor:me,footerPadding:`${se}px ${xt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Le*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:qe,lightTriggerBg:qe,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Te=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(te);me<ge.length;me++)re.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[me])&&(ie[ge[me]]=te[ge[me]]);return ie};const _e=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return me=>fe.forwardRef((Le,Me)=>fe.createElement(me,Object.assign({ref:Me,suffixCls:re,tagName:ie},Le)))}const a=fe.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:se}=te,Le=Te(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=fe.useContext(we.E_),qe=Me("layout",ie),[xt,It]=it(qe),be=ge?`${qe}-${ge}`:qe;return xt(fe.createElement(se,Object.assign({className:Ke()(ie||be,me,It),ref:re},Le)))}),y=fe.forwardRef((te,re)=>{const{direction:ie}=fe.useContext(we.E_),[ge,me]=fe.useState([]),{prefixCls:se,className:Le,rootClassName:Me,children:qe,hasSider:xt,tagName:It,style:be}=te,Ne=Te(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),xe=(0,Ie.Z)(Ne,["suffixCls"]),{getPrefixCls:De,layout:nt}=fe.useContext(we.E_),ct=De("layout",se),[Ue,ot]=it(ct),Ze=Ke()(ct,{[`${ct}-has-sider`]:typeof xt=="boolean"?xt:ge.length>0,[`${ct}-rtl`]:ie==="rtl"},nt==null?void 0:nt.className,Le,Me,ot),he=fe.useMemo(()=>({siderHook:{addSider:$e=>{me(je=>[].concat((0,ae.Z)(je),[$e]))},removeSider:$e=>{me(je=>je.filter(ft=>ft!==$e))}}}),[]);return Ue(fe.createElement(_e.Provider,{value:he},fe.createElement(It,Object.assign({ref:re,className:Ze,style:Object.assign(Object.assign({},nt==null?void 0:nt.style),be)},xe),qe)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(Ge,st,oe){"use strict";oe.d(st,{J:function(){return we}});var ae=oe(59301),Se=oe(33234),Ke=oe(70425),Ie=function(le,ke){var Ve={};for(var Fe in le)Object.prototype.hasOwnProperty.call(le,Fe)&&ke.indexOf(Fe)<0&&(Ve[Fe]=le[Fe]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Fe=Object.getOwnPropertySymbols(le);it<Fe.length;it++)ke.indexOf(Fe[it])<0&&Object.prototype.propertyIsEnumerable.call(le,Fe[it])&&(Ve[Fe[it]]=le[Fe[it]]);return Ve};const fe=ae.createContext(null),we=ae.forwardRef((le,ke)=>{const{children:Ve}=le,Fe=Ie(le,["children"]),it=ae.useContext(fe),Te=ae.useMemo(()=>Object.assign(Object.assign({},it),Fe),[it,Fe.prefixCls,Fe.mode,Fe.selectable]);return ae.createElement(fe.Provider,{value:Te},ae.createElement(Se.BR,null,(0,Ke.supportNodeRef)(Ve)?ae.cloneElement(Ve,{ref:ke}):Ve))});st.Z=fe},20834:function(Ge,st,oe){"use strict";oe.d(st,{default:function(){return Mt}});var ae=oe(15285),Se=oe(59301),Ke=oe(45818),Ie=oe(92310),fe=oe.n(Ie),we=oe(36355),le=function(Oe,ue){var Pe={};for(var Re in Oe)Object.prototype.hasOwnProperty.call(Oe,Re)&&ue.indexOf(Re)<0&&(Pe[Re]=Oe[Re]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Re=Object.getOwnPropertySymbols(Oe);Ye<Re.length;Ye++)ue.indexOf(Re[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Re[Ye])&&(Pe[Re[Ye]]=Oe[Re[Ye]]);return Pe},Ve=Oe=>{const{prefixCls:ue,className:Pe,dashed:Re}=Oe,Ye=le(Oe,["prefixCls","className","dashed"]),{getPrefixCls:ut}=Se.useContext(we.E_),ht=ut("menu",ue),Bt=fe()({[`${ht}-item-divider-dashed`]:!!Re},Pe);return Se.createElement(ae.iz,Object.assign({className:Bt},Ye))},Fe=oe(11592),it=oe(2738),Te=oe(6848),_e=oe(92343),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Oe=>{var ue;const{className:Pe,children:Re,icon:Ye,title:ut,danger:ht}=Oe,{prefixCls:Bt,firstLevel:Nt,direction:Wt,disableMenuItemTitleTooltip:Et,inlineCollapsed:_t}=Se.useContext(a),ln=Ce=>{const Xe=Se.createElement("span",{className:`${Bt}-title-content`},Re);return(!Ye||(0,_e.l$)(Re)&&Re.type==="span")&&Re&&Ce&&Nt&&typeof Re=="string"?Se.createElement("div",{className:`${Bt}-inline-collapsed-noicon`},Re.charAt(0)):Xe},{siderCollapsed:St}=Se.useContext(Ke.D);let Ut=ut;typeof ut=="undefined"?Ut=Nt?Re:"":ut===!1&&(Ut="");const Kt={title:Ut};!St&&!_t&&(Kt.title=null,Kt.open=!1);const Jt=(0,Fe.Z)(Re).length;let pe=Se.createElement(ae.ck,Object.assign({},(0,it.Z)(Oe,["title","icon","danger"]),{className:fe()({[`${Bt}-item-danger`]:ht,[`${Bt}-item-only-child`]:(Ye?Jt+1:Jt)===1},Pe),title:typeof ut=="string"?ut:void 0}),(0,_e.Tm)(Ye,{className:fe()((0,_e.l$)(Ye)?(ue=Ye.props)===null||ue===void 0?void 0:ue.className:"",`${Bt}-item-icon`)}),ln(_t));return Et||(pe=Se.createElement(Te.Z,Object.assign({},Kt,{placement:Wt==="rtl"?"left":"right",overlayClassName:`${Bt}-inline-collapsed-tooltip`}),pe)),pe},x=Oe=>{var ue;const{popupClassName:Pe,icon:Re,title:Ye,theme:ut}=Oe,ht=Se.useContext(a),{prefixCls:Bt,inlineCollapsed:Nt,theme:Wt}=ht,Et=(0,ae.Xl)();let _t;if(!Re)_t=Nt&&!Et.length&&Ye&&typeof Ye=="string"?Se.createElement("div",{className:`${Bt}-inline-collapsed-noicon`},Ye.charAt(0)):Se.createElement("span",{className:`${Bt}-title-content`},Ye);else{const St=(0,_e.l$)(Ye)&&Ye.type==="span";_t=Se.createElement(Se.Fragment,null,(0,_e.Tm)(Re,{className:fe()((0,_e.l$)(Re)?(ue=Re.props)===null||ue===void 0?void 0:ue.className:"",`${Bt}-item-icon`)}),St?Ye:Se.createElement("span",{className:`${Bt}-title-content`},Ye))}const ln=Se.useMemo(()=>Object.assign(Object.assign({},ht),{firstLevel:!1}),[ht]);return Se.createElement(a.Provider,{value:ln},Se.createElement(ae.Wd,Object.assign({},(0,it.Z)(Oe,["icon"]),{title:_t,popupClassName:fe()(Bt,Pe,`${Bt}-${ut||Wt}`)})))},z=oe(18785),ee=oe(70425),te=oe(62892),re=oe(40875),ie=function(Oe,ue){var Pe={};for(var Re in Oe)Object.prototype.hasOwnProperty.call(Oe,Re)&&ue.indexOf(Re)<0&&(Pe[Re]=Oe[Re]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Re=Object.getOwnPropertySymbols(Oe);Ye<Re.length;Ye++)ue.indexOf(Re[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Re[Ye])&&(Pe[Re[Ye]]=Oe[Re[Ye]]);return Pe};function ge(Oe){return(Oe||[]).map((ue,Pe)=>{if(ue&&typeof ue=="object"){const Re=ue,{label:Ye,children:ut,key:ht,type:Bt}=Re,Nt=ie(Re,["label","children","key","type"]),Wt=ht!=null?ht:`tmp-${Pe}`;return ut||Bt==="group"?Bt==="group"?Se.createElement(ae.BW,Object.assign({key:Wt},Nt,{title:Ye}),ge(ut)):Se.createElement(x,Object.assign({key:Wt},Nt,{title:Ye}),ge(ut)):Bt==="divider"?Se.createElement(Ve,Object.assign({key:Wt},Nt)):Se.createElement(E,Object.assign({key:Wt},Nt),Ye)}return null}).filter(ue=>ue)}function me(Oe){return Se.useMemo(()=>Oe&&ge(Oe),[Oe])}var se=oe(64993),Le=oe(17313),Me=oe(8378),qe=oe(13826),xt=oe(29878),It=oe(83116),be=oe(37613),xe=Oe=>{const{componentCls:ue,motionDurationSlow:Pe,horizontalLineHeight:Re,colorSplit:Ye,lineWidth:ut,lineType:ht,itemPaddingInline:Bt}=Oe;return{[`${ue}-horizontal`]:{lineHeight:Re,border:0,borderBottom:`${ut}px ${ht} ${Ye}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ue}-item, ${ue}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Bt},[`> ${ue}-item:hover,
|
|
> ${ue}-item-active,
|
|
> ${ue}-submenu ${ue}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ue}-item, ${ue}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${ue}-submenu-arrow`]:{display:"none"}}}},nt=Oe=>{let{componentCls:ue,menuArrowOffset:Pe}=Oe;return{[`${ue}-rtl`]:{direction:"rtl"},[`${ue}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ue}-rtl${ue}-vertical,
|
|
${ue}-submenu-rtl ${ue}-vertical`]:{[`${ue}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const ct=Oe=>Object.assign({},(0,Le.oN)(Oe));var ot=(Oe,ue)=>{const{componentCls:Pe,itemColor:Re,itemSelectedColor:Ye,groupTitleColor:ut,itemBg:ht,subMenuItemBg:Bt,itemSelectedBg:Nt,activeBarHeight:Wt,activeBarWidth:Et,activeBarBorderWidth:_t,motionDurationSlow:ln,motionEaseInOut:St,motionEaseOut:Ut,itemPaddingInline:Kt,motionDurationMid:Jt,itemHoverColor:pe,lineType:Ce,colorSplit:Xe,itemDisabledColor:mt,dangerItemColor:vt,dangerItemHoverColor:Dt,dangerItemSelectedColor:jt,dangerItemActiveBg:Ot,dangerItemSelectedBg:kt,itemHoverBg:qt,itemActiveBg:Vt,menuSubMenuBg:on,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:yn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:sn,popupBg:dn}=Oe;return{[`${Pe}-${ue}, ${Pe}-${ue} > ${Pe}`]:{color:Re,background:ht,[`&${Pe}-root:focus-visible`]:Object.assign({},ct(Oe)),[`${Pe}-item-group-title`]:{color:ut},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:Ye}},[`${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:pe}},[`&:not(${Pe}-horizontal)`]:{[`${Pe}-item:not(${Pe}-item-selected)`]:{"&:hover":{backgroundColor:qt},"&:active":{backgroundColor:Vt}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:qt},"&:active":{backgroundColor:Vt}}},[`${Pe}-item-danger`]:{color:vt,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Dt}},[`&${Pe}-item:active`]:{background:Ot}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:Ye,[`&${Pe}-item-danger`]:{color:jt},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:Nt,[`&${Pe}-item-danger`]:{backgroundColor:kt}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},ct(Oe))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:on},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:dn},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},ue==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:_t,marginTop:-_t,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${Wt}px solid transparent`,transition:`border-color ${ln} ${St}`,content:'""'},"&:hover, &-active, &-open":{background:sn,"&::after":{borderBottomWidth:Wt,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:yn,"&:hover":{backgroundColor:yn},"&::after":{borderBottomWidth:Wt,borderBottomColor:hn}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${_t}px ${Ce} ${Xe}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:Bt},[`${Pe}-item, ${Pe}-submenu-title`]:_t&&Et?{width:`calc(100% + ${_t}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Et}px solid ${Ye}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Jt} ${Ut}`,`opacity ${Jt} ${Ut}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:jt}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Jt} ${St}`,`opacity ${Jt} ${St}`].join(",")}}}}}};const Ze=Oe=>{const{componentCls:ue,itemHeight:Pe,itemMarginInline:Re,padding:Ye,menuArrowSize:ut,marginXS:ht,itemMarginBlock:Bt}=Oe,Nt=Ye+ut+ht;return{[`${ue}-item`]:{position:"relative",overflow:"hidden"},[`${ue}-item, ${ue}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:Ye,overflow:"hidden",textOverflow:"ellipsis",marginInline:Re,marginBlock:Bt,width:`calc(100% - ${Re*2}px)`},[`> ${ue}-item,
|
|
> ${ue}-submenu > ${ue}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${ue}-item-group-list ${ue}-submenu-title,
|
|
${ue}-submenu-title`]:{paddingInlineEnd:Nt}}};var $e=Oe=>{const{componentCls:ue,iconCls:Pe,itemHeight:Re,colorTextLightSolid:Ye,dropdownWidth:ut,controlHeightLG:ht,motionDurationMid:Bt,motionEaseOut:Nt,paddingXL:Wt,itemMarginInline:Et,fontSizeLG:_t,motionDurationSlow:ln,paddingXS:St,boxShadowSecondary:Ut,collapsedWidth:Kt,collapsedIconSize:Jt}=Oe,pe={height:Re,lineHeight:`${Re}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ue]:{"&-inline, &-vertical":Object.assign({[`&${ue}-root`]:{boxShadow:"none"}},Ze(Oe))},[`${ue}-submenu-popup`]:{[`${ue}-vertical`]:Object.assign(Object.assign({},Ze(Oe)),{boxShadow:Ut})}},{[`${ue}-submenu-popup ${ue}-vertical${ue}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${ht*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ue}-inline`]:{width:"100%",[`&${ue}-root`]:{[`${ue}-item, ${ue}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ln}`,`background ${ln}`,`padding ${Bt} ${Nt}`].join(","),[`> ${ue}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ue}-sub${ue}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ue}-submenu > ${ue}-submenu-title`]:pe,[`& ${ue}-item-group-title`]:{paddingInlineStart:Wt}},[`${ue}-item`]:pe}},{[`${ue}-inline-collapsed`]:{width:Kt,[`&${ue}-root`]:{[`${ue}-item, ${ue}-submenu ${ue}-submenu-title`]:{[`> ${ue}-inline-collapsed-noicon`]:{fontSize:_t,textAlign:"center"}}},[`> ${ue}-item,
|
|
> ${ue}-item-group > ${ue}-item-group-list > ${ue}-item,
|
|
> ${ue}-item-group > ${ue}-item-group-list > ${ue}-submenu > ${ue}-submenu-title,
|
|
> ${ue}-submenu > ${ue}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${_t/2}px - ${Et}px)`,textOverflow:"clip",[`
|
|
${ue}-submenu-arrow,
|
|
${ue}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ue}-item-icon, ${Pe}`]:{margin:0,fontSize:Jt,lineHeight:`${Re}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ue}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ue}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:Ye}},[`${ue}-item-group-title`]:Object.assign(Object.assign({},Le.vS),{paddingInline:St})}}]};const je=Oe=>{const{componentCls:ue,motionDurationSlow:Pe,motionDurationMid:Re,motionEaseInOut:Ye,motionEaseOut:ut,iconCls:ht,iconSize:Bt,iconMarginInlineEnd:Nt}=Oe;return{[`${ue}-item, ${ue}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${Ye}`].join(","),[`${ue}-item-icon, ${ht}`]:{minWidth:Bt,fontSize:Bt,transition:[`font-size ${Re} ${ut}`,`margin ${Pe} ${Ye}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:Nt,opacity:1,transition:[`opacity ${Pe} ${Ye}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${ue}-item-icon`]:Object.assign({},(0,Le.Ro)()),[`&${ue}-item-only-child`]:{[`> ${ht}, > ${ue}-item-icon`]:{marginInlineEnd:0}}},[`${ue}-item-disabled, ${ue}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ue}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ft=Oe=>{const{componentCls:ue,motionDurationSlow:Pe,motionEaseInOut:Re,borderRadius:Ye,menuArrowSize:ut,menuArrowOffset:ht}=Oe;return{[`${ue}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Oe.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${Re}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ut*.6,height:ut*.15,backgroundColor:"currentcolor",borderRadius:Ye,transition:[`background ${Pe} ${Re}`,`transform ${Pe} ${Re}`,`top ${Pe} ${Re}`,`color ${Pe} ${Re}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ht})`},"&::after":{transform:`rotate(-45deg) translateY(${ht})`}}}}},Je=Oe=>{const{antCls:ue,componentCls:Pe,fontSize:Re,motionDurationSlow:Ye,motionDurationMid:ut,motionEaseInOut:ht,paddingXS:Bt,padding:Nt,colorSplit:Wt,lineWidth:Et,zIndexPopup:_t,borderRadiusLG:ln,subMenuItemBorderRadius:St,menuArrowSize:Ut,menuArrowOffset:Kt,lineType:Jt,menuPanelMaskInset:pe,groupTitleLineHeight:Ce,groupTitleFontSize:Xe}=Oe;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,Le.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,Le.Wf)(Oe)),(0,Le.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Re,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ye} 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:Oe.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${Bt}px ${Nt}px`,fontSize:Xe,lineHeight:Ce,transition:`all ${Ye}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${Ye} ${ht}`,`background ${Ye} ${ht}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${Ye} ${ht}`,`background ${Ye} ${ht}`,`padding ${ut} ${ht}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${Ye} ${ht}`,`padding ${Ye} ${ht}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${Ye}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Wt,borderStyle:Jt,borderWidth:0,borderTopWidth:Et,marginBlock:Et,padding:0,"&-dashed":{borderStyle:"dashed"}}}),je(Oe)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${Re*2}px ${Nt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:_t,borderRadius:ln,boxShadow:"none",transformOrigin:"0 0",[`&${Pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:pe},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Oe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Oe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Oe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Oe.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:ln},je(Oe)),ft(Oe)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:St},[`${Pe}-submenu-title::after`]:{transition:`transform ${Ye} ${ht}`}})}}),ft(Oe)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
|
|
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Kt})`},"&::after":{transform:`rotate(45deg) translateX(-${Kt})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${Ut*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Kt})`},"&::before":{transform:`rotate(45deg) translateX(${Kt})`}}})},{[`${ue}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var dt=(Oe,ue)=>(0,It.Z)("Menu",Re=>{if(ue===!1)return[];const{colorBgElevated:Ye,colorPrimary:ut,colorTextLightSolid:ht,controlHeightLG:Bt,fontSize:Nt,darkItemColor:Wt,darkDangerItemColor:Et,darkItemBg:_t,darkSubMenuItemBg:ln,darkItemSelectedColor:St,darkItemSelectedBg:Ut,darkDangerItemSelectedBg:Kt,darkItemHoverBg:Jt,darkGroupTitleColor:pe,darkItemHoverColor:Ce,darkItemDisabledColor:Xe,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:vt,darkDangerItemActiveBg:Dt}=Re,jt=Nt/7*5,Ot=(0,be.TS)(Re,{menuArrowSize:jt,menuHorizontalHeight:Bt*1.15,menuArrowOffset:`${jt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ye}),kt=(0,be.TS)(Ot,{itemColor:Wt,itemHoverColor:Ce,groupTitleColor:pe,itemSelectedColor:St,itemBg:_t,popupBg:_t,subMenuItemBg:ln,itemActiveBg:"transparent",itemSelectedBg:Ut,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Jt,itemDisabledColor:Xe,dangerItemColor:Et,dangerItemHoverColor:mt,dangerItemSelectedColor:vt,dangerItemActiveBg:Dt,dangerItemSelectedBg:Kt,menuSubMenuBg:ln,horizontalItemSelectedColor:ht,horizontalItemSelectedBg:ut});return[Je(Ot),xe(Ot),$e(Ot),ot(Ot,"light"),ot(kt,"dark"),nt(Ot),(0,Me.Z)(Ot),(0,qe.oN)(Ot,"slide-up"),(0,qe.oN)(Ot,"slide-down"),(0,xt._y)(Ot,"zoom-big")]},Re=>{const{colorPrimary:Ye,colorError:ut,colorTextDisabled:ht,colorErrorBg:Bt,colorText:Nt,colorTextDescription:Wt,colorBgContainer:Et,colorFillAlter:_t,colorFillContent:ln,lineWidth:St,lineWidthBold:Ut,controlItemBgActive:Kt,colorBgTextHover:Jt,controlHeightLG:pe,lineHeight:Ce,colorBgElevated:Xe,marginXXS:mt,padding:vt,fontSize:Dt,controlHeightSM:jt,fontSizeLG:Ot,colorTextLightSolid:kt,colorErrorHover:qt}=Re,Vt=new se.C(kt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Re.zIndexPopupBase+50,radiusItem:Re.borderRadiusLG,itemBorderRadius:Re.borderRadiusLG,radiusSubMenuItem:Re.borderRadiusSM,subMenuItemBorderRadius:Re.borderRadiusSM,colorItemText:Nt,itemColor:Nt,colorItemTextHover:Nt,itemHoverColor:Nt,colorItemTextHoverHorizontal:Ye,horizontalItemHoverColor:Ye,colorGroupTitle:Wt,groupTitleColor:Wt,colorItemTextSelected:Ye,itemSelectedColor:Ye,colorItemTextSelectedHorizontal:Ye,horizontalItemSelectedColor:Ye,colorItemBg:Et,itemBg:Et,colorItemBgHover:Jt,itemHoverBg:Jt,colorItemBgActive:ln,itemActiveBg:Kt,colorSubItemBg:_t,subMenuItemBg:_t,colorItemBgSelected:Kt,itemSelectedBg:Kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ut,activeBarHeight:Ut,colorActiveBarBorderSize:St,activeBarBorderWidth:St,colorItemTextDisabled:ht,itemDisabledColor:ht,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:Bt,dangerItemActiveBg:Bt,colorDangerItemBgSelected:Bt,dangerItemSelectedBg:Bt,itemMarginInline:Re.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pe,groupTitleLineHeight:Ce,collapsedWidth:pe*2,popupBg:Xe,itemMarginBlock:mt,itemPaddingInline:vt,horizontalLineHeight:`${pe*1.15}px`,iconSize:Dt,iconMarginInlineEnd:jt-Dt,collapsedIconSize:Ot,groupTitleFontSize:Dt,darkItemDisabledColor:new se.C(kt).setAlpha(.25).toRgbString(),darkItemColor:Vt,darkDangerItemColor:ut,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:kt,darkItemSelectedBg:Ye,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:Vt,darkItemHoverColor:kt,darkDangerItemHoverColor:qt,darkDangerItemSelectedColor:kt,darkDangerItemActiveBg:ut}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Oe),de=function(Oe,ue){var Pe={};for(var Re in Oe)Object.prototype.hasOwnProperty.call(Oe,Re)&&ue.indexOf(Re)<0&&(Pe[Re]=Oe[Re]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Re=Object.getOwnPropertySymbols(Oe);Ye<Re.length;Ye++)ue.indexOf(Re[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Re[Ye])&&(Pe[Re[Ye]]=Oe[Re[Ye]]);return Pe},pt=(0,Se.forwardRef)((Oe,ue)=>{var Pe,Re;const Ye=Se.useContext(re.Z),ut=Ye||{},{getPrefixCls:ht,getPopupContainer:Bt,direction:Nt,menu:Wt}=Se.useContext(we.E_),Et=ht(),{prefixCls:_t,className:ln,style:St,theme:Ut="light",expandIcon:Kt,_internalDisableMenuItemTitleTooltip:Jt,inlineCollapsed:pe,siderCollapsed:Ce,items:Xe,children:mt,rootClassName:vt,mode:Dt,selectable:jt,onClick:Ot,overflowedIndicatorPopupClassName:kt}=Oe,qt=de(Oe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Vt=(0,it.Z)(qt,["collapsedWidth"]),on=me(Xe)||mt;(Pe=ut.validator)===null||Pe===void 0||Pe.call(ut,{mode:Dt});const hn=(0,ee.useEvent)(function(){var In;Ot==null||Ot.apply(void 0,arguments),(In=ut.onClick)===null||In===void 0||In.call(ut)}),yn=ut.mode||Dt,Fn=jt!=null?jt:ut.selectable,sn=Se.useMemo(()=>Ce!==void 0?Ce:pe,[pe,Ce]),dn={horizontal:{motionName:`${Et}-slide-up`},inline:(0,te.Z)(Et),other:{motionName:`${Et}-zoom-big`}},Ln=ht("menu",_t||ut.prefixCls),[xn,$n]=dt(Ln,!Ye),cn=fe()(`${Ln}-${Ut}`,Wt==null?void 0:Wt.className,ln);let zn;if(typeof Kt=="function")zn=Kt;else if(Kt===null||Kt===!1)zn=null;else if(ut.expandIcon===null||ut.expandIcon===!1)zn=null;else{const In=Kt!=null?Kt:ut.expandIcon;zn=(0,_e.Tm)(In,{className:fe()(`${Ln}-submenu-expand-icon`,(0,_e.l$)(In)?(Re=In.props)===null||Re===void 0?void 0:Re.className:"")})}const Vn=Se.useMemo(()=>({prefixCls:Ln,inlineCollapsed:sn||!1,direction:Nt,firstLevel:!0,theme:Ut,mode:yn,disableMenuItemTitleTooltip:Jt}),[Ln,sn,Nt,Jt,Ut]);return xn(Se.createElement(re.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Vn},Se.createElement(ae.ZP,Object.assign({getPopupContainer:Bt,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:fe()(Ln,`${Ln}-${Ut}`,kt),mode:yn,selectable:Fn,onClick:hn},Vt,{inlineCollapsed:sn,style:Object.assign(Object.assign({},Wt==null?void 0:Wt.style),St),className:cn,prefixCls:Ln,direction:Nt,defaultMotions:dn,expandIcon:zn,ref:ue,rootClassName:fe()(vt,$n)}),on))))});const yt=(0,Se.forwardRef)((Oe,ue)=>{const Pe=(0,Se.useRef)(null),Re=Se.useContext(Ke.D);return(0,Se.useImperativeHandle)(ue,()=>({menu:Pe.current,focus:Ye=>{var ut;(ut=Pe.current)===null||ut===void 0||ut.focus(Ye)}})),Se.createElement(pt,Object.assign({ref:Pe},Oe,Re))});yt.Item=E,yt.SubMenu=x,yt.Divider=Ve,yt.ItemGroup=ae.BW;var Mt=yt},93948:function(Ge,st,oe){"use strict";oe.d(st,{Z:function(){return Jt}});var ae=oe(59301),Se=oe(29679),Ke=oe(40001),Ie=oe(19248),fe=oe(99267),we=oe(92310),le=oe.n(we),ke=oe(2738),Ve=oe(36355),Fe=oe(54476),it=oe(33885),Te=oe(75931),_e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Ce=(0,ae.useRef)([]),Xe=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var mt=Date.now(),vt=!1;Ce.current.forEach(function(Dt){if(Dt){vt=!0;var jt=Dt.style;jt.transitionDuration=".3s, .3s, .3s, .06s",Xe.current&&mt-Xe.current<100&&(jt.transitionDuration="0s, 0s")}}),vt&&(Xe.current=Date.now())}),Ce.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ce){var Xe=(0,it.Z)((0,it.Z)({},_e),Ce),mt=Xe.className,vt=Xe.percent,Dt=Xe.prefixCls,jt=Xe.strokeColor,Ot=Xe.strokeLinecap,kt=Xe.strokeWidth,qt=Xe.style,Vt=Xe.trailColor,on=Xe.trailWidth,hn=Xe.transition,yn=(0,Te.Z)(Xe,a);delete yn.gapPosition;var Fn=Array.isArray(vt)?vt:[vt],sn=Array.isArray(jt)?jt:[jt],dn=ne(),Ln=kt/2,xn=100-kt/2,$n="M ".concat(Ot==="round"?Ln:0,",").concat(Ln,`
|
|
L `).concat(Ot==="round"?xn:100,",").concat(Ln),cn="0 0 100 ".concat(kt),zn=0;return ae.createElement("svg",(0,Fe.Z)({className:le()("".concat(Dt,"-line"),mt),viewBox:cn,preserveAspectRatio:"none",style:qt},yn),ae.createElement("path",{className:"".concat(Dt,"-line-trail"),d:$n,strokeLinecap:Ot,stroke:Vt,strokeWidth:on||kt,fillOpacity:"0"}),Fn.map(function(Vn,In){var Zn=1;switch(Ot){case"round":Zn=1-kt/100;break;case"square":Zn=1-kt/2/100;break;default:Zn=1;break}var na={strokeDasharray:"".concat(Vn*Zn,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:hn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ve=sn[In]||sn[sn.length-1];return zn+=Vn,ae.createElement("path",{key:In,className:"".concat(Dt,"-line-path"),d:$n,strokeLinecap:Ot,stroke:ve,strokeWidth:kt,fillOpacity:"0",ref:function(ye){dn[In]=ye},style:na})}))},E=y,b=oe(76190),x=oe(42978),z=oe(47273),ee=0,te=(0,z.Z)();function re(){var pe;return te?(pe=ee,ee+=1):pe="TEST_OR_SSR",pe}var ie=function(pe){var Ce=ae.useState(),Xe=(0,x.Z)(Ce,2),mt=Xe[0],vt=Xe[1];return ae.useEffect(function(){vt("rc_progress_".concat(re()))},[]),pe||mt},ge=function(Ce){var Xe=Ce.bg,mt=Ce.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Xe}},mt)};function me(pe,Ce){return Object.keys(pe).map(function(Xe){var mt=parseFloat(Xe),vt="".concat(Math.floor(mt*Ce),"%");return"".concat(pe[Xe]," ").concat(vt)})}var se=ae.forwardRef(function(pe,Ce){var Xe=pe.prefixCls,mt=pe.color,vt=pe.gradientId,Dt=pe.radius,jt=pe.style,Ot=pe.ptg,kt=pe.strokeLinecap,qt=pe.strokeWidth,Vt=pe.size,on=pe.gapDegree,hn=mt&&(0,b.Z)(mt)==="object",yn=hn?"#FFF":void 0,Fn=Vt/2,sn=ae.createElement("circle",{className:"".concat(Xe,"-circle-path"),r:Dt,cx:Fn,cy:Fn,stroke:yn,strokeLinecap:kt,strokeWidth:qt,opacity:Ot===0?0:1,style:jt,ref:Ce});if(!hn)return sn;var dn="".concat(vt,"-conic"),Ln=on?"".concat(180+on/2,"deg"):"0deg",xn=me(mt,(360-on)/360),$n=me(mt,1),cn="conic-gradient(from ".concat(Ln,", ").concat(xn.join(", "),")"),zn="linear-gradient(to ".concat(on?"bottom":"top",", ").concat($n.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:dn},sn),ae.createElement("foreignObject",{x:0,y:0,width:Vt,height:Vt,mask:"url(#".concat(dn,")")},ae.createElement(ge,{bg:zn},ae.createElement(ge,{bg:cn}))))}),Le=se,Me=100,qe=function(Ce,Xe,mt,vt,Dt,jt,Ot,kt,qt,Vt){var on=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=mt/100*360*((360-jt)/360),yn=jt===0?0:{bottom:0,top:180,left:90,right:-90}[Ot],Fn=(100-vt)/100*Xe;qt==="round"&&vt!==100&&(Fn+=Vt/2,Fn>=Xe&&(Fn=Xe-.01));var sn=Me/2;return{stroke:typeof kt=="string"?kt:void 0,strokeDasharray:"".concat(Xe,"px ").concat(Ce),strokeDashoffset:Fn+on,transform:"rotate(".concat(Dt+hn+yn,"deg)"),transformOrigin:"".concat(sn,"px ").concat(sn,"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}},xt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function It(pe){var Ce=pe!=null?pe:[];return Array.isArray(Ce)?Ce:[Ce]}var be=function(Ce){var Xe=(0,it.Z)((0,it.Z)({},_e),Ce),mt=Xe.id,vt=Xe.prefixCls,Dt=Xe.steps,jt=Xe.strokeWidth,Ot=Xe.trailWidth,kt=Xe.gapDegree,qt=kt===void 0?0:kt,Vt=Xe.gapPosition,on=Xe.trailColor,hn=Xe.strokeLinecap,yn=Xe.style,Fn=Xe.className,sn=Xe.strokeColor,dn=Xe.percent,Ln=(0,Te.Z)(Xe,xt),xn=Me/2,$n=ie(mt),cn="".concat($n,"-gradient"),zn=xn-jt/2,Vn=Math.PI*2*zn,In=qt>0?90+qt/2:-90,Zn=Vn*((360-qt)/360),na=(0,b.Z)(Dt)==="object"?Dt:{count:Dt,space:2},ve=na.count,Ee=na.space,ye=It(dn),rt=It(sn),wt=rt.find(function(An){return An&&(0,b.Z)(An)==="object"}),Gt=wt&&(0,b.Z)(wt)==="object",en=Gt?"butt":hn,Yt=qe(Vn,Zn,0,100,In,qt,Vt,on,en,jt),At=ne(),bn=function(){var lt=0;return ye.map(function(Qt,Hn){var Rn=rt[Hn]||rt[rt.length-1],Mn=qe(Vn,Zn,lt,Qt,In,qt,Vt,Rn,en,jt);return lt+=Qt,ae.createElement(Le,{key:Hn,color:Rn,ptg:Qt,radius:zn,prefixCls:vt,gradientId:cn,style:Mn,strokeLinecap:en,strokeWidth:jt,gapDegree:qt,ref:function(Ae){At[Hn]=Ae},size:Me})}).reverse()},Qn=function(){var lt=Math.round(ve*(ye[0]/100)),Qt=100/ve,Hn=0;return new Array(ve).fill(null).map(function(Rn,Mn){var ce=Mn<=lt-1?rt[0]:on,Ae=ce&&(0,b.Z)(ce)==="object"?"url(#".concat(cn,")"):void 0,ze=qe(Vn,Zn,Hn,Qt,In,qt,Vt,ce,"butt",jt,Ee);return Hn+=(Zn-ze.strokeDashoffset+Ee)*100/Zn,ae.createElement("circle",{key:Mn,className:"".concat(vt,"-circle-path"),r:zn,cx:xn,cy:xn,stroke:Ae,strokeWidth:jt,opacity:1,style:ze,ref:function(at){At[Mn]=at}})})};return ae.createElement("svg",(0,Fe.Z)({className:le()("".concat(vt,"-circle"),Fn),viewBox:"0 0 ".concat(Me," ").concat(Me),style:yn,id:mt,role:"presentation"},Ln),!ve&&ae.createElement("circle",{className:"".concat(vt,"-circle-trail"),r:zn,cx:xn,cy:xn,stroke:on,strokeLinecap:en,strokeWidth:Ot||jt,style:Yt}),ve?Qn():bn())},Ne=be,xe={Line:E,Circle:Ne},De=oe(6848),nt=oe(30071);function ct(pe){return!pe||pe<0?0:pe>100?100:pe}function Ue(pe){let{success:Ce,successPercent:Xe}=pe,mt=Xe;return Ce&&"progress"in Ce&&(mt=Ce.progress),Ce&&"percent"in Ce&&(mt=Ce.percent),mt}const ot=pe=>{let{percent:Ce,success:Xe,successPercent:mt}=pe;const vt=ct(Ue({success:Xe,successPercent:mt}));return[vt,ct(ct(Ce)-vt)]},Ze=pe=>{let{success:Ce={},strokeColor:Xe}=pe;const{strokeColor:mt}=Ce;return[mt||nt.presetPrimaryColors.green,Xe||null]},he=(pe,Ce,Xe)=>{var mt,vt,Dt,jt;let Ot=-1,kt=-1;if(Ce==="step"){const qt=Xe.steps,Vt=Xe.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?(Ot=pe==="small"?2:14,kt=Vt!=null?Vt:8):typeof pe=="number"?[Ot,kt]=[pe,pe]:[Ot=14,kt=8]=pe,Ot*=qt}else if(Ce==="line"){const qt=Xe==null?void 0:Xe.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?kt=qt||(pe==="small"?6:8):typeof pe=="number"?[Ot,kt]=[pe,pe]:[Ot=-1,kt=8]=pe}else(Ce==="circle"||Ce==="dashboard")&&(typeof pe=="string"||typeof pe=="undefined"?[Ot,kt]=pe==="small"?[60,60]:[120,120]:typeof pe=="number"?[Ot,kt]=[pe,pe]:(Ot=(vt=(mt=pe[0])!==null&&mt!==void 0?mt:pe[1])!==null&&vt!==void 0?vt:120,kt=(jt=(Dt=pe[0])!==null&&Dt!==void 0?Dt:pe[1])!==null&&jt!==void 0?jt:120));return[Ot,kt]},$e=3,je=pe=>$e/pe*100;var Je=pe=>{const{prefixCls:Ce,trailColor:Xe=null,strokeLinecap:mt="round",gapPosition:vt,gapDegree:Dt,width:jt=120,type:Ot,children:kt,success:qt,size:Vt=jt}=pe,[on,hn]=he(Vt,"circle");let{strokeWidth:yn}=pe;yn===void 0&&(yn=Math.max(je(on),6));const Fn={width:on,height:hn,fontSize:on*.15+6},sn=ae.useMemo(()=>{if(Dt||Dt===0)return Dt;if(Ot==="dashboard")return 75},[Dt,Ot]),dn=vt||Ot==="dashboard"&&"bottom"||void 0,Ln=Object.prototype.toString.call(pe.strokeColor)==="[object Object]",xn=Ze({success:qt,strokeColor:pe.strokeColor}),$n=le()(`${Ce}-inner`,{[`${Ce}-circle-gradient`]:Ln}),cn=ae.createElement(Ne,{percent:ot(pe),strokeWidth:yn,trailWidth:yn,strokeColor:xn,strokeLinecap:mt,trailColor:Xe,prefixCls:Ce,gapDegree:sn,gapPosition:dn});return ae.createElement("div",{className:$n,style:Fn},on<=20?ae.createElement(De.Z,{title:kt},ae.createElement("span",null,cn)):ae.createElement(ae.Fragment,null,cn,kt))},dt=function(pe,Ce){var Xe={};for(var mt in pe)Object.prototype.hasOwnProperty.call(pe,mt)&&Ce.indexOf(mt)<0&&(Xe[mt]=pe[mt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,mt=Object.getOwnPropertySymbols(pe);vt<mt.length;vt++)Ce.indexOf(mt[vt])<0&&Object.prototype.propertyIsEnumerable.call(pe,mt[vt])&&(Xe[mt[vt]]=pe[mt[vt]]);return Xe};const de=pe=>{let Ce=[];return Object.keys(pe).forEach(Xe=>{const mt=parseFloat(Xe.replace(/%/g,""));isNaN(mt)||Ce.push({key:mt,value:pe[Xe]})}),Ce=Ce.sort((Xe,mt)=>Xe.key-mt.key),Ce.map(Xe=>{let{key:mt,value:vt}=Xe;return`${vt} ${mt}%`}).join(", ")},tt=(pe,Ce)=>{const{from:Xe=nt.presetPrimaryColors.blue,to:mt=nt.presetPrimaryColors.blue,direction:vt=Ce==="rtl"?"to left":"to right"}=pe,Dt=dt(pe,["from","to","direction"]);if(Object.keys(Dt).length!==0){const jt=de(Dt);return{backgroundImage:`linear-gradient(${vt}, ${jt})`}}return{backgroundImage:`linear-gradient(${vt}, ${Xe}, ${mt})`}};var yt=pe=>{const{prefixCls:Ce,direction:Xe,percent:mt,size:vt,strokeWidth:Dt,strokeColor:jt,strokeLinecap:Ot="round",children:kt,trailColor:qt=null,success:Vt}=pe,on=jt&&typeof jt!="string"?tt(jt,Xe):{backgroundColor:jt},hn=Ot==="square"||Ot==="butt"?0:void 0,yn={backgroundColor:qt||void 0,borderRadius:hn},Fn=vt!=null?vt:[-1,Dt||(vt==="small"?6:8)],[sn,dn]=he(Fn,"line",{strokeWidth:Dt}),Ln=Object.assign({width:`${ct(mt)}%`,height:dn,borderRadius:hn},on),xn=Ue(pe),$n={width:`${ct(xn)}%`,height:dn,borderRadius:hn,backgroundColor:Vt==null?void 0:Vt.strokeColor},cn={width:sn<0?"100%":sn,height:dn};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ce}-outer`,style:cn},ae.createElement("div",{className:`${Ce}-inner`,style:yn},ae.createElement("div",{className:`${Ce}-bg`,style:Ln}),xn!==void 0?ae.createElement("div",{className:`${Ce}-success-bg`,style:$n}):null)),kt)},Oe=pe=>{const{size:Ce,steps:Xe,percent:mt=0,strokeWidth:vt=8,strokeColor:Dt,trailColor:jt=null,prefixCls:Ot,children:kt}=pe,qt=Math.round(Xe*(mt/100)),Vt=Ce==="small"?2:14,on=Ce!=null?Ce:[Vt,vt],[hn,yn]=he(on,"step",{steps:Xe,strokeWidth:vt}),Fn=hn/Xe,sn=new Array(Xe);for(let dn=0;dn<Xe;dn++){const Ln=Array.isArray(Dt)?Dt[dn]:Dt;sn[dn]=ae.createElement("div",{key:dn,className:le()(`${Ot}-steps-item`,{[`${Ot}-steps-item-active`]:dn<=qt-1}),style:{backgroundColor:dn<=qt-1?Ln:jt,width:Fn,height:yn}})}return ae.createElement("div",{className:`${Ot}-steps-outer`},sn,kt)},ue=oe(36237),Pe=oe(17313),Re=oe(83116),Ye=oe(37613);const ut=pe=>{const Ce=pe?"100%":"-100%";return new ue.Keyframes(`antProgress${pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ce}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ce}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ht=pe=>{const{componentCls:Ce,iconCls:Xe}=pe;return{[Ce]:Object.assign(Object.assign({},(0,Pe.Wf)(pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:pe.fontSize,marginInlineEnd:pe.marginXS,marginBottom:pe.marginXS},[`${Ce}-outer`]:{display:"inline-block",width:"100%"},[`&${Ce}-show-info`]:{[`${Ce}-outer`]:{marginInlineEnd:`calc(-2em - ${pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${pe.paddingXS}px)`}},[`${Ce}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:pe.remainingColor,borderRadius:pe.lineBorderRadius},[`${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:pe.defaultColor}},[`${Ce}-success-bg, ${Ce}-bg`]:{position:"relative",backgroundColor:pe.defaultColor,borderRadius:pe.lineBorderRadius,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOutCirc}`},[`${Ce}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:pe.colorSuccess},[`${Ce}-text`]:{display:"inline-block",width:"2em",marginInlineStart:pe.marginXS,color:pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Xe]:{fontSize:pe.fontSize}},[`&${Ce}-status-active`]:{[`${Ce}-bg::before`]:{position:"absolute",inset:0,backgroundColor:pe.colorBgContainer,borderRadius:pe.lineBorderRadius,opacity:0,animationName:ut(),animationDuration:pe.progressActiveMotionDuration,animationTimingFunction:pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ce}-rtl${Ce}-status-active`]:{[`${Ce}-bg::before`]:{animationName:ut(!0)}},[`&${Ce}-status-exception`]:{[`${Ce}-bg`]:{backgroundColor:pe.colorError},[`${Ce}-text`]:{color:pe.colorError}},[`&${Ce}-status-exception ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:pe.colorError}},[`&${Ce}-status-success`]:{[`${Ce}-bg`]:{backgroundColor:pe.colorSuccess},[`${Ce}-text`]:{color:pe.colorSuccess}},[`&${Ce}-status-success ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:pe.colorSuccess}}})}},Bt=pe=>{const{componentCls:Ce,iconCls:Xe}=pe;return{[Ce]:{[`${Ce}-circle-trail`]:{stroke:pe.remainingColor},[`&${Ce}-circle ${Ce}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ce}-circle ${Ce}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:pe.circleTextColor,fontSize:pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Xe]:{fontSize:`${pe.fontSize/pe.fontSizeSM}em`}},[`${Ce}-circle&-status-exception`]:{[`${Ce}-text`]:{color:pe.colorError}},[`${Ce}-circle&-status-success`]:{[`${Ce}-text`]:{color:pe.colorSuccess}}},[`${Ce}-inline-circle`]:{lineHeight:1,[`${Ce}-inner`]:{verticalAlign:"bottom"}}}},Nt=pe=>{const{componentCls:Ce}=pe;return{[Ce]:{[`${Ce}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:pe.progressStepMinWidth,marginInlineEnd:pe.progressStepMarginInlineEnd,backgroundColor:pe.remainingColor,transition:`all ${pe.motionDurationSlow}`,"&-active":{backgroundColor:pe.defaultColor}}}}}},Wt=pe=>{const{componentCls:Ce,iconCls:Xe}=pe;return{[Ce]:{[`${Ce}-small&-line, ${Ce}-small&-line ${Ce}-text ${Xe}`]:{fontSize:pe.fontSizeSM}}}};var Et=(0,Re.Z)("Progress",pe=>{const Ce=pe.marginXXS/2,Xe=(0,Ye.TS)(pe,{progressStepMarginInlineEnd:Ce,progressStepMinWidth:Ce,progressActiveMotionDuration:"2.4s"});return[ht(Xe),Bt(Xe),Nt(Xe),Wt(Xe)]},pe=>({circleTextColor:pe.colorText,defaultColor:pe.colorInfo,remainingColor:pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),_t=function(pe,Ce){var Xe={};for(var mt in pe)Object.prototype.hasOwnProperty.call(pe,mt)&&Ce.indexOf(mt)<0&&(Xe[mt]=pe[mt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,mt=Object.getOwnPropertySymbols(pe);vt<mt.length;vt++)Ce.indexOf(mt[vt])<0&&Object.prototype.propertyIsEnumerable.call(pe,mt[vt])&&(Xe[mt[vt]]=pe[mt[vt]]);return Xe};const ln=null,St=["normal","exception","active","success"];var Kt=ae.forwardRef((pe,Ce)=>{const{prefixCls:Xe,className:mt,rootClassName:vt,steps:Dt,strokeColor:jt,percent:Ot=0,size:kt="default",showInfo:qt=!0,type:Vt="line",status:on,format:hn,style:yn}=pe,Fn=_t(pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),sn=ae.useMemo(()=>{var ye,rt;const wt=Ue(pe);return parseInt(wt!==void 0?(ye=wt!=null?wt:0)===null||ye===void 0?void 0:ye.toString():(rt=Ot!=null?Ot:0)===null||rt===void 0?void 0:rt.toString(),10)},[Ot,pe.success,pe.successPercent]),dn=ae.useMemo(()=>!St.includes(on)&&sn>=100?"success":on||"normal",[on,sn]),{getPrefixCls:Ln,direction:xn,progress:$n}=ae.useContext(Ve.E_),cn=Ln("progress",Xe),[zn,Vn]=Et(cn),In=ae.useMemo(()=>{if(!qt)return null;const ye=Ue(pe);let rt;const wt=hn||(en=>`${en}%`),Gt=Vt==="line";return hn||dn!=="exception"&&dn!=="success"?rt=wt(ct(Ot),ct(ye)):dn==="exception"?rt=Gt?ae.createElement(Ie.Z,null):ae.createElement(fe.Z,null):dn==="success"&&(rt=Gt?ae.createElement(Se.Z,null):ae.createElement(Ke.Z,null)),ae.createElement("span",{className:`${cn}-text`,title:typeof rt=="string"?rt:void 0},rt)},[qt,Ot,sn,dn,Vt,cn,hn]),Zn=Array.isArray(jt)?jt[0]:jt,na=typeof jt=="string"||Array.isArray(jt)?jt:void 0;let ve;Vt==="line"?ve=Dt?ae.createElement(Oe,Object.assign({},pe,{strokeColor:na,prefixCls:cn,steps:Dt}),In):ae.createElement(yt,Object.assign({},pe,{strokeColor:Zn,prefixCls:cn,direction:xn}),In):(Vt==="circle"||Vt==="dashboard")&&(ve=ae.createElement(Je,Object.assign({},pe,{strokeColor:Zn,prefixCls:cn,progressStatus:dn}),In));const Ee=le()(cn,`${cn}-status-${dn}`,`${cn}-${Vt==="dashboard"&&"circle"||Dt&&"steps"||Vt}`,{[`${cn}-inline-circle`]:Vt==="circle"&&he(kt,"circle")[0]<=20,[`${cn}-show-info`]:qt,[`${cn}-${kt}`]:typeof kt=="string",[`${cn}-rtl`]:xn==="rtl"},$n==null?void 0:$n.className,mt,vt,Vn);return zn(ae.createElement("div",Object.assign({ref:Ce,style:Object.assign(Object.assign({},$n==null?void 0:$n.style),yn),className:Ee,role:"progressbar","aria-valuenow":sn},(0,ke.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ve))}),Jt=Kt},54580:function(Ge,st,oe){"use strict";oe.d(st,{default:function(){return Mn}});var ae=oe(59301),Se=oe(94480),Ke=oe(92310),Ie=oe.n(Ke),fe=oe(54476),we=oe(67732),le=oe(83652),ke=oe(42403),Ve=oe(158),Fe=oe(20068),it=oe(75931),Te=oe(75044),_e=oe(76190),ne=oe(3202),a=oe(26112);function y(ce,Ae){var ze="cannot ".concat(ce.method," ").concat(ce.action," ").concat(Ae.status,"'"),He=new Error(ze);return He.status=Ae.status,He.method=ce.method,He.url=ce.action,He}function E(ce){var Ae=ce.responseText||ce.response;if(!Ae)return Ae;try{return JSON.parse(Ae)}catch(ze){return Ae}}function b(ce){var Ae=new XMLHttpRequest;ce.onProgress&&Ae.upload&&(Ae.upload.onprogress=function(gt){gt.total>0&&(gt.percent=gt.loaded/gt.total*100),ce.onProgress(gt)});var ze=new FormData;ce.data&&Object.keys(ce.data).forEach(function(at){var gt=ce.data[at];if(Array.isArray(gt)){gt.forEach(function(Qe){ze.append("".concat(at,"[]"),Qe)});return}ze.append(at,gt)}),ce.file instanceof Blob?ze.append(ce.filename,ce.file,ce.file.name):ze.append(ce.filename,ce.file),Ae.onerror=function(gt){ce.onError(gt)},Ae.onload=function(){return Ae.status<200||Ae.status>=300?ce.onError(y(ce,Ae),E(Ae)):ce.onSuccess(E(Ae),Ae)},Ae.open(ce.method,ce.action,!0),ce.withCredentials&&"withCredentials"in Ae&&(Ae.withCredentials=!0);var He=ce.headers||{};return He["X-Requested-With"]!==null&&Ae.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(He).forEach(function(at){He[at]!==null&&Ae.setRequestHeader(at,He[at])}),Ae.send(ze),{abort:function(){Ae.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(48736),re=function(ce,Ae){if(ce&&Ae){var ze=Array.isArray(Ae)?Ae:Ae.split(","),He=ce.name||"",at=ce.type||"",gt=at.replace(/\/.*$/,"");return ze.some(function(Qe){var We=Qe.trim();if(/^\*(\/\*)?$/.test(Qe))return!0;if(We.charAt(0)==="."){var Tt=He.toLowerCase(),Be=We.toLowerCase(),Rt=[Be];return(Be===".jpg"||Be===".jpeg")&&(Rt=[".jpg",".jpeg"]),Rt.some(function(tn){return Tt.endsWith(tn)})}return/\/\*$/.test(We)?gt===We.replace(/\/.*$/,""):at===We?!0:/^\w+$/.test(We)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(We,"'.Skip for check.")),!0):!1})}return!0};function ie(ce,Ae){var ze=ce.createReader(),He=[];function at(){ze.readEntries(function(gt){var Qe=Array.prototype.slice.apply(gt);He=He.concat(Qe);var We=!Qe.length;We?Ae(He):at()})}at()}var ge=function(Ae,ze,He){var at=function gt(Qe,We){Qe&&(Qe.path=We||"",Qe.isFile?Qe.file(function(Tt){He(Tt)&&(Qe.fullPath&&!Tt.webkitRelativePath&&(Object.defineProperties(Tt,{webkitRelativePath:{writable:!0}}),Tt.webkitRelativePath=Qe.fullPath.replace(/^\//,""),Object.defineProperties(Tt,{webkitRelativePath:{writable:!1}})),ze([Tt]))}):Qe.isDirectory&&ie(Qe,function(Tt){Tt.forEach(function(Be){gt(Be,"".concat(We).concat(Qe.name,"/"))})}))};Ae.forEach(function(gt){at(gt.webkitGetAsEntry())})},me=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Le=function(ce){(0,ke.Z)(ze,ce);var Ae=(0,Ve.Z)(ze);function ze(){var He;(0,we.Z)(this,ze);for(var at=arguments.length,gt=new Array(at),Qe=0;Qe<at;Qe++)gt[Qe]=arguments[Qe];return He=Ae.call.apply(Ae,[this].concat(gt)),He.state={uid:ee()},He.reqs={},He.fileInput=void 0,He._isMounted=void 0,He.onChange=function(We){var Tt=He.props,Be=Tt.accept,Rt=Tt.directory,tn=We.target.files,rn=(0,Se.Z)(tn).filter(function(Sn){return!Rt||re(Sn,Be)});He.uploadFiles(rn),He.reset()},He.onClick=function(We){var Tt=He.fileInput;if(Tt){var Be=We.target,Rt=He.props.onClick;if(Be&&Be.tagName==="BUTTON"){var tn=Tt.parentNode;tn.focus(),Be.blur()}Tt.click(),Rt&&Rt(We)}},He.onKeyDown=function(We){We.key==="Enter"&&He.onClick(We)},He.onFileDrop=function(We){var Tt=He.props.multiple;if(We.preventDefault(),We.type!=="dragover")if(He.props.directory)me(Array.prototype.slice.call(We.dataTransfer.items),He.uploadFiles,function(Rt){return re(Rt,He.props.accept)});else{var Be=(0,Se.Z)(We.dataTransfer.files).filter(function(Rt){return re(Rt,He.props.accept)});Tt===!1&&(Be=Be.slice(0,1)),He.uploadFiles(Be)}},He.uploadFiles=function(We){var Tt=(0,Se.Z)(We),Be=Tt.map(function(Rt){return Rt.uid=ee(),He.processFile(Rt,Tt)});Promise.all(Be).then(function(Rt){var tn=He.props.onBatchStart;tn==null||tn(Rt.map(function(rn){var Sn=rn.origin,kn=rn.parsedFile;return{file:Sn,parsedFile:kn}})),Rt.filter(function(rn){return rn.parsedFile!==null}).forEach(function(rn){He.post(rn)})})},He.processFile=function(){var We=(0,ne.Z)((0,Te.Z)().mark(function Tt(Be,Rt){var tn,rn,Sn,kn,et,Ct,Lt,Ft,gn;return(0,Te.Z)().wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:if(tn=He.props.beforeUpload,rn=Be,!tn){Zt.next=14;break}return Zt.prev=3,Zt.next=6,tn(Be,Rt);case 6:rn=Zt.sent,Zt.next=12;break;case 9:Zt.prev=9,Zt.t0=Zt.catch(3),rn=!1;case 12:if(rn!==!1){Zt.next=14;break}return Zt.abrupt("return",{origin:Be,parsedFile:null,action:null,data:null});case 14:if(Sn=He.props.action,typeof Sn!="function"){Zt.next=21;break}return Zt.next=18,Sn(Be);case 18:kn=Zt.sent,Zt.next=22;break;case 21:kn=Sn;case 22:if(et=He.props.data,typeof et!="function"){Zt.next=29;break}return Zt.next=26,et(Be);case 26:Ct=Zt.sent,Zt.next=30;break;case 29:Ct=et;case 30:return Lt=((0,_e.Z)(rn)==="object"||typeof rn=="string")&&rn?rn:Be,Lt instanceof File?Ft=Lt:Ft=new File([Lt],Be.name,{type:Be.type}),gn=Ft,gn.uid=Be.uid,Zt.abrupt("return",{origin:Be,data:Ct,parsedFile:gn,action:kn});case 35:case"end":return Zt.stop()}},Tt,null,[[3,9]])}));return function(Tt,Be){return We.apply(this,arguments)}}(),He.saveFileInput=function(We){He.fileInput=We},He}return(0,le.Z)(ze,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(at){var gt=this,Qe=at.data,We=at.origin,Tt=at.action,Be=at.parsedFile;if(this._isMounted){var Rt=this.props,tn=Rt.onStart,rn=Rt.customRequest,Sn=Rt.name,kn=Rt.headers,et=Rt.withCredentials,Ct=Rt.method,Lt=We.uid,Ft=rn||b,gn={action:Tt,filename:Sn,data:Qe,file:Be,headers:kn,withCredentials:et,method:Ct||"post",onProgress:function(Zt){var fn=gt.props.onProgress;fn==null||fn(Zt,Be)},onSuccess:function(Zt,fn){var pn=gt.props.onSuccess;pn==null||pn(Zt,Be,fn),delete gt.reqs[Lt]},onError:function(Zt,fn){var pn=gt.props.onError;pn==null||pn(Zt,fn,Be),delete gt.reqs[Lt]}};tn(We),this.reqs[Lt]=Ft(gn)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(at){var gt=this.reqs;if(at){var Qe=at.uid?at.uid:at;gt[Qe]&>[Qe].abort&>[Qe].abort(),delete gt[Qe]}else Object.keys(gt).forEach(function(We){gt[We]&>[We].abort&>[We].abort(),delete gt[We]})}},{key:"render",value:function(){var at=this.props,gt=at.component,Qe=at.prefixCls,We=at.className,Tt=at.disabled,Be=at.id,Rt=at.style,tn=at.multiple,rn=at.accept,Sn=at.capture,kn=at.children,et=at.directory,Ct=at.openFileDialogOnClick,Lt=at.onMouseEnter,Ft=at.onMouseLeave,gn=(0,it.Z)(at,se),an=Ie()((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},Qe,!0),"".concat(Qe,"-disabled"),Tt),We,We)),Zt=et?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},fn=Tt?{}:{onClick:Ct?this.onClick:function(){},onKeyDown:Ct?this.onKeyDown:function(){},onMouseEnter:Lt,onMouseLeave:Ft,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(gt,(0,fe.Z)({},fn,{className:an,role:"button",style:Rt}),ae.createElement("input",(0,fe.Z)({},(0,a.Z)(gn,{aria:!0,data:!0}),{id:Be,disabled:Tt,type:"file",ref:this.saveFileInput,onClick:function(Kn){return Kn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:rn},Zt,{multiple:tn,onChange:this.onChange},Sn!=null?{capture:Sn}:{})),kn)}}]),ze}(ae.Component),Me=Le;function qe(){}var xt=function(ce){(0,ke.Z)(ze,ce);var Ae=(0,Ve.Z)(ze);function ze(){var He;(0,we.Z)(this,ze);for(var at=arguments.length,gt=new Array(at),Qe=0;Qe<at;Qe++)gt[Qe]=arguments[Qe];return He=Ae.call.apply(Ae,[this].concat(gt)),He.uploader=void 0,He.saveUploader=function(We){He.uploader=We},He}return(0,le.Z)(ze,[{key:"abort",value:function(at){this.uploader.abort(at)}},{key:"render",value:function(){return ae.createElement(Me,(0,fe.Z)({},this.props,{ref:this.saveUploader}))}}]),ze}(ae.Component);xt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:qe,onError:qe,onSuccess:qe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var It=xt,be=It,Ne=oe(18929),xe=oe(4676),De=oe(36355),nt=oe(1684),ct=oe(9763),Ue=oe(31724),ot={icon:function(Ae,ze){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:ze}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ae}}]}},name:"file",theme:"twotone"},Ze=ot,he=oe(7657),$e=function(Ae,ze){return ae.createElement(he.Z,(0,fe.Z)({},Ae,{ref:ze,icon:Ze}))},je=ae.forwardRef($e),ft=je,Je=oe(58617),dt={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=dt,tt=function(Ae,ze){return ae.createElement(he.Z,(0,fe.Z)({},Ae,{ref:ze,icon:de}))},pt=ae.forwardRef(tt),yt=pt,Mt={icon:function(Ae,ze){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ae}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:ze}},{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:ze}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:ze}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ae}}]}},name:"picture",theme:"twotone"},Oe=Mt,ue=function(Ae,ze){return ae.createElement(he.Z,(0,fe.Z)({},Ae,{ref:ze,icon:Oe}))},Pe=ae.forwardRef(ue),Re=Pe,Ye=oe(77900),ut=oe(56762),ht=oe(62892),Bt=oe(92343),Nt=oe(3113);function Wt(ce){return Object.assign(Object.assign({},ce),{lastModified:ce.lastModified,lastModifiedDate:ce.lastModifiedDate,name:ce.name,size:ce.size,type:ce.type,uid:ce.uid,percent:0,originFileObj:ce})}function Et(ce,Ae){const ze=(0,Se.Z)(Ae),He=ze.findIndex(at=>{let{uid:gt}=at;return gt===ce.uid});return He===-1?ze.push(ce):ze[He]=ce,ze}function _t(ce,Ae){const ze=ce.uid!==void 0?"uid":"name";return Ae.filter(He=>He[ze]===ce[ze])[0]}function ln(ce,Ae){const ze=ce.uid!==void 0?"uid":"name",He=Ae.filter(at=>at[ze]!==ce[ze]);return He.length===Ae.length?null:He}const St=function(){const Ae=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),He=Ae[Ae.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(He)||[""])[0]},Ut=ce=>ce.indexOf("image/")===0,Kt=ce=>{if(ce.type&&!ce.thumbUrl)return Ut(ce.type);const Ae=ce.thumbUrl||ce.url||"",ze=St(Ae);return/^data:image\//.test(Ae)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ze)?!0:!(/^data:/.test(Ae)||ze)},Jt=200;function pe(ce){return new Promise(Ae=>{if(!ce.type||!Ut(ce.type)){Ae("");return}const ze=document.createElement("canvas");ze.width=Jt,ze.height=Jt,ze.style.cssText=`position: fixed; left: 0; top: 0; width: ${Jt}px; height: ${Jt}px; z-index: 9999; display: none;`,document.body.appendChild(ze);const He=ze.getContext("2d"),at=new Image;if(at.onload=()=>{const{width:gt,height:Qe}=at;let We=Jt,Tt=Jt,Be=0,Rt=0;gt>Qe?(Tt=Qe*(Jt/gt),Rt=-(Tt-We)/2):(We=gt*(Jt/Qe),Be=-(We-Tt)/2),He.drawImage(at,Be,Rt,We,Tt);const tn=ze.toDataURL();document.body.removeChild(ze),window.URL.revokeObjectURL(at.src),Ae(tn)},at.crossOrigin="anonymous",ce.type.startsWith("image/svg+xml")){const gt=new FileReader;gt.onload=()=>{gt.result&&(at.src=gt.result)},gt.readAsDataURL(ce)}else if(ce.type.startsWith("image/gif")){const gt=new FileReader;gt.onload=()=>{gt.result&&Ae(gt.result)},gt.readAsDataURL(ce)}else at.src=window.URL.createObjectURL(ce)})}var Ce=oe(26227),Xe=oe(41464),mt=oe(15277),vt=oe(93948),Dt=oe(6848),Ot=ae.forwardRef((ce,Ae)=>{let{prefixCls:ze,className:He,style:at,locale:gt,listType:Qe,file:We,items:Tt,progress:Be,iconRender:Rt,actionIconRender:tn,itemRender:rn,isImgUrl:Sn,showPreviewIcon:kn,showRemoveIcon:et,showDownloadIcon:Ct,previewIcon:Lt,removeIcon:Ft,downloadIcon:gn,onPreview:an,onDownload:Zt,onClose:fn}=ce;var pn,Kn;const{status:qn}=We,[Yn,ua]=ae.useState(qn);ae.useEffect(()=>{qn!=="removed"&&ua(qn)},[qn]);const[fa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Gn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Gn)}},[]);const ia=Rt(We);let Un=ae.createElement("div",{className:`${ze}-icon`},ia);if(Qe==="picture"||Qe==="picture-card"||Qe==="picture-circle")if(Yn==="uploading"||!We.thumbUrl&&!We.url){const Gn=Ie()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:Yn!=="uploading"});Un=ae.createElement("div",{className:Gn},ia)}else{const Gn=Sn!=null&&Sn(We)?ae.createElement("img",{src:We.thumbUrl||We.url,alt:We.name,className:`${ze}-list-item-image`,crossOrigin:We.crossOrigin}):ia,Nn=Ie()(`${ze}-list-item-thumbnail`,{[`${ze}-list-item-file`]:Sn&&!Sn(We)});Un=ae.createElement("a",{className:Nn,onClick:la=>an(We,la),href:We.url||We.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Gn)}const vn=Ie()(`${ze}-list-item`,`${ze}-list-item-${Yn}`),aa=typeof We.linkProps=="string"?JSON.parse(We.linkProps):We.linkProps,oa=et?tn((typeof Ft=="function"?Ft(We):Ft)||ae.createElement(Ce.Z,null),()=>fn(We),ze,gt.removeFile):null,ra=Ct&&Yn==="done"?tn((typeof gn=="function"?gn(We):gn)||ae.createElement(Xe.Z,null),()=>Zt(We),ze,gt.downloadFile):null,ga=Qe!=="picture-card"&&Qe!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ie()(`${ze}-list-item-actions`,{picture:Qe==="picture"})},ra,oa),Xn=Ie()(`${ze}-list-item-name`),ha=We.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Xn,title:We.name},aa,{href:We.url,onClick:Gn=>an(We,Gn)}),We.name),ga]:[ae.createElement("span",{key:"view",className:Xn,onClick:Gn=>an(We,Gn),title:We.name},We.name),ga],Xt={pointerEvents:"none",opacity:.5},Pn=kn?ae.createElement("a",{href:We.url||We.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:We.url||We.thumbUrl?void 0:Xt,onClick:Gn=>an(We,Gn),title:gt.previewFile},typeof Lt=="function"?Lt(We):Lt||ae.createElement(mt.Z,null)):null,Jn=(Qe==="picture-card"||Qe==="picture-circle")&&Yn!=="uploading"&&ae.createElement("span",{className:`${ze}-list-item-actions`},Pn,Yn==="done"&&ra,oa),{getPrefixCls:On}=ae.useContext(De.E_),da=On(),ea=ae.createElement("div",{className:vn},Un,ha,Jn,fa&&ae.createElement(Ye.default,{motionName:`${da}-fade`,visible:Yn==="uploading",motionDeadline:2e3},Gn=>{let{className:Nn}=Gn;const la="percent"in We?ae.createElement(vt.Z,Object.assign({},Be,{type:"line",percent:We.percent,"aria-label":We["aria-label"],"aria-labelledby":We["aria-labelledby"]})):null;return ae.createElement("div",{className:Ie()(`${ze}-list-item-progress`,Nn)},la)})),ya=We.response&&typeof We.response=="string"?We.response:((pn=We.error)===null||pn===void 0?void 0:pn.statusText)||((Kn=We.error)===null||Kn===void 0?void 0:Kn.message)||gt.uploadError,pa=Yn==="error"?ae.createElement(Dt.Z,{title:ya,getPopupContainer:Gn=>Gn.parentNode},ea):ea;return ae.createElement("div",{className:Ie()(`${ze}-list-item-container`,He),style:at,ref:Ae},rn?rn(pa,We,Tt,{download:Zt.bind(null,We),preview:an.bind(null,We),remove:fn.bind(null,We)}):pa)});const kt=(ce,Ae)=>{const{listType:ze="text",previewFile:He=pe,onPreview:at,onDownload:gt,onRemove:Qe,locale:We,iconRender:Tt,isImageUrl:Be=Kt,prefixCls:Rt,items:tn=[],showPreviewIcon:rn=!0,showRemoveIcon:Sn=!0,showDownloadIcon:kn=!1,removeIcon:et,previewIcon:Ct,downloadIcon:Lt,progress:Ft={size:[-1,2],showInfo:!1},appendAction:gn,appendActionVisible:an=!0,itemRender:Zt,disabled:fn}=ce,pn=(0,ut.Z)(),[Kn,qn]=ae.useState(!1);ae.useEffect(()=>{ze!=="picture"&&ze!=="picture-card"&&ze!=="picture-circle"||(tn||[]).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="",He&&He(Xt.originFileObj).then(Pn=>{Xt.thumbUrl=Pn||"",pn()}))})},[ze,tn,He]),ae.useEffect(()=>{qn(!0)},[]);const Yn=(Xt,Pn)=>{if(at)return Pn==null||Pn.preventDefault(),at(Xt)},ua=Xt=>{typeof gt=="function"?gt(Xt):Xt.url&&window.open(Xt.url)},fa=Xt=>{Qe==null||Qe(Xt)},Pa=Xt=>{if(Tt)return Tt(Xt,ze);const Pn=Xt.status==="uploading",Jn=Be&&Be(Xt)?ae.createElement(Re,null):ae.createElement(ft,null);let On=Pn?ae.createElement(Je.Z,null):ae.createElement(yt,null);return ze==="picture"?On=Pn?ae.createElement(Je.Z,null):Jn:(ze==="picture-card"||ze==="picture-circle")&&(On=Pn?We.uploading:Jn),On},ia=(Xt,Pn,Jn,On)=>{const da={type:"text",size:"small",title:On,onClick:ea=>{Pn(),(0,Bt.l$)(Xt)&&Xt.props.onClick&&Xt.props.onClick(ea)},className:`${Jn}-list-item-action`,disabled:fn};if((0,Bt.l$)(Xt)){const ea=(0,Bt.Tm)(Xt,Object.assign(Object.assign({},Xt.props),{onClick:()=>{}}));return ae.createElement(Nt.ZP,Object.assign({},da,{icon:ea}))}return ae.createElement(Nt.ZP,Object.assign({},da),ae.createElement("span",null,Xt))};ae.useImperativeHandle(Ae,()=>({handlePreview:Yn,handleDownload:ua}));const{getPrefixCls:Un}=ae.useContext(De.E_),vn=Un("upload",Rt),aa=Un(),oa=Ie()(`${vn}-list`,`${vn}-list-${ze}`),ra=(0,Se.Z)(tn.map(Xt=>({key:Xt.uid,file:Xt})));let Xn={motionDeadline:2e3,motionName:`${vn}-${ze==="picture-card"||ze==="picture-circle"?"animate-inline":"animate"}`,keys:ra,motionAppear:Kn};const ha=ae.useMemo(()=>{const Xt=Object.assign({},(0,ht.Z)(aa));return delete Xt.onAppearEnd,delete Xt.onEnterEnd,delete Xt.onLeaveEnd,Xt},[aa]);return ze!=="picture-card"&&ze!=="picture-circle"&&(Xn=Object.assign(Object.assign({},ha),Xn)),ae.createElement("div",{className:oa},ae.createElement(Ye.CSSMotionList,Object.assign({},Xn,{component:!1}),Xt=>{let{key:Pn,file:Jn,className:On,style:da}=Xt;return ae.createElement(Ot,{key:Pn,locale:We,prefixCls:vn,className:On,style:da,file:Jn,items:tn,progress:Ft,listType:ze,isImgUrl:Be,showPreviewIcon:rn,showRemoveIcon:Sn,showDownloadIcon:kn,removeIcon:et,previewIcon:Ct,downloadIcon:Lt,iconRender:Pa,actionIconRender:ia,itemRender:Zt,onPreview:Yn,onDownload:ua,onClose:fa})}),gn&&ae.createElement(Ye.default,Object.assign({},Xn,{visible:an,forceRender:!0}),Xt=>{let{className:Pn,style:Jn}=Xt;return(0,Bt.Tm)(gn,On=>({className:Ie()(On.className,Pn),style:Object.assign(Object.assign(Object.assign({},Jn),{pointerEvents:Pn?"none":void 0}),On.style)}))}))};var Vt=ae.forwardRef(kt),on=oe(17313),hn=oe(8378),yn=oe(83116),Fn=oe(37613),dn=ce=>{const{componentCls:Ae,iconCls:ze}=ce;return{[`${Ae}-wrapper`]:{[`${Ae}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ce.colorFillAlter,border:`${ce.lineWidth}px dashed ${ce.colorBorder}`,borderRadius:ce.borderRadiusLG,cursor:"pointer",transition:`border-color ${ce.motionDurationSlow}`,[Ae]:{padding:`${ce.padding}px 0`},[`${Ae}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ae}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ae}-disabled):hover`]:{borderColor:ce.colorPrimaryHover},[`p${Ae}-drag-icon`]:{marginBottom:ce.margin,[ze]:{color:ce.colorPrimary,fontSize:ce.uploadThumbnailSize}},[`p${Ae}-text`]:{margin:`0 0 ${ce.marginXXS}px`,color:ce.colorTextHeading,fontSize:ce.fontSizeLG},[`p${Ae}-hint`]:{color:ce.colorTextDescription,fontSize:ce.fontSize},[`&${Ae}-disabled`]:{cursor:"not-allowed",[`p${Ae}-drag-icon ${ze},
|
|
p${Ae}-text,
|
|
p${Ae}-hint
|
|
`]:{color:ce.colorTextDisabled}}}}}},xn=ce=>{const{componentCls:Ae,antCls:ze,iconCls:He,fontSize:at,lineHeight:gt}=ce,Qe=`${Ae}-list-item`,We=`${Qe}-actions`,Tt=`${Qe}-action`,Be=Math.round(at*gt);return{[`${Ae}-wrapper`]:{[`${Ae}-list`]:Object.assign(Object.assign({},(0,on.dF)()),{lineHeight:ce.lineHeight,[Qe]:{position:"relative",height:ce.lineHeight*at,marginTop:ce.marginXS,fontSize:at,display:"flex",alignItems:"center",transition:`background-color ${ce.motionDurationSlow}`,"&:hover":{backgroundColor:ce.controlItemBgHover},[`${Qe}-name`]:Object.assign(Object.assign({},on.vS),{padding:`0 ${ce.paddingXS}px`,lineHeight:gt,flex:"auto",transition:`all ${ce.motionDurationSlow}`}),[We]:{[Tt]:{opacity:0},[`${Tt}${ze}-btn-sm`]:{height:Be,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Tt}:focus-visible,
|
|
&.picture ${Tt}
|
|
`]:{opacity:1},[He]:{color:ce.actionsColor,transition:`all ${ce.motionDurationSlow}`},[`&:hover ${He}`]:{color:ce.colorText}},[`${Ae}-icon ${He}`]:{color:ce.colorTextDescription,fontSize:at},[`${Qe}-progress`]:{position:"absolute",bottom:-ce.uploadProgressOffset,width:"100%",paddingInlineStart:at+ce.paddingXS,fontSize:at,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Qe}:hover ${Tt}`]:{opacity:1,color:ce.colorText},[`${Qe}-error`]:{color:ce.colorError,[`${Qe}-name, ${Ae}-icon ${He}`]:{color:ce.colorError},[We]:{[`${He}, ${He}:hover`]:{color:ce.colorError},[Tt]:{opacity:1}}},[`${Ae}-list-item-container`]:{transition:`opacity ${ce.motionDurationSlow}, height ${ce.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$n=oe(36237),cn=oe(1950);const zn=new $n.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Vn=new $n.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Zn=ce=>{const{componentCls:Ae}=ce,ze=`${Ae}-animate-inline`;return[{[`${Ae}-wrapper`]:{[`${ze}-appear, ${ze}-enter, ${ze}-leave`]:{animationDuration:ce.motionDurationSlow,animationTimingFunction:ce.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ze}-appear, ${ze}-enter`]:{animationName:zn},[`${ze}-leave`]:{animationName:Vn}}},{[`${Ae}-wrapper`]:(0,cn.J$)(ce)},zn,Vn]},na=oe(30071),ve=oe(64993);const Ee=ce=>{const{componentCls:Ae,iconCls:ze,uploadThumbnailSize:He,uploadProgressOffset:at}=ce,gt=`${Ae}-list`,Qe=`${gt}-item`;return{[`${Ae}-wrapper`]:{[`
|
|
${gt}${gt}-picture,
|
|
${gt}${gt}-picture-card,
|
|
${gt}${gt}-picture-circle
|
|
`]:{[Qe]:{position:"relative",height:He+ce.lineWidth*2+ce.paddingXS*2,padding:ce.paddingXS,border:`${ce.lineWidth}px ${ce.lineType} ${ce.colorBorder}`,borderRadius:ce.borderRadiusLG,"&:hover":{background:"transparent"},[`${Qe}-thumbnail`]:Object.assign(Object.assign({},on.vS),{width:He,height:He,lineHeight:`${He+ce.paddingSM}px`,textAlign:"center",flex:"none",[ze]:{fontSize:ce.fontSizeHeading2,color:ce.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Qe}-progress`]:{bottom:at,width:`calc(100% - ${ce.paddingSM*2}px)`,marginTop:0,paddingInlineStart:He+ce.paddingXS}},[`${Qe}-error`]:{borderColor:ce.colorError,[`${Qe}-thumbnail ${ze}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:ce.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:ce.colorError}}},[`${Qe}-uploading`]:{borderStyle:"dashed",[`${Qe}-name`]:{marginBottom:at}}},[`${gt}${gt}-picture-circle ${Qe}`]:{[`&, &::before, ${Qe}-thumbnail`]:{borderRadius:"50%"}}}}},ye=ce=>{const{componentCls:Ae,iconCls:ze,fontSizeLG:He,colorTextLightSolid:at}=ce,gt=`${Ae}-list`,Qe=`${gt}-item`,We=ce.uploadPicCardSize;return{[`
|
|
${Ae}-wrapper${Ae}-picture-card-wrapper,
|
|
${Ae}-wrapper${Ae}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,on.dF)()),{display:"inline-block",width:"100%",[`${Ae}${Ae}-select`]:{width:We,height:We,marginInlineEnd:ce.marginXS,marginBottom:ce.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ce.colorFillAlter,border:`${ce.lineWidth}px dashed ${ce.colorBorder}`,borderRadius:ce.borderRadiusLG,cursor:"pointer",transition:`border-color ${ce.motionDurationSlow}`,[`> ${Ae}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ae}-disabled):hover`]:{borderColor:ce.colorPrimary}},[`${gt}${gt}-picture-card, ${gt}${gt}-picture-circle`]:{[`${gt}-item-container`]:{display:"inline-block",width:We,height:We,marginBlock:`0 ${ce.marginXS}px`,marginInline:`0 ${ce.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Qe]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ce.paddingXS*2}px)`,height:`calc(100% - ${ce.paddingXS*2}px)`,backgroundColor:ce.colorBgMask,opacity:0,transition:`all ${ce.motionDurationSlow}`,content:'" "'}},[`${Qe}:hover`]:{[`&::before, ${Qe}-actions`]:{opacity:1}},[`${Qe}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ce.motionDurationSlow}`,[`${ze}-eye, ${ze}-download, ${ze}-delete`]:{zIndex:10,width:He,margin:`0 ${ce.marginXXS}px`,fontSize:He,cursor:"pointer",transition:`all ${ce.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Qe}-actions, ${Qe}-actions:hover`]:{[`${ze}-eye, ${ze}-download, ${ze}-delete`]:{color:new ve.C(at).setAlpha(.65).toRgbString(),"&:hover":{color:at}}},[`${Qe}-thumbnail, ${Qe}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Qe}-name`]:{display:"none",textAlign:"center"},[`${Qe}-file + ${Qe}-name`]:{position:"absolute",bottom:ce.margin,display:"block",width:`calc(100% - ${ce.paddingXS*2}px)`},[`${Qe}-uploading`]:{[`&${Qe}`]:{backgroundColor:ce.colorFillAlter},[`&::before, ${ze}-eye, ${ze}-download, ${ze}-delete`]:{display:"none"}},[`${Qe}-progress`]:{bottom:ce.marginXL,width:`calc(100% - ${ce.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ae}-wrapper${Ae}-picture-circle-wrapper`]:{[`${Ae}${Ae}-select`]:{borderRadius:"50%"}}}};var wt=ce=>{const{componentCls:Ae}=ce;return{[`${Ae}-rtl`]:{direction:"rtl"}}};const Gt=ce=>{const{componentCls:Ae,colorTextDisabled:ze}=ce;return{[`${Ae}-wrapper`]:Object.assign(Object.assign({},(0,on.Wf)(ce)),{[Ae]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ae}-select`]:{display:"inline-block"},[`${Ae}-disabled`]:{color:ze,cursor:"not-allowed"}})}};var en=(0,yn.Z)("Upload",ce=>{const{fontSizeHeading3:Ae,fontSize:ze,lineHeight:He,lineWidth:at,controlHeightLG:gt}=ce,Qe=Math.round(ze*He),We=(0,Fn.TS)(ce,{uploadThumbnailSize:Ae*2,uploadProgressOffset:Qe/2+at,uploadPicCardSize:gt*2.55});return[Gt(We),dn(We),Ee(We),ye(We),xn(We),Zn(We),wt(We),(0,hn.Z)(We)]},ce=>({actionsColor:ce.colorTextDescription})),Yt=function(ce,Ae,ze,He){function at(gt){return gt instanceof ze?gt:new ze(function(Qe){Qe(gt)})}return new(ze||(ze=Promise))(function(gt,Qe){function We(Rt){try{Be(He.next(Rt))}catch(tn){Qe(tn)}}function Tt(Rt){try{Be(He.throw(Rt))}catch(tn){Qe(tn)}}function Be(Rt){Rt.done?gt(Rt.value):at(Rt.value).then(We,Tt)}Be((He=He.apply(ce,Ae||[])).next())})};const At=`__LIST_IGNORE_${Date.now()}__`,bn=(ce,Ae)=>{const{fileList:ze,defaultFileList:He,onRemove:at,showUploadList:gt=!0,listType:Qe="text",onPreview:We,onDownload:Tt,onChange:Be,onDrop:Rt,previewFile:tn,disabled:rn,locale:Sn,iconRender:kn,isImageUrl:et,progress:Ct,prefixCls:Lt,className:Ft,type:gn="select",children:an,style:Zt,itemRender:fn,maxCount:pn,data:Kn={},multiple:qn=!1,action:Yn="",accept:ua="",supportServerRender:fa=!0,rootClassName:Pa}=ce,ia=ae.useContext(nt.Z),Un=rn!=null?rn:ia,[vn,aa]=(0,Ne.Z)(He||[],{value:ze,postState:Ht=>Ht!=null?Ht:[]}),[oa,ra]=ae.useState("drop"),ga=ae.useRef(null);ae.useMemo(()=>{const Ht=Date.now();(ze||[]).forEach((mn,wn)=>{!mn.uid&&!Object.isFrozen(mn)&&(mn.uid=`__AUTO__${Ht}_${wn}__`)})},[ze]);const Xn=(Ht,mn,wn)=>{let nn=(0,Se.Z)(mn),En=!1;pn===1?nn=nn.slice(-1):pn&&(En=nn.length>pn,nn=nn.slice(0,pn)),(0,xe.flushSync)(()=>{aa(nn)});const Dn={file:Ht,fileList:nn};wn&&(Dn.event=wn),(!En||nn.some(sa=>sa.uid===Ht.uid))&&(0,xe.flushSync)(()=>{Be==null||Be(Dn)})},ha=(Ht,mn)=>Yt(void 0,void 0,void 0,function*(){const{beforeUpload:wn,transformFile:nn}=ce;let En=Ht;if(wn){const Dn=yield wn(Ht,mn);if(Dn===!1)return!1;if(delete Ht[At],Dn===At)return Object.defineProperty(Ht,At,{value:!0,configurable:!0}),!1;typeof Dn=="object"&&Dn&&(En=Dn)}return nn&&(En=yield nn(En)),En}),Xt=Ht=>{const mn=Ht.filter(En=>!En.file[At]);if(!mn.length)return;const wn=mn.map(En=>Wt(En.file));let nn=(0,Se.Z)(vn);wn.forEach(En=>{nn=Et(En,nn)}),wn.forEach((En,Dn)=>{let sa=En;if(mn[Dn].parsedFile)En.status="uploading";else{const{originFileObj:Bn}=En;let Sa;try{Sa=new File([Bn],Bn.name,{type:Bn.type})}catch(Ea){Sa=new Blob([Bn],{type:Bn.type}),Sa.name=Bn.name,Sa.lastModifiedDate=new Date,Sa.lastModified=new Date().getTime()}Sa.uid=En.uid,sa=Sa}Xn(sa,nn)})},Pn=(Ht,mn,wn)=>{try{typeof Ht=="string"&&(Ht=JSON.parse(Ht))}catch(Dn){}if(!_t(mn,vn))return;const nn=Wt(mn);nn.status="done",nn.percent=100,nn.response=Ht,nn.xhr=wn;const En=Et(nn,vn);Xn(nn,En)},Jn=(Ht,mn)=>{if(!_t(mn,vn))return;const wn=Wt(mn);wn.status="uploading",wn.percent=Ht.percent;const nn=Et(wn,vn);Xn(wn,nn,Ht)},On=(Ht,mn,wn)=>{if(!_t(wn,vn))return;const nn=Wt(wn);nn.error=Ht,nn.response=mn,nn.status="error";const En=Et(nn,vn);Xn(nn,En)},da=Ht=>{let mn;Promise.resolve(typeof at=="function"?at(Ht):at).then(wn=>{var nn;if(wn===!1)return;const En=ln(Ht,vn);En&&(mn=Object.assign(Object.assign({},Ht),{status:"removed"}),vn==null||vn.forEach(Dn=>{const sa=mn.uid!==void 0?"uid":"name";Dn[sa]===mn[sa]&&!Object.isFrozen(Dn)&&(Dn.status="removed")}),(nn=ga.current)===null||nn===void 0||nn.abort(mn),Xn(mn,En))})},ea=Ht=>{ra(Ht.type),Ht.type==="drop"&&(Rt==null||Rt(Ht))};ae.useImperativeHandle(Ae,()=>({onBatchStart:Xt,onSuccess:Pn,onProgress:Jn,onError:On,fileList:vn,upload:ga.current}));const{getPrefixCls:ya,direction:pa,upload:Gn}=ae.useContext(De.E_),Nn=ya("upload",Lt),la=Object.assign(Object.assign({onBatchStart:Xt,onError:On,onProgress:Jn,onSuccess:Pn},ce),{data:Kn,multiple:qn,action:Yn,accept:ua,supportServerRender:fa,prefixCls:Nn,disabled:Un,beforeUpload:ha,onChange:void 0});delete la.className,delete la.style,(!an||Un)&&delete la.id;const[ca,va]=en(Nn),[La]=(0,ct.Z)("Upload",Ue.Z.Upload),{showRemoveIcon:ba,showPreviewIcon:zt,showDownloadIcon:Pt,removeIcon:bt,previewIcon:$t,downloadIcon:un}=typeof gt=="boolean"?{}:gt,Cn=(Ht,mn)=>gt?ae.createElement(Vt,{prefixCls:Nn,listType:Qe,items:vn,previewFile:tn,onPreview:We,onDownload:Tt,onRemove:da,showRemoveIcon:!Un&&ba,showPreviewIcon:zt,showDownloadIcon:Pt,removeIcon:bt,previewIcon:$t,downloadIcon:un,iconRender:kn,locale:Object.assign(Object.assign({},La),Sn),isImageUrl:et,progress:Ct,appendAction:Ht,appendActionVisible:mn,itemRender:fn,disabled:Un}):Ht,_n=Ie()(`${Nn}-wrapper`,Ft,Pa,va,Gn==null?void 0:Gn.className,{[`${Nn}-rtl`]:pa==="rtl",[`${Nn}-picture-card-wrapper`]:Qe==="picture-card",[`${Nn}-picture-circle-wrapper`]:Qe==="picture-circle"}),Tn=Object.assign(Object.assign({},Gn==null?void 0:Gn.style),Zt);if(gn==="drag"){const Ht=Ie()(va,Nn,`${Nn}-drag`,{[`${Nn}-drag-uploading`]:vn.some(mn=>mn.status==="uploading"),[`${Nn}-drag-hover`]:oa==="dragover",[`${Nn}-disabled`]:Un,[`${Nn}-rtl`]:pa==="rtl"});return ca(ae.createElement("span",{className:_n},ae.createElement("div",{className:Ht,style:Tn,onDrop:ea,onDragOver:ea,onDragLeave:ea},ae.createElement(be,Object.assign({},la,{ref:ga,className:`${Nn}-btn`}),ae.createElement("div",{className:`${Nn}-drag-container`},an))),Cn()))}const jn=Ie()(Nn,`${Nn}-select`,{[`${Nn}-disabled`]:Un}),ta=(Ht=>ae.createElement("div",{className:jn,style:Ht},ae.createElement(be,Object.assign({},la,{ref:ga}))))(an?void 0:{display:"none"});return ca(Qe==="picture-card"||Qe==="picture-circle"?ae.createElement("span",{className:_n},Cn(ta,!!an)):ae.createElement("span",{className:_n},ta,Cn()))};var An=ae.forwardRef(bn),lt=function(ce,Ae){var ze={};for(var He in ce)Object.prototype.hasOwnProperty.call(ce,He)&&Ae.indexOf(He)<0&&(ze[He]=ce[He]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,He=Object.getOwnPropertySymbols(ce);at<He.length;at++)Ae.indexOf(He[at])<0&&Object.prototype.propertyIsEnumerable.call(ce,He[at])&&(ze[He[at]]=ce[He[at]]);return ze},Hn=ae.forwardRef((ce,Ae)=>{var{style:ze,height:He}=ce,at=lt(ce,["style","height"]);return ae.createElement(An,Object.assign({ref:Ae},at,{type:"drag",style:Object.assign(Object.assign({},ze),{height:He})}))});const Rn=An;Rn.Dragger=Hn,Rn.LIST_IGNORE=At;var Mn=Rn}}]);
|