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.
NewEduCoderBuild/p__Classrooms__Lists__Commo...

167 lines
429 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[9715],{84249:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Ne=Xe,ue=oe(74643),Ee=function(je,Fe){return ce.createElement(ue.Z,(0,ne.Z)({},je,{ref:Fe,icon:Ne}))},le=ce.forwardRef(Ee)},90674:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Ne=Xe,ue=oe(74643),Ee=function(je,Fe){return ce.createElement(ue.Z,(0,ne.Z)({},je,{ref:Fe,icon:Ne}))},le=ce.forwardRef(Ee)},33859:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Ne=Xe,ue=oe(74643),Ee=function(je,Fe){return ce.createElement(ue.Z,(0,ne.Z)({},je,{ref:Fe,icon:Ne}))},le=ce.forwardRef(Ee)},22751:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Ne=Xe,ue=oe(74643),Ee=function(je,Fe){return ce.createElement(ue.Z,(0,ne.Z)({},je,{ref:Fe,icon:Ne}))},le=ce.forwardRef(Ee)},24018:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Ne=Xe,ue=oe(74643),Ee=function(je,Fe){return ce.createElement(ue.Z,(0,ne.Z)({},je,{ref:Fe,icon:Ne}))},le=ce.forwardRef(Ee)},40043:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Ne=Xe,ue=oe(74643),Ee=function(je,Fe){return ce.createElement(ue.Z,(0,ne.Z)({},je,{ref:Fe,icon:Ne}))},le=ce.forwardRef(Ee)},91034:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),Xe={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"},Ne=Xe,ue=oe(74643),Ee=function(je,Fe){return ce.createElement(ue.Z,(0,ne.Z)({},je,{ref:Fe,icon:Ne}))},le=ce.forwardRef(Ee)},71736:function(ze,lt){"use strict";lt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function ze(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(ze.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(ze.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(ze.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(ze.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof ze))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var lt=[];function oe(ae,a){var y=lt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=lt.pop();return ae===void 0?new go.Point:ae}function ce(ae){lt.push(ae)}function Xe(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,me=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,me=a);else{var se=(x-ee)/ie,Be=x-se*b;ge=ae,me=se*ge+Be}else if(ie===0){var Me=(a-E)/re,rt=a-Me*ae;ge=b,me=Me*ge+rt}else{var Me=(a-E)/re,se=(x-ee)/ie,rt=a-Me*ae,Be=x-se*b;ge=(Be-rt)/(Me-se),me=Me*ge+rt}return te.x=ge,te.y=me,te}function Ne(ae,a,y,E,b,x,z,ee,te,re,ie,ge,me,se){var Be=1-te,Me=te,rt=ae*Be+y*Me,Bt=a*Be+E*Me,Mt=y*Be+b*Me,we=E*Be+x*Me,ke=b*Be+z*Me,Ge=x*Be+ee*Me,_e=rt*Be+Mt*Me,at=Bt*Be+we*Me,yt=Mt*Be+ke*Me,Ke=we*Be+Ge*Me,st=_e*Be+yt*Me,Qe=at*Be+Ke*Me;re.x=rt,re.y=Bt,ie.x=_e,ie.y=at,ge.x=st,ge.y=Qe,me.x=yt,me.y=Ke,se.x=ke,se.y=Ge}var ue=new go.Spot(.156,.156),Ee=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ze("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ue,b.spot2=Ee,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ze("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ze("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ze("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var We=[];function je(){var ae=We.pop();return ae===void 0?[]:ae}function Fe(ae){ae.length=0,We.push(ae)}function dt(ae){for(var a=je(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Re(ae){var a=De(ae),y=je();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 De(ae){for(var a=dt(ae),y=je(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Xe(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(ae,a,y){var E=dt(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(ae,a,y){var E=dt(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(ae,a,y){var E=dt(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(ae,a,y){var E=dt(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(ae,a,y){var E=dt(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(ae,a,y){var E=dt(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(ae,a,y){var E=dt(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(ae,a,y){var E=De(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(ae,a,y){var E=De(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(ae,a,y){var E=De(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(ae,a,y){var E=De(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(ae,a,y){var E=De(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(ae,a,y){var E=De(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(ae,a,y){var E=Re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(ae,a,y){var E=Re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(ae,a,y){var E=Re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(ae,a,y){var E=Re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(ae,a,y){var E=Re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(ae,a,y){var E=Re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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 ze("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ze("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new ze("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ue,x.spot2=Ee,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ze("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ze("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ze("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ze("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=ne(),ie=ne(),ge=ne(),me=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,me,me);var se=ne(),Be=ne(),Me=ne();Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,Me,se,Be);var rt=ne(),Bt=ne(),Mt=ne();Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,rt,Bt,Mt,me,me);var we=ne(),ke=ne(),Ge=ne();return Ne(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,Ge,we,ke),te.add(new go.PathSegment(go.PathSegment.Move,Ge.x*a,Ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,we.x*a,we.y*y,ke.x*a,ke.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,Ge.x*a,Ge.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Mt.x*a,Mt.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,Be.x*a,Be.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Mt.x*a,Mt.y*y,rt.x*a,rt.y*y,Bt.x*a,Bt.y*y).close()),ce(re),ce(ie),ce(ge),ce(me),ce(se),ce(Be),ce(Me),ce(rt),ce(Bt),ce(Mt),ce(we),ce(ke),ce(Ge),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),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)),Ne(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);Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var Be=oe(re.x,re.y);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,(Be.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,(Be.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=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 rt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(rt),ce(te),ce(re),ce(ie),ce(ge),ce(se),ce(Be),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ze("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ze("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new ze("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ze("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ze("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Xe(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Xe(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ze("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ze("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Xe(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=Xe(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new ze("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ze("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ze("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=Xe(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("Pointer",0,new ze("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Xe(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ze("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Xe(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ze("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ze("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Xe(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new ze("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,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 ze("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,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 Be=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=le*.4,ee=.4,te=.8,re=.5;var 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 rt=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(rt),rt.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)),rt.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)),rt.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)),rt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();Ne(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)),Ne(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,Ne(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)),Ne(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ce(te),ce(re),ce(ie),ce(ge),ce(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,me=.5,se=0,Be=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,me=z,se=z,Be=ie*me,Me=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Be+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-Be)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Be)*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+(Be+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 rt=new go.PathFigure(.2*a,y,!1);E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Bt=new go.PathFigure(.8*a,y,!1);return E.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=le*.1,ie=.1,ge=.9,me=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=le*.05,me=.175,se=.95,ee=new go.PathFigure((me-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.375,se=.95,te=new go.PathFigure((me-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.625,se=.95,re=new go.PathFigure((me-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.825,se=.95,Be=new go.PathFigure((me-ie)*a,se*y,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),Be.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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ze={},lt="5.0",oe={},ne=null,ce=!1,Xe=!1,Ne=null,ue=!1,Ee=null,le=null,We=0;We<arguments.length;We++){var je=arguments[We];if(je!==null)switch(typeof je){case"number":lt=je.toFixed(1);break;case"string":je.match(new RegExp("^[0-9]\\.[0-9]+$"))?lt=je:Ne=je;break;case"object":typeof je.is3D!="undefined"?ne=je:oe=je;break;case"boolean":ce=je,Xe=!0;break}}ne===null&&(ne={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!Xe&&(ce=!0)),Ne!==null&&oe.id===void 0&&(oe.id=Ne);var Fe="",dt="",Re=!1,De=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};ze.setHTML5Codebase=function(ye,Oe){le=ye,Ke(ye,Oe)},ze.setJavaCodebase=ze.setJavaCodebaseVersion=ze.isCompiledInstalled=ze.setPreCompiledScriptPath=ze.setPreCompiledResourcePath=function(){},ze.setHTML5CodebaseVersion=function(ye,Oe){var Ue=parseFloat(ye);if(Ue!==NaN&&Ue<5){console.log("The GeoGebra HTML5 codebase version "+Ue+" is deprecated. Using version latest instead.");return}Ee=ye,yt(ye,Oe)},ze.getHTML5CodebaseVersion=function(){return ae},ze.getParameters=function(){return oe},ze.setFontsCSSURL=function(ye){z=ye},ze.setGiacJSURL=function(ye){},ze.setJNLPFile=function(ye){Fe=ye},ze.setJNLPBaseDir=function(ye){},ze.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Oe="auto",Ue=oe.id,Et,qe=!1,ot=0;ot<arguments.length;ot++){var de=arguments[ot];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Oe=de:Ue=arguments[ot]):typeof de=="boolean"?qe=de:de instanceof HTMLElement&&(Et=de)}gt();function gt(){if(!ue){setTimeout(gt,200);return}Oe=_e(Oe);var pt=Et||document.getElementById(Ue);if(!pt){console.log("possibly bug on ajax loading? ");return}if(ze.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)&&Oe==="html5"&&(delete oe.width,delete oe.height),De=Oe,Oe==="screenshot")Bt(pt,oe);else{var zt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?zt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(zt=(!re()||ye())&&ie()),zt?(De="screenshot",we(pt,oe,qe,Oe)):rt(pt,oe,qe)}}};function re(){try{return window.self!==window.top}catch(ye){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ze.getViews=function(){return ne},ze.isJavaInstalled=function(){return!1};var ge=function(ye){var Oe=function(ot){var de=JSON.parse(ot),gt=function(St){return St.type=="G"||St.type=="E"},pt=de.elements?de.elements.filter(gt)[0]:de;if(!pt||!pt.url){Ue();return}oe.fileName=pt.url,me(pt.settings||{}),ne.is3D=!0;var zt="https://www.geogebra.org/images/";ze.setPreviewImage(E||pt.previewUrl,zt+"GeoGebra_loading.png",zt+"applet_play.png"),ye()},Ue=function(){oe.onError&&oe.onError(),st("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Et=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",qe="/materials/"+oe.material_id+"?scope=basic";se("https://"+Et+"/api/proxy.php?path="+encodeURIComponent(qe),Oe,Ue)};function me(ye){var Oe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ue){ye[Ue]=!!ye[Ue]}),Oe.forEach(function(Ue){oe[Ue]===void 0&&ye[Ue]!==void 0&&(oe[Ue]=ye[Ue])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(ye,Oe,Ue){var Et=new XMLHttpRequest;Et.open("GET",ye),Et.onload=function(){Oe(Et.responseText)},Et.onerror=Ue,Et.send()}ze.isHTML5Installed=function(){return!0},ze.getLoadedAppletType=function(){return De},ze.setPreviewImage=function(ye,Oe,Ue){E=ye,b=Oe,x=Ue},ze.removeExistingApplet=function(ye,Oe){var Ue;typeof ye=="string"&&(ye=document.getElementById(ye)),De=null;var Et=null;for(Ue=0;Ue<ye.childNodes.length;Ue++){var qe=ye.childNodes[Ue],ot=qe.className;ot==="applet_screenshot"?Oe?(qe.style.display="block",De="screenshot"):qe.style.display="none":ot!=="applet_scaler prerender"&&(ye.removeChild(qe),Et=ot&&ot.indexOf("appletParameters")!=-1?qe.id:null,Ue--)}var de=oe.id!==void 0?oe.id:Et,gt=window[de];gt&&typeof gt.getBase64=="function"&&(gt.remove(),window[de]=null)},ze.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=ze.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},ze.startAnimation=function(){var ye=ze.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},ze.stopAnimation=function(){var ye=ze.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},ze.getAppletObject=function(){var ye=oe.id!==void 0?oe.id:"ggbApplet";return window[ye]},ze.resize=function(){};var Be=function(ye,Oe,Ue){var Et=document.createElement("param");Et.setAttribute("name",Oe),Et.setAttribute("value",Ue),ye.appendChild(Et)},Me=function(ye){return ye&&ye!=="false"},rt=function(ye,Oe,Ue){te(ae)<=4.2&&(Ue=!0);var Et=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Et=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var qe=document.createElement("div");qe.classList.add("appletParameters","notranslate");var ot=Oe.width,de=Oe.height;if(Oe.disableAutoScale=Oe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Oe.disableAutoScale,Oe.width!==void 0)if(te(ae)<=4.4)Me(Oe.showToolBar)&&(Oe.height-=7),Me(Oe.showAlgebraInput)&&(Oe.height-=37),Oe.width<605&&Me(Oe.showToolBar)&&(Oe.width=605,ot=605);else{var gt=100;(Me(Oe.showToolBar)||Me(Oe.showMenuBar))&&(Oe.hasOwnProperty("customToolBar")&&(Oe.customToolbar=Oe.customToolBar),gt=Me(Oe.showMenuBar)?245:155),ot<gt&&(Oe.width=gt,ot=gt)}qe.style.border="none",qe.style.display="inline-block";for(var pt in Oe)Oe.hasOwnProperty(pt)&&pt!=="appletOnLoad"&&qe.setAttribute("data-param-"+pt,Oe[pt]);z&&qe.setAttribute("data-param-fontscssurl",z),ze.resize=function(){GGBAppletUtils.responsiveResize(ye,Oe)},window.addEventListener("resize",function(jt){ze.resize()});var zt=typeof Oe.appletOnLoad=="function"?Oe.appletOnLoad:function(){};if(!Ue&&Oe.width!==void 0){Oe.hasOwnProperty("showSplash")||qe.setAttribute("data-param-showSplash","false");var St=ye.querySelector(".applet_scaler.prerender"),Te=St!==null;if(Te)var fe=St.querySelector(".ggb_preview");else{var fe=Ge(ot,de,Oe.borderColor,!1);St=document.createElement("div"),St.className="applet_scaler",St.style.position="relative",St.style.display="block",St.style.width=ot+"px",St.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(St,"66%"),te(ae)>=5?(Oe.appletOnLoad=function(jt){var Ht=ye.querySelector(".ggb_preview");Ht&&Ht.parentNode.removeChild(Ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(St),window.GGBT_wsf_view&&$(window).trigger("resize"),zt(jt)},Te||St.appendChild(fe)):qe.appendChild(fe),St.appendChild(qe),Te||ye.appendChild(St),setTimeout(function(){ze.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(qe),ye.appendChild(Pe),Oe.appletOnLoad=function(jt){ze.resize(),zt(jt)}}function he(jt,Ht){Ht&&typeof Ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,Ht.appletOnLoad):renderGGBElement(jt),st("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ht)}function Ce(jt,Ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:Ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(an){he(an.article,an.params)}),html5AppletsToProcess=null)},te(ae)<5&&(jt.className+=" geogebraweb")):he(jt,Ht)}if(Et){scriptLoadStarted=!0;for(var Ye=0;Ye<qe.childNodes.length;Ye++){var tt=qe.childNodes[Ye].tagName;tt==="TABLE"&&(qe.removeChild(qe.childNodes[Ye]),Ye--)}if(ggbHTML5LoadedScript!==null){var vt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');vt!=null&&vt.parentNode.removeChild(vt)}var bt=document.createElement("script"),At=function(){Ce(qe,Oe)};bt.src=dt+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=bt.src,st("GeoGebra HTML5 codebase loaded: '"+dt+"'.",Oe),!le&&(!Ee||Ee=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),At()):dt.requirejs?__webpack_require__.e(12).then(function(){var jt=[__webpack_require__(12)];At.apply(null,jt)}.bind(this)).catch(__webpack_require__.oe):(bt.onload=At,ye.appendChild(bt))}else Ce(qe,Oe);Oe.height=de,Oe.width=ot},Bt=function(ye,Oe,Ue){var Et=Ge(Oe.width,Oe.height,Oe.borderColor,Ue),qe=document.createElement("div");qe.style.position="relative",qe.style.display="block",qe.style.width=Oe.width+"px",qe.style.height=Oe.height+"px",qe.className="applet_screenshot applet_scaler"+(Ue?" applet_screenshot_play":""),qe.appendChild(Et);var ot=GGBAppletUtils.getScale(Oe,ye,Ue);Ue?(ye.appendChild(ke()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(qe,"66%"),ye.appendChild(qe),ot!==1&&!isNaN(ot)&&(GGBAppletUtils.scaleElement(qe,ot),qe.style.width=Oe.width+"px",qe.style.height=Oe.height+"px",qe.parentNode.style.width=Oe.width*ot+"px",qe.parentNode.style.height=Oe.height*ot+"px"),ze.resize=function(){Mt(ye,Et,qe,Ue)},window.addEventListener("resize",function(de){ze.resize()}),ze.resize()};function Mt(ye,Oe,Ue,Et){if(ye.contains(Oe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var qe=GGBAppletUtils.getScale(oe,ye,Et);Ue.parentNode!==null&&(!isNaN(qe)&&qe!==1?(GGBAppletUtils.scaleElement(Ue,qe),Ue.parentNode.style.width=oe.width*qe+"px",Ue.parentNode.style.height=oe.height*qe+"px"):(GGBAppletUtils.scaleElement(Ue,1),Ue.parentNode.style.width=oe.width+"px",Ue.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ze.onExitFullscreen=function(ye,Oe){Oe.appendChild(ye)};var we=function(ye,Oe,Ue,Et){Bt(ye,Oe,!0);for(var qe=function(){var gt=[];for(de=0;de<ye.childNodes.length;de++)gt.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var pt=window.GGBT_wsf_view.renderFullScreen(ye,Oe.id),zt=document.getElementById("fullscreencontainer"),St=jQuery(ye).find(".fullscreencontent");St.length>0?(pt.remove(),St.attr("id","fullscreencontent").show(),jQuery(zt).append(St),window.dispatchEvent(new Event("resize"))):rt(pt,Oe,!1),window.GGBT_wsf_view.launchFullScreen(zt)}else De=Et,rt(ye,Oe,!1);if(!window.GGBT_wsf_view)for(de=0;de<gt.length;de++)ye.removeChild(gt[de])},ot=ye.getElementsByClassName("ggb_preview_play"),de=0;de<ot.length;de++)ot[de].addEventListener("click",qe,!1),ot[de].addEventListener("ontouchstart",qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ke=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Oe='.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");}',Ue=document.createElement("style");Ue.styleSheet?Ue.styleSheet.cssText=Oe:Ue.appendChild(document.createTextNode(Oe)),document.getElementsByTagName("head")[0].appendChild(Ue)}return ye},Ge=function(ye,Oe,Ue,Et){var qe=document.createElement("div");qe.className="ggb_preview",qe.style.position="absolute",qe.style.zIndex="90",qe.style.width=ye-2+"px",qe.style.height=Oe-2+"px",qe.style.top="0px",qe.style.left="0px",qe.style.overflow="hidden",qe.style.backgroundColor="white";var ot="lightgrey";Ue!==void 0&&(Ue==="none"?ot="transparent":ot=Ue),qe.style.border="1px solid "+ot;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 gt,pt,zt;if(!Et){gt=document.createElement("img"),gt.style.position="absolute",gt.style.zIndex="1001",gt.style.opacity=1,de.style.opacity=.3,pt=360,pt>ye/4*3&&(pt=ye/4*3),zt=pt/5.8,gt.setAttribute("src",b),gt.setAttribute("width",pt),gt.setAttribute("height",zt);var St=(ye-pt)/2,Te=(Oe-zt)/2;gt.style.left=St+"px",gt.style.top=Te+"px",qe.appendChild(gt)}}return qe.appendChild(de),qe},_e=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},at=["web","webSimple","web3d","tablet","tablet3d","phone"],yt=function(ye,Oe){if(ae=ye,Oe){Ke(ae,!0);return}var Ue=!ce;if(Ue){var Et=te(ae);!isNaN(Et)&&Et<4.4&&(Ue=!1)}var qe,ot;window.location.protocol.substr(0,4)==="http"?qe=window.location.protocol:qe="http:";var de=ae.indexOf("//");de>0?ot=ae:de===0?ot=qe+ae:ot="https://www.geogebra.org/apps/5.2.814.0/";for(var gt in at)if(ae.slice(at[gt].length*-1)===at[gt]||ae.slice((at[gt].length+1)*-1)===at[gt]+"/"){Ke(ot,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ue&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!Me(oe.showToolBar)&&!Me(oe.showMenuBar)&&!Me(oe.showAlgebraInput)&&!Me(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?ot+="webSimple/":ot+="web3d/",Ke(ot,!1)},Ke=function(ye,Oe){if(ye.requirejs){dt=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),dt=ye,Oe===null&&(Oe=ye.indexOf("http")===-1),Re=Oe,a="web.nocache.js",y=!1;var Ue=dt.split("/");Ue.length>1&&(!Oe&&Ue[Ue.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):at.indexOf(Ue[Ue.length-2])>=0&&(a=Ue[Ue.length-2]+".nocache.js")),Ue=ye.split("/"),ae=Ue[Ue.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var Et=parseFloat(ae);Et!==NaN&&Et<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Et+" is deprecated. Using version latest instead."),yt("5.0",Oe))},st=function(ye,Oe){window.console&&window.console.log&&(!Oe||typeof Oe.showLogging=="undefined"||Oe.showLogging&&Oe.showLogging!=="false")&&console.log(ye)};oe.material_id!==void 0?ge(Qe):Qe();function Qe(){var ye=lt;Ee!==null?ye=Ee:parseFloat(ye)<5&&(ye="5.0"),yt(ye,!1),le!==null&&Ke(le,Re),ue=!0}return ze},GGBAppletUtils=function(){"use strict";function ze(){return window.GGBT_wsf_edit!==void 0}function lt(ue,Ee){Ee!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+Ee+","+Ee+")",ue.style.webkitTransform="scale("+Ee+","+Ee+")",ue.style.maxWidth="initial",ue.querySelector(".ggb_preview")!==null&&(ue.querySelector(".ggb_preview").style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ue.style.transform="none",ue.style.webkitTransform="none")}function oe(ue,Ee,le,We,je,Fe){var dt=null;if(Fe!=null&&Fe!="")for(var Re=ue.parentNode;Re!=null;)if((" "+Re.className+" ").indexOf(" "+Fe+" ")>-1){dt=Re;break}else Re=Re.parentNode;var De=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(dt)De=dt.offsetWidth,ae=Math.max(We?dt.offsetWidth:0,dt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(De=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=De):(De=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ue){var z=ue.getBoundingClientRect();z.left>0&&z.left<=De&&(je===void 0||!je)&&(document.dir==="rtl"?(E=De-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ue&&((le===void 0||!le)&&Ee>0&&Ee+y<De?De=Ee:De-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:De,height:ae}}function ne(ue,Ee,le,We,je){if(ue.isScreenshoGenerator)return 1;var Fe=We!==void 0&&We,dt=ue.noScaleMargin!=null&&ue.noScaleMargin,Re=function(ee){return ee&&ee!=="false"},De=Re(ue.autoHeight),ae=oe(Ee,ue.width,le,De,Fe&&window.GGBT_wsf_view||dt,je),a=parseInt(ae.width),y=ue.width,E=ue.height;if(y===void 0){var b=Ee.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Fe?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ce(ue,Ee,le){var We=1,je,Fe=!1;if(ue.hasOwnProperty("allowUpscale")&&(Fe=ue.allowUpscale),ue.hasOwnProperty("scale")&&(We=parseFloat(ue.scale),(isNaN(We)||We===null||We===0)&&(We=1),We>1&&(Fe=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Fe=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))je=ne(ue,Ee,Fe,le,ue.scaleContainerClass);else return We;return Fe&&(!ue.hasOwnProperty("scale")||We===1)?je:Math.min(We,je)}function Xe(ue){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),We=ue.getBoundingClientRect(),je=(Ee-We.width)/2,Fe=(le-We.height)/2;Fe<0&&(Fe=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(je<40?ue.style.left="40px":ue.style.left=je+"px",ue.style.top=Fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Fe<40?ue.style.top="40px":ue.style.top=Fe+"px",ue.style.left=je+"px")}function Ne(ue,Ee){var le=ue.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var We=ce(Ee,ue);ze()&&le.setAttribute("data-param-scale",We);for(var je=null,Fe=0;Fe<ue.childNodes.length;Fe++)if(ue.childNodes[Fe].className!==void 0&&ue.childNodes[Fe].className.match(/^applet_scaler/)){je=ue.childNodes[Fe];break}if(je!==null&&je.querySelector(".noscale")!==null)return;var dt=Ee.id!==void 0?Ee.id:"ggbApplet",Re=window[dt];(Re==null||!Re.recalculateEnvironments)&&je!==null&&!je.className.match(/fullscreen/)&&(je.parentNode.style.transform="",!isNaN(We)&&We!==1?(je.parentNode.style.width=Ee.width*We+"px",je.parentNode.style.height=Ee.height*We+"px",lt(je,We)):(lt(je,1),je.parentNode.style.width=Ee.width+"px",je.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Xe(ue),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ne,isFlexibleWorksheetEditor:ze,positionCenter:Xe,getScale:ce,scaleElement:lt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ze=n.location.search;return ze.indexOf(J)!=-1||ze.indexOf(K)!=-1}function q(ze,lt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ze){var lt=s[L].bindings;s[L].bindings=function(){for(var oe=lt?lt():{},ne=ze[webModule.__softPermutationId],ce=O;ce<ne.length;ce++){var Xe=ne[ce];oe[Xe[O]]=Xe[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var ze=o.createElement(Q);if(ze.id=L,ze.style.cssText=R+S,ze.tabIndex=-1,o.body.appendChild(ze),t=ze.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var lt=document.compatMode==U?V:W;t.write(lt+X),t.close()}}}function w(ze){function lt(ne){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Xe=ce();if(Xe){ne();return}function Ne(){if(!Xe){if(!ce())return;Xe=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Ne,!1),ue&&clearInterval(ue)}}o.addEventListener&&o.addEventListener(Z,Ne,!1);var ue=setInterval(function(){Ne()},$)}function oe(ne){var ce=u(),Xe=ce.body,Ne=ce.createElement(_);Ne.language=ab,Ne.crossOrigin=W,Ne.src=ne,webModule.__errFn&&(Ne.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),Xe.appendChild(Ne)}lt(function(){oe(ze)})}webModule.__startLoadingFragment=function(ze){return C(ze)},webModule.__installRunAsyncCode=function(ze){var lt=u(),oe=lt.body,ne=lt.createElement(_);ne.language=ab,ne.text=ze,oe.appendChild(ne),oe.removeChild(ne)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ze){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ze){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ze){var lt=c[ze];return lt==null?null:lt},r=d,webModule.__errFn=e}function B(){function ze(ue){var Ee=ue.lastIndexOf(rb);Ee==-1&&(Ee=ue.length);var le=ue.indexOf(sb);le==-1&&(le=ue.length);var We=ue.lastIndexOf(tb,Math.min(le,Ee));return We>=O?ue.substring(O,We+P):W}function lt(ue){if(!ue.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=ue+vb,ue=ze(Ee.src)}return ue}function oe(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function ne(){for(var ue=o.getElementsByTagName(_),Ee=O;Ee<ue.length;++Ee)if(ue[Ee].src.indexOf(xb)!=-1)return ze(ue[Ee].src);return W}function ce(){var ue=o.getElementsByTagName(yb);return ue.length>O?ue[ue.length-P].href:W}function Xe(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var Ne=oe();return Ne==W&&(Ne=ne()),Ne==W&&(Ne=ce()),Ne==W&&Xe()&&(Ne=ze(o.location.href)),Ne=lt(Ne),Ne}function C(ze){return ze.match(/^\//)||ze.match(/^[a-zA-Z]+:\/\//)?ze:webModule.__moduleBase+ze}function D(){var ze=[],lt=O,oe=[],ne=[];function ce(ue){var Ee=ne[ue](),le=oe[ue];if(Ee in le)return Ee;var We=[];for(var je in le)We[le[je]]=je;throw r&&r(ue,We,Ee),null}if(__gwt_isKnownPropertyValue=function(ue,Ee){return Ee in oe[ue]},webModule.__getPropMap=function(){var ue={};for(var Ee in oe)oe.hasOwnProperty(Ee)&&(ue[Ee]=ce(Ee));return ue},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Xe;try{Xe=Cb;var Ne=Xe.indexOf(Db);Ne!=-1&&(lt=parseInt(Xe.substring(Ne+P),$),Xe=Xe.substring(O,Ne))}catch(ue){}return webModule.__softPermutationId=lt,C(Xe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(ze,lt,oe){"use strict";oe.d(lt,{Ax:function(){return Ne},Ds:function(){return ue},KI:function(){return le},SI:function(){return Xe},f1:function(){return ce}});var ne=oe(11320);function ce(We){let je=!0;if(We.length>0){for(let Fe=0;Fe<We.length;Fe++)if(We[Fe].compile_success==0||!We[Fe].compile_success){je=!1;break}}else je=!1;return je}function Xe(We,je=""){let Fe=[];for(let dt=0;dt<We.length;dt++){let Re=We[dt],De=je?`${je}/${Re.name}`:`${Re.name}`;Fe.push({title:Re.name,type:Re.type,isLeaf:Re.type!=="tree",key:De})}return Fe}function Ne(We,je,Fe){for(let dt=0;dt<We.length;dt++){let Re=We[dt];if(Re.key===je){Re.children=Fe;break}Re.children&&Ne(Re.children,je,Fe)}return We}function ue(We,je,Fe){let dt;return function(){let Re=this,De=arguments,ae=function(){dt=null,Fe||We.apply(Re,De)},a=Fe&&!dt;clearTimeout(dt),dt=setTimeout(ae,je),a&&We.apply(Re,De)}}const Ee=!0,le=ne.Z.API_SERVER},10191:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return Mt}});var ne=oe(67294),ce=oe(35973),Xe=oe(84567),Ne=oe(24018),ue=oe(40043),Ee=oe(33170),le=oe(22150),We=oe(11713),je={},Fe=Object.defineProperty,dt=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ae=(we,ke,Ge)=>ke in we?Fe(we,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):we[ke]=Ge,a=(we,ke)=>{for(var Ge in ke||(ke={}))Re.call(ke,Ge)&&ae(we,Ge,ke[Ge]);if(dt)for(var Ge of dt(ke))De.call(ke,Ge)&&ae(we,Ge,ke[Ge]);return we},y=(we,ke,Ge)=>new Promise((_e,at)=>{var yt=Qe=>{try{st(Ge.next(Qe))}catch(ye){at(ye)}},Ke=Qe=>{try{st(Ge.throw(Qe))}catch(ye){at(ye)}},st=Qe=>Qe.done?_e(Qe.value):Promise.resolve(Qe.value).then(yt,Ke);st((Ge=Ge.apply(we,ke)).next())});const E=Xe.default.Group,b=({classroomList:we,loading:ke,user:Ge,exercise_id:_e=null,homework_common_id:at=null,setitem:yt,item:Ke,type:st,rz:Qe,dispatch:ye})=>{var Oe,Ue,Et,qe,ot,de,gt,pt;const zt=(0,ce.useIntl)(),[St,Te]=(0,ne.useState)([]);let[fe,Pe]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const he=(0,ce.useParams)(),[Ce,Ye]=(0,ne.useState)(!1),[tt,vt]=(0,ne.useState)(!1),[bt]=le.default.useForm();(0,ne.useEffect)(()=>{Qe&&(fe.zydatas=Qe,Pe(a({},fe)),Ke!=null&&Ke.ec_course_id&&At())},[Ke,Qe]);function At(){return y(this,null,function*(){console.log("----",Ke),yield jt(Ke==null?void 0:Ke.ec_major_school_id),yield Ht(Ke==null?void 0:Ke.ec_year_id),yield an(Ke==null?void 0:Ke.ec_course_id),bt.setFieldsValue({ec_course_id:Ke==null?void 0:Ke.ec_course_id,ec_major_school_id:Ke==null?void 0:Ke.ec_major_school_id,ec_point_ids:Ke==null?void 0:Ke.ec_point_ids,ec_year_id:Ke==null?void 0:Ke.ec_year_id})})}function jt(ut){return y(this,null,function*(){const It=yield(0,Ee.ZP)(`/api/ec_major_schools/${ut}/ec_years/get_year_list.json`,{method:"get"});fe.jbdatas=It==null?void 0:It.data,Pe(a({},fe)),bt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Ht(ut){return y(this,null,function*(){const It=yield(0,Ee.ZP)(`/api/ec_years/${ut}/ec_courses/get_courses.json`,{method:"get"});fe.kcdatas=It==null?void 0:It.data,Pe(a({},fe)),bt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const an=ut=>y(void 0,null,function*(){const It=yield(0,Ee.ZP)(`/api/ec_courses/${ut}/ec_points.json`,{method:"get",params:{ec_course_id:ut}});fe.zsdatas=It==null?void 0:It.data,Pe(a({},fe))});return ne.createElement("div",{className:je.from},ne.createElement(le.default,{form:bt,layout:"inline",onValuesChange:ut=>{console.log("----",ut),ut.ec_major_school_id&&(fe.jbdatas=[],fe.kcdatas=[],fe.zsdatas=[],Pe(a({},fe)),jt(ut.ec_major_school_id)),ut.ec_year_id&&(fe.kcdatas=[],fe.zsdatas=[],Pe(a({},fe)),Ht(ut.ec_year_id)),ut.ec_course_id&&(fe.zsdatas=[],Pe(a({},fe)),an(ut.ec_course_id))},onFinish:ut=>y(void 0,null,function*(){yt(ut)})},ne.createElement(le.default.Item,{label:zt.formatMessage({id:"common.certificationMajor",defaultMessage:"\u8BA4\u8BC1\u4E13\u4E1A"}),name:"ec_major_school_id"},ne.createElement(We.default,{style:{width:150},disabled:((Oe=fe.zydatas)==null?void 0:Oe.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Ue=fe==null?void 0:fe.zydatas)==null?void 0:Ue.map((ut,It)=>ne.createElement(We.default.Option,{key:It,value:ut==null?void 0:ut.ec_major_school_id},ut==null?void 0:ut.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement(We.default,{style:{width:150},disabled:((Et=fe.jbdatas)==null?void 0:Et.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(qe=fe==null?void 0:fe.jbdatas)==null?void 0:qe.map((ut,It)=>ne.createElement(We.default.Option,{key:It,value:ut==null?void 0:ut.ec_year_id},ut==null?void 0:ut.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement(We.default,{style:{width:150},disabled:((ot=fe.kcdatas)==null?void 0:ot.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=fe==null?void 0:fe.kcdatas)==null?void 0:de.map((ut,It)=>ne.createElement(We.default.Option,{key:It,value:ut==null?void 0:ut.id},ut==null?void 0:ut.name)))),ne.createElement(le.default.Item,{label:zt.formatMessage({id:"classroomClassroomExperiments.knowledgePoints",defaultMessage:"\u77E5\u8BC6\u70B9"}),name:"ec_point_ids"},ne.createElement(We.default,{onChange:()=>{bt.submit()},style:{width:150},mode:"multiple",disabled:((gt=fe.zsdatas)==null?void 0:gt.length)<=0,placeholder:zt.formatMessage({id:"questionBankAddQuestion.pleaseSelectKnowledgePoints",defaultMessage:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"})},(pt=fe==null?void 0:fe.zsdatas)==null?void 0:pt.map((ut,It)=>ne.createElement(We.default.Option,{key:It,value:ut==null?void 0:ut.id},ut==null?void 0:ut.name))))))};var x=(0,ce.connect)(({classroomList:we,loading:ke,globalSetting:Ge,user:_e})=>({classroomList:we,globalSetting:Ge,loading:ke.effects,user:_e}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(we,ke,Ge)=>ke in we?z(we,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):we[ke]=Ge,se=(we,ke)=>{for(var Ge in ke||(ke={}))ie.call(ke,Ge)&&me(we,Ge,ke[Ge]);if(re)for(var Ge of re(ke))ge.call(ke,Ge)&&me(we,Ge,ke[Ge]);return we},Be=(we,ke)=>ee(we,te(ke)),Me=(we,ke,Ge)=>new Promise((_e,at)=>{var yt=Qe=>{try{st(Ge.next(Qe))}catch(ye){at(ye)}},Ke=Qe=>{try{st(Ge.throw(Qe))}catch(ye){at(ye)}},st=Qe=>Qe.done?_e(Qe.value):Promise.resolve(Qe.value).then(yt,Ke);st((Ge=Ge.apply(we,ke)).next())});const rt=Xe.default.Group,Bt=({classroomList:we,loading:ke,user:Ge,exercise_id:_e=null,homework_common_id:at=null,setitem:yt,type:Ke,dispatch:st})=>{var Qe,ye;const Oe=(0,ce.useIntl)();let[Ue,Et]=(0,ne.useState)([{}]),[qe,ot]=(0,ne.useState)([]);function de(){return Me(this,null,function*(){var pt,zt,St;let Te=yield(0,Ee.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:_e,homework_common_id:at}});if(((pt=Te==null?void 0:Te.data)==null?void 0:pt.length)>0){let fe=[];(zt=Te==null?void 0:Te.data)==null||zt.map(Pe=>{var he;(he=Pe==null?void 0:Pe.ec_point_ids)==null||he.map(Ce=>{fe.push(Ce)})}),yt(Be(se({},(St=Te==null?void 0:Te.data)==null?void 0:St[0]),{ec_point_ids:fe})),Et(Te==null?void 0:Te.data)}})}(0,ne.useEffect)(()=>{var pt,zt;(zt=(pt=Ge==null?void 0:Ge.userInfo)==null?void 0:pt.course)!=null&&zt.course_school_id&&gt()},[(ye=(Qe=Ge==null?void 0:Ge.userInfo)==null?void 0:Qe.course)==null?void 0:ye.course_school_id]);function gt(){return Me(this,null,function*(){var pt,zt;const St=yield(0,Ee.ZP)(`/api/schools/${(zt=(pt=Ge==null?void 0:Ge.userInfo)==null?void 0:pt.course)==null?void 0:zt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});ot(St==null?void 0:St.data),(at||_e)&&de()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},Oe.formatMessage({id:"common.engineeringCertificationPoints",defaultMessage:"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"})),Ue==null?void 0:Ue.map((pt,zt)=>ne.createElement("div",{key:zt,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:qe,item:pt,type:zt,setitem:St=>{Ue.splice(zt,1,St),Et([...Ue]);let Te=[];Ue==null||Ue.map(fe=>{var Pe;(Pe=fe==null?void 0:fe.ec_point_ids)==null||Pe.map(he=>{Te.push(he)})}),yt(Be(se({},St),{ec_point_ids:Te}))}}),zt!=0&&ne.createElement(Ne.Z,{onClick:()=>{Ue.splice(zt,1),Et([...Ue])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ue.Z,{onClick:()=>{Ue.push({}),Et([...Ue])},style:{marginLeft:10,fontSize:"20px"}}))))};var Mt=(0,ce.connect)(({classroomList:we,loading:ke,globalSetting:Ge,user:_e})=>({classroomList:we,globalSetting:Ge,loading:ke.effects,user:_e}))(Bt)},63205:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return Re}});var ne=oe(67294),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Xe=oe(94184),Ne=oe.n(Xe),ue=oe(57953),Ee=oe(15979),le=oe(33170),We=oe(28706),je=oe(35973),Fe=(De,ae,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(De,ae)).next())}),Re=({data:De,className:ae,fullWidth:a,style:y={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const ee=(0,je.useIntl)(),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),ie=(0,ne.useRef)(null),ge=(0,ne.useRef)(null),[me,se]=(0,ne.useState)(!1),[Be,Me]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),De!=null&&De.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",De!=null&&De.src&&rt()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[De==null?void 0:De.visible]);const rt=()=>Fe(void 0,null,function*(){se(!0),Me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ge=yield(0,We.ZJ)(De==null?void 0:De.src);te.current.src="",te.current.src=Ge,te.current.onload=function(){ke()},se(!1),Me("")}),Bt=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",E()},Mt=Ge=>Fe(void 0,null,function*(){se(!0),Me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const _e=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:De.title,file:Ge.dataUrl}});_e!=null&&_e.id&&!z?(yield(0,le.ZP)(`/api/attachments/${De.id}/add_subitem.json`,{method:"post",body:{subitem_id:_e==null?void 0:_e.id,settings:JSON.stringify(Ge.state)}})).status===0&&b():_e!=null&&_e.id&&b(_e),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",se(!1),Me("")}),we=()=>{const Ge=document.querySelector('a[href="https://markerjs.com/"]');Ge&&Ge.parentNode&&(Ge.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(at=>{const yt=document.querySelector(at.name);yt&&yt.setAttribute("title",at.title)})},ke=()=>{re.current=new Ee.hP(te.current),re.current.targetRoot=ge.current,re.current.addEventListener("render",Mt),re.current.addEventListener("beforeclose",Bt),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(),De!=null&&De.snapshotData&&re.current.restoreState(De.snapshotData),setTimeout(()=>{window.scrollTo(0,0),we()},300)};return ne.createElement(ne.Fragment,null,(De==null?void 0:De.visible)&&ne.createElement(ue.Z,{spinning:me,tip:Be,style:{position:"absolute"}},ne.createElement("div",{ref:ge,className:Ne()(ce.imageDimensions,ae,a?ce.fullWidth:""),style:y},ne.createElement("img",{className:ce.img,ref:te}))))}},36527:function(ze,lt,oe){"use strict";var ne=oe(67294),ce=oe(71230),Xe=oe(15746),Ne=oe(66368),ue=oe(71577),Ee=oe(85725),le=oe(71736),We=oe(84279),je=oe(35973),Fe=oe(67294);const dt=(0,ne.forwardRef)(({callback:Re,showSaveButton:De,value:ae=""},a)=>{const y=(0,ne.useRef)(),E=(0,je.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(ce.Z,{className:le.Z.lists,gutter:[10,10]},b.map((re,ie)=>Fe.createElement(Xe.Z,{flex:"110px",className:le.Z.item},Fe.createElement("div",null,Fe.createElement(Ee.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(ce.Z,{gutter:[10,10]},ge.data.map((se,Be)=>Fe.createElement(Xe.Z,{key:Be,onClick:()=>z(se),className:le.Z.diamond},Fe.createElement(Ee.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Fe.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},x.map((re,ie)=>Fe.createElement(Xe.Z,{flex:"110px",className:le.Z.item},Fe.createElement("div",null,Fe.createElement(Ee.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(ce.Z,{gutter:[10,10]},ge.data.map((se,Be)=>Fe.createElement(Xe.Z,{key:Be,onClick:()=>z(se),className:le.Z.diamond},Fe.createElement(Ee.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],te=()=>{var re=document.createElement("div");re.innerHTML=y.current.getValue();var ie=re.innerText;return Re&&Re(ie),ie};return(0,ne.useImperativeHandle)(a,()=>({getData:te})),Fe.createElement("div",{className:le.Z.mathWrap},Fe.createElement(Ne.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}},ae||""),De&&Fe.createElement("div",{className:le.Z.button},Fe.createElement(ue.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});lt.Z=dt},65866:function(ze,lt,oe){"use strict";oe.d(lt,{z:function(){return at},Z:function(){return yt}});var ne=oe(67294),ce=oe(59810),Xe=oe(2453),Ne=oe(14446),ue=oe(71577),Ee=oe(11320),le=oe(4440),We=Object.defineProperty,je=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Re=(Ke,st,Qe)=>st in Ke?We(Ke,st,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ke[st]=Qe,De=(Ke,st)=>{for(var Qe in st||(st={}))Fe.call(st,Qe)&&Re(Ke,Qe,st[Qe]);if(je)for(var Qe of je(st))dt.call(st,Qe)&&Re(Ke,Qe,st[Qe]);return Ke},ae=(Ke,st,Qe)=>new Promise((ye,Oe)=>{var Ue=ot=>{try{qe(Qe.next(ot))}catch(de){Oe(de)}},Et=ot=>{try{qe(Qe.throw(ot))}catch(de){Oe(de)}},qe=ot=>ot.done?ye(ot.value):Promise.resolve(ot.value).then(Ue,Et);qe((Qe=Qe.apply(Ke,st)).next())});const a="\u3000\u3000";function y(Ke){var st=["Bytes","KB","MB","GB","TB"];if(Ke==0)return"0 Byte";var Qe=parseInt(""+Math.floor(Math.log(Ke)/Math.log(1024)),10);return(Ke/Math.pow(1024,Qe)).toFixed(1)+" "+st[Qe]}var E=({value:Ke=[],action:st,onChange:Qe,className:ye,maxSize:Oe=150,title:Ue="\u6587\u4EF6\u4E0A\u4F20",accept:Et=null})=>{const qe={multiple:!1,fileList:Ke,accept:Et,withCredentials:!0,beforeUpload:de=>de.size/1024/1024<Oe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Oe}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 gt,pt,zt,St;let Te=[...de.fileList];if(Te=Te.map(fe=>(fe.name.indexOf(a)===-1&&(fe.name=`${fe.name}${a}${y(fe.size)}`),De({},fe))),de.file.status==="done"&&((pt=(gt=de.file)==null?void 0:gt.response)==null?void 0:pt.status)===-1){message.error((St=(zt=de.file)==null?void 0:zt.response)==null?void 0:St.message),Qe([]);return}Qe(Te)},onRemove:de=>ae(void 0,null,function*(){const gt=de.size/1024/1024;return de.status==="uploading"?!0:gt<Oe&&(de.response?de.response.id:de.uid)?yield removeAttachment(de.response?de.response.id:de.id):!0})};function ot(de){de.preventDefault(),de.stopPropagation()}return React.createElement("div",{className:`single-upload ${ye||""}`},React.createElement(Upload,De({},qe),React.createElement(Button,{type:"primary",title:Ke.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:Ke.length>0,ghost:!0},Ue),React.createElement("span",{onClick:ot,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Oe,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(Ke,st,Qe)=>st in Ke?z(Ke,st,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ke[st]=Qe,ge=(Ke,st)=>{for(var Qe in st||(st={}))te.call(st,Qe)&&ie(Ke,Qe,st[Qe]);if(ee)for(var Qe of ee(st))re.call(st,Qe)&&ie(Ke,Qe,st[Qe]);return Ke};const me=Ke=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ke),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Be=oe(35973),Me=Object.defineProperty,rt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,we=(Ke,st,Qe)=>st in Ke?Me(Ke,st,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ke[st]=Qe,ke=(Ke,st)=>{for(var Qe in st||(st={}))Bt.call(st,Qe)&&we(Ke,Qe,st[Qe]);if(rt)for(var Qe of rt(st))Mt.call(st,Qe)&&we(Ke,Qe,st[Qe]);return Ke},Ge=(Ke,st,Qe)=>new Promise((ye,Oe)=>{var Ue=ot=>{try{qe(Qe.next(ot))}catch(de){Oe(de)}},Et=ot=>{try{qe(Qe.throw(ot))}catch(de){Oe(de)}},qe=ot=>ot.done?ye(ot.value):Promise.resolve(ot.value).then(Ue,Et);qe((Qe=Qe.apply(Ke,st)).next())});const{Dragger:_e}=ce.default;function at(Ke){let st=[];return Ke&&Ke.length>0&&(st=Ke.map(Qe=>({uid:Qe.id,id:Qe.id,name:Qe.title+a+Qe.filesize,url:Qe.url,filesize:Qe.filesize,status:"done",response:{id:Qe.id}}))),st}var yt=({value:Ke,onChange:st,action:Qe,data:ye,className:Oe,maxSize:Ue=150,title:Et,showRemoveModal:qe=!1,accept:ot="",additionalText:de,isDragger:gt,number:pt=1e3,aloneClear:zt=!1,realTimeRemove:St=!0,uploadText:Te,setFileProgress:fe,showFileProgress:Pe})=>{const he=(0,Be.useIntl)(),[Ce,Ye]=(0,ne.useState)(!1);let[tt,vt]=(0,ne.useState)(Ke||[]),[bt,At]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{Ke&&(bt===1&&vt([...Ke]),At(2),pt===(Ke==null?void 0:Ke.length)&&Ye(!0))},[Ke]);const jt=()=>{setTimeout(()=>{tt.pop(),vt([...tt])},500)};Pe&&fe(tt.some(ut=>ut.status==="uploading"));const Ht={multiple:!0,disabled:Ce,accept:ot,withCredentials:!0,fileList:tt,beforeUpload:(ut,It)=>{const Ut=ut.size/1024/1024;return tt.concat(It).length>pt?(tt.pop(),vt([...tt]),Xe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${pt}\u4E2A\u6587\u4EF6`),zt?Promise.reject():(jt(),!1)):Ut<Ue?!0:(Xe.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ue}MB).`),zt?Promise.reject():(jt(),!1))},data:ye,action:Qe||`${Ee.Z.API_SERVER}/api/attachments.json`,onChange(ut){var It,Ut,dn,pe;if(ut.file.status==="removed"?tt=ut.fileList:tt=(0,x.uniqBy)([...ut.fileList,...tt],"uid"),ut.file.status==="done"&&((Ut=(It=ut.file)==null?void 0:It.response)==null?void 0:Ut.status)===-1){Xe.ZP.error((pe=(dn=ut.file)==null?void 0:dn.response)==null?void 0:pe.message);return}tt.length>=pt?Ye(!0):Ye(!1),vt([...tt]),tt=tt.map(xe=>{var Ve,ft;return(Ve=xe==null?void 0:xe.response)!=null&&Ve.id&&(xe.url=(ft=xe==null?void 0:xe.response)==null?void 0:ft.url),xe.name.indexOf(a)===-1&&(xe.name=`${xe.name}${a}${y(xe.size)}`),ke({},xe)}),console.log("info:",ut,tt),st(tt)},onRemove:ut=>Ge(void 0,null,function*(){if(!St)return!0;const It=()=>Ge(void 0,null,function*(){if(ut.response?ut.response.id:ut.id){let dn=yield(0,le.JZ)(ut.response?ut.response.id:ut.uid);return Promise.resolve(dn)}else return!0});return qe?new Promise((Ut,dn)=>{Ne.default.confirm({centered:!0,width:530,okText:he.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:he.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:he.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),content:ne.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ge(void 0,null,function*(){const pe=yield It();Xe.ZP.success(he.formatMessage({id:"classrooms.deleteSuccess",defaultMessage:"\u5220\u9664\u6210\u529F"})),Ut(!0)}),onCancel:()=>Ut(!1)})}):yield It()})};function an(ut){ut.preventDefault(),ut.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${Oe||""}`},gt&&ne.createElement(_e,ke({},Ht),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(b.Z,null)),ne.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ne.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ue,"MB)"," "),de),!gt&&ne.createElement(ce.default,ke({},Ht),ne.createElement(ue.ZP,{disabled:Ce,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),Et||he.formatMessage({id:"classroomGraphicGroupHomework.uploadAttachment",defaultMessage:"\u4E0A\u4F20\u9644\u4EF6"})),ne.createElement("span",{onClick:an,className:"upload_text"},Te||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ue}MB)`)))}},57444:function(ze,lt,oe){"use strict";oe.d(lt,{h:function(){return te}});var ne=oe(67294),ce=oe(11713),Xe=oe(22150),Ne=oe(71577),ue=oe(4631),Ee=oe.n(ue),le=oe(71749),We=oe(30483),je=oe(35973),Fe=Object.defineProperty,dt=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,ae=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={}))ae.call(ie,ge)&&y(re,ge,ie[ge]);if(De)for(var ge of De(ie))a.call(ie,ge)&&y(re,ge,ie[ge]);return re},b=(re,ie)=>dt(re,Re(ie));const x=ce.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"]};lt.Z=({callback:re,onCancel:ie})=>{const[ge,me]=(0,ne.useState)("python");function se(rt){me(ee[rt][1])}function Be(rt){re(rt)}const Me=(0,je.useIntl)();return ne.createElement(Xe.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Be,style:{width:500}}),ne.createElement(Xe.default.Item,{label:Me.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},ne.createElement(ce.default,{getPopupContainer:rt=>rt.parentNode,onChange:se},Object.keys(ee).map(rt=>ne.createElement(x,{key:rt,value:rt},ee[rt][0])))),ne.createElement(Xe.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"}]},ne.createElement(te,{mode:ge})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Me.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(Ne.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,ne.useRef)(),[Be,Me]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(Be){let rt=function(Bt){const Mt=Bt.getValue();ie&&ie(Mt)};return Be.on("change",rt),()=>{Be.off("change",rt)}}},[Be,ie]),(0,ne.useEffect)(()=>{Be&&Be.setOption("mode",ge)},[Be,ge]),(0,ne.useEffect)(()=>{Be&&(re!==Be.getValue()||re==="")&&setTimeout(()=>{Be.setValue(re||"")},300)},[Be,re]),(0,ne.useEffect)(()=>{if(se.current&&!Be){const rt=Ee().fromTextArea(se.current,E({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},me));Me(rt)}},[se.current,Be]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:se}))}},35567:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return Kn}});var ne=oe(67294),ce=oe(4631),Xe=oe.n(ce),Ne=oe(91033),ue=oe(71749),Ee=oe(57341),le=oe(82801),We=oe(88386),je=oe(49047),Fe=oe(80785),dt=oe(85725),Re=({value:ve="",className:be,showTextOnly:Le,showLines:et,style:Lt={}})=>{const Ct=(0,ne.useMemo)(()=>"",[ve]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Ct}}))},De=oe(35973),ae=oe(67294),a=Object.defineProperty,y=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(ve,be,Le)=>be in ve?a(ve,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ve[be]=Le,te=(ve,be)=>{for(var Le in be||(be={}))x.call(be,Le)&&ee(ve,Le,be[Le]);if(b)for(var Le of b(be))z.call(be,Le)&&ee(ve,Le,be[Le]);return ve},re=(ve,be)=>y(ve,E(be));function ie({onActionCallback:ve,title:be,icon:Le,actionName:et,className:Lt="",children:Ct}){function sn(){ve(et)}return ae.createElement("a",{title:be,className:Lt,onClick:sn},ae.createElement("i",{className:`${Le}`}),Ct)}var ge=({watch:ve,showNullButton:be,showNullProgramButton:Le,onActionCallback:et,fullScreen:Lt,insertTemp:Ct,hidetoolBar:sn,extraUse:tn})=>{const Wt=(0,De.useIntl)(),Yn=[...[{title:Wt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:Wt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:Wt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:Wt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:Wt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:Wt.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:Wt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:Wt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:Wt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:Wt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:Wt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:Wt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:Wt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:Wt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:Wt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:Wt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${ve?Wt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):Wt.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 ae.createElement("ul",{className:"markdown-toolbar-container"},!sn&&Yn.map((Dn,mt)=>ae.createElement("li",{key:mt},Dn.actionName?ae.createElement(ie,re(te({},Dn),{onActionCallback:et})):ae.createElement("span",{className:"v-line"}))),be?ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:et},ae.createElement("span",{className:"fill-tip"},Wt.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",Wt.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,Le?ae.createElement(ae.Fragment,null,ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:et},ae.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:et},ae.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ct&&ae.createElement("li",null,ae.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:Wt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${Ct}`,onActionCallback:et},ae.createElement("span",{className:"fill-tip"},Wt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),tn&&ae.createElement("li",null,tn),ae.createElement("li",{className:"btn-full-screen"},ae.createElement(ie,{icon:`${Lt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Lt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:et})))},me=oe(76621),se=oe(22150),Be=oe(69677),Me=oe(71577),rt=Object.defineProperty,Bt=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,_e=(ve,be,Le)=>be in ve?rt(ve,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ve[be]=Le,at=(ve,be)=>{for(var Le in be||(be={}))ke.call(be,Le)&&_e(ve,Le,be[Le]);if(we)for(var Le of we(be))Ge.call(be,Le)&&_e(ve,Le,be[Le]);return ve},yt=(ve,be)=>Bt(ve,Mt(be));const Ke={labelCol:{span:4},wrapperCol:{span:20}};var st=({callback:ve,onCancel:be})=>{function Le(Lt){ve(Lt)}const et=(0,De.useIntl)();return ne.createElement(se.default,yt(at({},Ke),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Le,style:{width:500}}),ne.createElement(se.default.Item,{label:et.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(Be.default,null)),ne.createElement(se.default.Item,{label:et.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(Be.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},et.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(Me.ZP,{type:"ghost",onClick:be},et.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Qe=oe(57444),ye=oe(70859),Oe=oe(14446),Ue=oe(71230),Et=oe(63205),qe=oe(67294),ot=({callback:ve,onCancel:be})=>{const Le=document.createElement("canvas"),et=Le.getContext("2d");Le.width=1e3,Le.height=800,et.fillStyle="#ffffff",et.fillRect(0,0,Le.width,Le.height);const Lt=Le.toDataURL("image/png");return qe.createElement(Oe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},qe.createElement(Ue.Z,{style:{height:"100vh"}},qe.createElement(Et.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Lt,visible:!0,title:String(Date.now())},onOk:Ct=>{ve({src:Ct.url})},onClose:be})))},de=oe(23495);function gt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(gt,go.CommandHandler),gt.prototype.canAlignSelection=function(){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<2)},gt.prototype.alignLeft=function(){var ve=this.diagram;ve.startTransaction("aligning left");var be=1/0;ve.selection.each(function(Le){Le instanceof go.Link||(be=Math.min(Le.position.x,be))}),ve.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(be,Le.position.y))}),ve.commitTransaction("aligning left")},gt.prototype.alignRight=function(){var ve=this.diagram;ve.startTransaction("aligning right");var be=-1/0;ve.selection.each(function(Le){if(!(Le instanceof go.Link)){var et=Le.actualBounds.x+Le.actualBounds.width;be=Math.max(et,be)}}),ve.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(be-Le.actualBounds.width,Le.position.y))}),ve.commitTransaction("aligning right")},gt.prototype.alignTop=function(){var ve=this.diagram;ve.startTransaction("alignTop");var be=1/0;ve.selection.each(function(Le){Le instanceof go.Link||(be=Math.min(Le.position.y,be))}),ve.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.position.x,be))}),ve.commitTransaction("alignTop")},gt.prototype.alignBottom=function(){var ve=this.diagram;ve.startTransaction("aligning bottom");var be=-1/0;ve.selection.each(function(Le){if(!(Le instanceof go.Link)){var et=Le.actualBounds.y+Le.actualBounds.height;be=Math.max(et,be)}}),ve.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.actualBounds.x,be-Le.actualBounds.height))}),ve.commitTransaction("aligning bottom")},gt.prototype.alignCenterX=function(){var ve=this.diagram,be=ve.selection.first();if(be){ve.startTransaction("aligning Center X");var Le=be.actualBounds.x+be.actualBounds.width/2;ve.selection.each(function(et){et instanceof go.Link||et.move(new go.Point(Le-et.actualBounds.width/2,et.actualBounds.y))}),ve.commitTransaction("aligning Center X")}},gt.prototype.alignCenterY=function(){var ve=this.diagram,be=ve.selection.first();if(be){ve.startTransaction("aligning Center Y");var Le=be.actualBounds.y+be.actualBounds.height/2;ve.selection.each(function(et){et instanceof go.Link||et.move(new go.Point(et.actualBounds.x,Le-et.actualBounds.height/2))}),ve.commitTransaction("aligning Center Y")}},gt.prototype.alignColumn=function(ve){var be=this.diagram;be.startTransaction("align Column"),ve===void 0&&(ve=0),ve=parseFloat(ve);var Le=new Array;be.selection.each(function(tn){tn instanceof go.Link||Le.push(tn)});for(var et=0;et<Le.length-1;et++){var Lt=Le[et],Ct=Lt.actualBounds.y+Lt.actualBounds.height+ve,sn=Le[et+1];sn.move(new go.Point(Lt.actualBounds.x,Ct))}be.commitTransaction("align Column")},gt.prototype.alignRow=function(ve){ve===void 0&&(ve=0),ve=parseFloat(ve);var be=this.diagram;be.startTransaction("align Row");var Le=new Array;be.selection.each(function(tn){tn instanceof go.Link||Le.push(tn)});for(var et=0;et<Le.length-1;et++){var Lt=Le[et],Ct=Lt.actualBounds.x+Lt.actualBounds.width+ve,sn=Le[et+1];sn.move(new go.Point(Ct,Lt.actualBounds.y))}be.commitTransaction("align Row")},gt.prototype.canRotate=function(ve){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<1)},gt.prototype.rotate=function(ve){ve===void 0&&(ve=90);var be=this.diagram;be.startTransaction("rotate "+ve.toString());var be=this.diagram;be.selection.each(function(Le){Le instanceof go.Link||Le instanceof go.Group||(Le.angle+=ve)}),be.commitTransaction("rotate "+ve.toString())},gt.prototype.pullToFront=function(){var ve=this.diagram;ve.startTransaction("pullToFront");var be=new go.Map;ve.selection.each(function(Le){be.set(Le.layer,0)}),be.iteratorKeys.each(function(Le){var et=0;Le.parts.each(function(Lt){if(!Lt.isSelected){var Ct=Lt.zOrder;isNaN(Ct)?Lt.zOrder=0:et=Math.max(et,Ct)}}),be.set(Le,et)}),ve.selection.each(function(Le){gt._assignZOrder(Le,be.get(Le.layer)+1)}),ve.commitTransaction("pullToFront")},gt.prototype.pushToBack=function(){var ve=this.diagram;ve.startTransaction("pushToBack");var be=new go.Map;ve.selection.each(function(Le){be.set(Le.layer,0)}),be.iteratorKeys.each(function(Le){var et=0;Le.parts.each(function(Lt){if(!Lt.isSelected){var Ct=Lt.zOrder;isNaN(Ct)?Lt.zOrder=0:et=Math.min(et,Ct)}}),be.set(Le,et)}),ve.selection.each(function(Le){gt._assignZOrder(Le,be.get(Le.layer)-1-gt._findGroupDepth(Le))}),ve.commitTransaction("pushToBack")},gt._assignZOrder=function(ve,be,Le){Le===void 0&&(Le=ve),ve.layer===Le.layer&&(ve.zOrder=be),ve instanceof go.Group&&ve.memberParts.each(function(et){gt._assignZOrder(et,be+1,Le)})},gt._findGroupDepth=function(ve){if(ve instanceof go.Group){var be=0;return ve.memberParts.each(function(Le){be=Math.max(be,gt._findGroupDepth(Le))}),be+1}else return 0},gt.prototype.doKeyDown=function(){var ve=this.diagram;if(ve!==null){var be=ve.lastInput;if(be.key==="Up"||be.key==="Down"||be.key==="Left"||be.key==="Right"){var Le=this.arrowKeyBehavior;if(Le==="none")return;if(Le==="select"){this._arrowKeySelect();return}else if(Le==="move"){this._arrowKeyMove();return}else if(Le==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},gt.prototype._getAllParts=function(){var ve=new Array;return this.diagram.nodes.each(function(be){ve.push(be)}),this.diagram.parts.each(function(be){ve.push(be)}),ve},gt.prototype._arrowKeyMove=function(){var ve=this.diagram,be=ve.lastInput,Le=0,et=0;if(be.control||be.meta)Le=1,et=1;else if(ve.grid!==null){var Lt=ve.grid.gridCellSize;et=Lt.width,Le=Lt.height}ve.startTransaction("arrowKeyMove"),ve.selection.each(function(Ct){be.key==="Up"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y-Le)):be.key==="Down"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y+Le)):be.key==="Left"?Ct.move(new go.Point(Ct.actualBounds.x-et,Ct.actualBounds.y)):be.key==="Right"&&Ct.move(new go.Point(Ct.actualBounds.x+et,Ct.actualBounds.y))}),ve.commitTransaction("arrowKeyMove")},gt.prototype._arrowKeySelect=function(){var ve=this.diagram,be=ve.lastInput,Le=null;be.key==="Up"?Le=this._findNearestPartTowards(270):be.key==="Down"?Le=this._findNearestPartTowards(90):be.key==="Left"?Le=this._findNearestPartTowards(180):be.key==="Right"&&(Le=this._findNearestPartTowards(0)),Le!==null&&(be.shift?Le.isSelected=!0:be.control||be.meta?Le.isSelected=!Le.isSelected:ve.select(Le))},gt.prototype._findNearestPartTowards=function(ve){var be=this.diagram.selection.first();if(be===null)return null;for(var Le=be.actualBounds.center,et=this._getAllParts(),Lt=1/0,Ct=be,sn=0;sn<et.length;sn++){var tn=et[sn];if(tn!==be&&tn.canSelect()){var Wt=tn.actualBounds.center,En=Le.directionPoint(Wt),Yn=this._angleCloseness(En,ve);if(Yn<=45){var Dn=Le.distanceSquaredPoint(Wt);Dn*=1+Math.sin(Yn*Math.PI/180),Dn<Lt&&(Lt=Dn,Ct=tn)}}}return Ct},gt.prototype._angleCloseness=function(ve,be){return Math.min(Math.abs(be-ve),Math.min(Math.abs(be+360-ve),Math.abs(be-360-ve)))},gt.prototype._arrowKeyTree=function(){var ve=this.diagram,be=ve.selection.first();if(be instanceof go.Node){var Le=ve.lastInput;if(Le.key==="Right"){if(!be.isTreeLeaf)if(!be.isTreeExpanded)ve.commandHandler.canExpandTree(be)&&ve.commandHandler.expandTree(be);else{var et=this._sortTreeChildrenByY(be).first();et!==null&&ve.select(et)}}else if(Le.key==="Left")if(!be.isTreeLeaf&&be.isTreeExpanded)ve.commandHandler.canCollapseTree(be)&&ve.commandHandler.collapseTree(be);else{var Lt=be.findTreeParentNode();Lt!==null&&ve.select(Lt)}else if(Le.key==="Up"){var Lt=be.findTreeParentNode();if(Lt!==null){var Ct=this._sortTreeChildrenByY(Lt),sn=Ct.indexOf(be);if(sn>0){for(var tn=Ct.elt(sn-1);tn!==null&&tn.isTreeExpanded&&!tn.isTreeLeaf;){var Wt=this._sortTreeChildrenByY(tn);tn=Wt.last()}tn!==null&&ve.select(tn)}else ve.select(Lt)}}else if(Le.key==="Down")if(be.isTreeExpanded&&!be.isTreeLeaf){var et=this._sortTreeChildrenByY(be).first();et!==null&&ve.select(et)}else for(;be!==null;){var Lt=be.findTreeParentNode();if(Lt===null)break;var Ct=this._sortTreeChildrenByY(Lt),sn=Ct.indexOf(be);if(sn<Ct.length-1){ve.select(Ct.elt(sn+1));break}else be=Lt}var En=ve.selection.first();En!==null&&ve.scrollToRect(En.actualBounds)}},gt.prototype._sortTreeChildrenByY=function(ve){var be=new go.List().addAll(ve.findTreeChildrenNodes());return be.sort(function(Le,et){var Lt=Le.location,Ct=et.location;return Lt.y<Ct.y?-1:Lt.y>Ct.y?1:Lt.x<Ct.x?-1:Lt.x>Ct.x?1:0}),be},gt.prototype.copyToClipboard=function(ve){go.CommandHandler.prototype.copyToClipboard.call(this,ve),this._lastPasteOffset.set(this.pasteOffset)},gt.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(gt.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(gt.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=gt,zt=oe(18023),St=oe(15746),Te=oe(33170),fe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=oe(67294),he=(ve,be,Le)=>new Promise((et,Lt)=>{var Ct=Wt=>{try{tn(Le.next(Wt))}catch(En){Lt(En)}},sn=Wt=>{try{tn(Le.throw(Wt))}catch(En){Lt(En)}},tn=Wt=>Wt.done?et(Wt.value):Promise.resolve(Wt.value).then(Ct,sn);tn((Le=Le.apply(ve,be)).next())});function Ce({onCancel:ve,callback:be}){let Le=(0,ne.useRef)(),et=(0,ne.useRef)(),Lt=(0,ne.useRef)(),Ct=(0,ne.useRef)(!1);const sn=(0,ne.useRef)(!1),[tn,Wt]=(0,ne.useState)(0);function En(){const mt=de.bx.make,en={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"};Le.current=new de.S0(et.current,{padding:20,grid:mt(de.s_,"Grid",mt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:nt=>{var $t=nt.diagram.commandHandler.addTopLevelParts(nt.diagram.selection,!0);$t||nt.diagram.currentTool.doCancel()},commandHandler:mt(pt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:nt=>{var $t=nt.subject;$t.location=$t.location.copy().snapToGridPoint(nt.diagram.grid.gridOrigin,nt.diagram.grid.gridCellSize),setTimeout(()=>{nt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:nt=>{var $t=nt.subject;setTimeout(()=>{nt.diagram.commandHandler.editTextBlock()})},LinkRelinked:nt=>{var $t=nt.parameter.part;$t.invalidateConnectedLinks();var xt=nt.subject;nt.diagram.toolManager.linkingTool.isForwards?xt.toNode.invalidateConnectedLinks():xt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Le.current.nodeTemplate=mt(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),mt(de.bn,{name:"SHAPE",fill:en.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")),mt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),mt(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Le.current.nodeTemplate.toolTip=mt("ToolTip",mt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},mt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),mt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Se(nt,$t){var xt=(Pt,mn)=>{Pt.handled=!0,Pt.diagram.model.commit(gn=>{var xn=mn.part.adornedPart,Fn=new de.E9().setRectSpot(xn.actualBounds,nt);Fn.subtract(xn.location),Fn.scale(2,2),Fn.x+=Math.sign(Fn.x)*130,Fn.y+=Math.sign(Fn.y)*130,Fn.add(xn.location),Fn.snapToGridPoint(Pt.diagram.grid.gridOrigin,Pt.diagram.grid.gridCellSize);var Gn=gn.copyNodeData(xn.data);gn.setGroupKeyForNodeData(Gn,gn.getGroupKeyForNodeData(xn.data)),gn.addNodeData(Gn);var ea={from:xn.key,to:gn.getKeyForNodeData(Gn)};gn.addLinkData(ea);var oa=Pt.diagram.findNodeForData(Gn);oa.location=Fn,Pt.diagram.select(oa),setTimeout(()=>{Pt.diagram.commandHandler.editTextBlock()},20)})};return mt(de.bn,{figure:$t,alignment:nt,alignmentFocus:nt.opposite(),width:nt.equals(de.z6.Top)||nt.equals(de.z6.Bottom)?25:18,height:nt.equals(de.z6.Top)||nt.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:en.white,strokeWidth:4,mouseEnter:(Pt,mn)=>mn.fill="dodgerblue",mouseLeave:(Pt,mn)=>mn.fill="orange",isActionable:!0,click:xt,contextClick:xt})}function Ie(nt){return mt(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:($t,xt)=>xt.fill="dodgerblue",mouseLeave:($t,xt)=>xt.fill="orange",click:($t,xt)=>{$t.diagram.commandHandler.showContextMenu(xt.part.adornedPart)}},nt||{})}Le.current.nodeTemplate.selectionAdornmentTemplate=mt(de.uz,"Spot",mt(de.Vm,{padding:10}),Se(de.z6.Top,"TriangleUp"),Se(de.z6.Left,"TriangleLeft"),Se(de.z6.Right,"TriangleRight"),Se(de.z6.Bottom,"TriangleDown"),Ie({alignment:new de.z6(.75,0)}));function $e(nt,$t){return(xt,Pt)=>{xt.handled=!0,xt.diagram.model.commit(mn=>{mn.set(Pt.part.adornedPart.data,nt,$t)})}}function Ae(nt,$t){return $t||($t="color"),mt(de.bn,{width:16,height:16,stroke:"lightgray",fill:nt,margin:1,background:"transparent",mouseEnter:(xt,Pt)=>Pt.stroke="dodgerblue",mouseLeave:(xt,Pt)=>Pt.stroke="lightgray",click:$e($t,nt),contextClick:$e($t,nt)})}function ct(){return[mt("ContextMenuButton",mt(de.s_,"Horizontal",Ae(en.white,"fill"),Ae(en.beige,"fill"),Ae(en.extralightblue,"fill"),Ae(en.extralightred,"fill"))),mt("ContextMenuButton",mt(de.s_,"Horizontal",Ae(en.lightgray,"fill"),Ae(en.lightgreen,"fill"),Ae(en.lightblue,"fill"),Ae(en.lightred,"fill")))]}function Je(){return[mt("ContextMenuButton",mt(de.s_,"Horizontal",Ae(en.black),Ae(en.green),Ae(en.blue),Ae(en.red))),mt("ContextMenuButton",mt(de.s_,"Horizontal",Ae(en.white),Ae(en.magenta),Ae(en.purple),Ae(en.orange)))]}function it(nt,$t){return $t||($t="thickness"),mt(de.bn,"LineH",{width:16,height:16,strokeWidth:nt,margin:1,background:"transparent",mouseEnter:(xt,Pt)=>Pt.background="dodgerblue",mouseLeave:(xt,Pt)=>Pt.background="transparent",click:$e($t,nt),contextClick:$e($t,nt)})}function Ze(nt,$t){return $t||($t="dash"),mt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:nt,margin:1,background:"transparent",mouseEnter:(xt,Pt)=>Pt.background="dodgerblue",mouseLeave:(xt,Pt)=>Pt.background="transparent",click:$e($t,nt),contextClick:$e($t,nt)})}function _t(){return[mt("ContextMenuButton",mt(de.s_,"Horizontal",it(1),it(2),it(3),it(4))),mt("ContextMenuButton",mt(de.s_,"Horizontal",Ze(null),Ze([2,4]),Ze([4,4])))]}function Nt(nt,$t){return $t||($t="figure"),mt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:nt,margin:1,background:"transparent",mouseEnter:(xt,Pt)=>Pt.fill="dodgerblue",mouseLeave:(xt,Pt)=>Pt.fill="lightgray",click:$e($t,nt),contextClick:$e($t,nt)})}Le.current.nodeTemplate.contextMenu=mt("ContextMenu",mt("ContextMenuButton",mt(de.s_,"Horizontal",Nt("Rectangle"),Nt("RoundedRectangle"),Nt("Ellipse"),Nt("Diamond"))),mt("ContextMenuButton",mt(de.s_,"Horizontal",Nt("Parallelogram2"),Nt("ManualOperation"),Nt("Procedure"),Nt("Cylinder1"))),mt("ContextMenuButton",mt(de.s_,"Horizontal",Nt("Terminator"),Nt("CreateRequest"),Nt("Document"),Nt("TriangleDown"))),ct(),Je(),_t()),Le.current.groupTemplate=mt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(nt,$t)=>{var xt=$t.addMembers($t.diagram.selection,!0);xt||$t.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),mt(de.s_,"Auto",{name:"BODY"},mt(de.bn,{parameter1:10,fill:en.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")),mt(de.Vm,{background:"transparent",margin:20})),mt(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"))),Le.current.groupTemplate.selectionAdornmentTemplate=mt(de.uz,"Spot",mt(de.s_,"Auto",mt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),mt(de.Vm,{margin:1.5})),Ie({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Le.current.groupTemplate.contextMenu=mt("ContextMenu",ct(),Je(),_t()),Le.current.linkTemplate=mt(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",nt=>nt>=1?10:0),new de.KX("toShortLength","dir",nt=>nt>=1?10:0),new de.KX("points").makeTwoWay(),mt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),mt(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",nt=>nt===1)),mt(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",nt=>nt>=1),new de.KX("width","thickness",nt=>7+3*nt),new de.KX("height","thickness",nt=>7+3*nt),new de.KX("segmentOffset","thickness",nt=>new de.E9(-15,4+1.5*nt))),mt(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",nt=>nt===2),new de.KX("width","thickness",nt=>7+3*nt),new de.KX("height","thickness",nt=>7+3*nt),new de.KX("segmentOffset","thickness",nt=>new de.E9(-15,4+1.5*nt))),mt(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Le.current.linkTemplate.selectionAdornmentTemplate=mt(de.uz,mt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Xt(2)},new de.KX("pathPattern","thickness",Xt)),Ie({alignmentFocus:new de.z6(0,0,-6,-4)}));function Xt(nt){return mt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(nt+4).toString()+" H3"})}function rn(nt){var $t="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return nt===0?$t="M0 0 M16 16 M0 8 L16 8":nt===2&&($t="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),mt(de.bn,{geometryString:$t,margin:2,background:"transparent",mouseEnter:(xt,Pt)=>Pt.background="dodgerblue",mouseLeave:(xt,Pt)=>Pt.background="transparent",click:$e("dir",nt),contextClick:$e("dir",nt)})}function He(nt){var $t=(xt,Pt)=>{xt.handled=!0,xt.diagram.model.commit(mn=>{var gn=Pt.part.adornedPart;mn.set(gn.data,nt?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(nt?gn.toNode:gn.fromNode).invalidateConnectedLinks()})};return mt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(xt,Pt)=>Pt.background="dodgerblue",mouseLeave:(xt,Pt)=>Pt.background="transparent",click:$t,contextClick:$t})}function fn(nt,$t){var xt=0,Pt=de.z6.RightSide;nt.equals(de.z6.Top)?(xt=270,Pt=de.z6.TopSide):nt.equals(de.z6.Left)?(xt=180,Pt=de.z6.LeftSide):nt.equals(de.z6.Bottom)&&(xt=90,Pt=de.z6.BottomSide),$t||(xt-=180);var mn=(gn,xn)=>{gn.handled=!0,gn.diagram.model.commit(Fn=>{var Gn=xn.part.adornedPart;Fn.set(Gn.data,$t?"toSpot":"fromSpot",de.z6.stringify(Pt)),($t?Gn.toNode:Gn.fromNode).invalidateConnectedLinks()})};return mt(de.bn,{alignment:nt,alignmentFocus:nt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:xt,background:"transparent",mouseEnter:(gn,xn)=>xn.background="dodgerblue",mouseLeave:(gn,xn)=>xn.background="transparent",click:mn,contextClick:mn})}Le.current.linkTemplate.contextMenu=mt("ContextMenu",Je(),_t(),mt("ContextMenuButton",mt(de.s_,"Horizontal",rn(0),rn(1),rn(2))),mt("ContextMenuButton",mt(de.s_,"Horizontal",mt(de.s_,"Spot",He(!1),fn(de.z6.Top,!1),fn(de.z6.Left,!1),fn(de.z6.Right,!1),fn(de.z6.Bottom,!1)),mt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},He(!0),fn(de.z6.Top,!0),fn(de.z6.Left,!0),fn(de.z6.Right,!0),fn(de.z6.Bottom,!0)))));const zn=`{ "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 In(nt){return console.log("shapeName:",nt),Rn.indexOf(nt)>=0}var Cn=new de.YI(Lt.current,{maxSelectionCount:1,linkTemplate:mt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:mt(de.uz,"Link",{locationSpot:de.z6.Center},mt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),mt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),mt(de.bn,{isPanelMain:!0,strokeWidth:2}),mt(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(nt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:nt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Le.current.addDiagramListener("TextEdited",function(nt){var $t;const xt=nt.subject.part;var Pt=($t=document.activeElement)==null?void 0:$t.value;typeof Pt=="string"&&Pt.trim()===""&&Le.current.model.commit(function(mn){mn.set(xt.data,"text","\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}),Cn.nodeTemplate=mt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),mt(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")),mt(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(()=>{Le.current.grid=mt(de.s_,"Grid",mt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Le.current.grid.visible=!0,Le.current.grid.gridCellStroke="darkgray",Le.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Le.current,Le.current}const Yn=()=>he(this,null,function*(){var mt=Le.current.makeImage();const en=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:mt.src}});be({src:en.url})});(0,ne.useEffect)(()=>(setTimeout(()=>{En()},500),Wt(tn+1),()=>{Le.current=null}),[]);const Dn=(0,De.useIntl)();return Pe.createElement("div",{ref:sn,className:Ct.current?`${fe.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(Oe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!tn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(Ue.Z,null,Pe.createElement(St.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(St.Z,{onClick:()=>{var mt,en,Se=Le.current.selection.first();if(Ct.current=!Ct.current,document.activeElement&&Se){let Ie=(en=(mt=document.activeElement)==null?void 0:mt.value)==null?void 0:en.trim();typeof Ie=="string"&&Le.current.model.commit(function($e){$e.set(Se.data,"text",Ie||"\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}Wt(tn+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",Dn.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:ve},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:fe.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:fe.myPaletteDiv,ref:Lt})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:et,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(Me.ZP,{size:"large",onClick:Yn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},Dn.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var Ye=Ce,tt=oe(78045),vt=oe(31795);const bt=tt.ZP.Group,At={margin:"0 8px"};var jt=({callback:ve,onCancel:be})=>{function Le(Lt){ve(Lt)}const et=(0,De.useIntl)();return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Le},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:At},et.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),ne.createElement("span",{style:At},et.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(vt.Z,null)),ne.createElement("span",{style:At},et.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(vt.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:At},et.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(bt,null,ne.createElement(tt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(tt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(tt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(tt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},et.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),ne.createElement(Me.ZP,{type:"ghost",onClick:be},et.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Ht=oe(47897),an=oe(61016),ut=oe.n(an),Ut=(0,ne.forwardRef)(({use3d:ve,width:be,height:Le,callback:et,showSaveButton:Lt},Ct)=>{const sn=(0,ne.useRef)(),tn=(0,ne.useRef)(),Wt=(0,De.useIntl)(),[En,Yn]=(0,ne.useState)(!1),Dn=(0,ne.useRef)({id:sn,appName:"graphing",width:be||1e3,height:Le||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ne.useEffect)(()=>{tn.current=new(ut())(Dn.current,!0),window.onload=function(){tn.current.inject("applet_container")}},[]);const mt=()=>{var en=window.ggbApplet.getPNGBase64(1,!0,72);return et&&et(en),en};return(0,ne.useEffect)(()=>{Dn.current.appName=En?"3D":"graphing",tn.current.inject("applet_container")},[En]),(0,ne.useEffect)(()=>{Yn(ve)},[ve]),(0,ne.useImperativeHandle)(Ct,()=>({getImgData:mt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:sn}),ne.createElement(Ue.Z,{align:"middle"},ne.createElement(St.Z,{flex:1},ne.createElement(Ht.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:Wt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:En,onChange:en=>Yn(en)})),ne.createElement(St.Z,null,ne.createElement(Me.ZP,{size:"large",onClick:mt,style:{zIndex:8,marginTop:10},type:"primary"},Wt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),dn=oe(36527),pe=oe(25934),xe=oe(2453);const Ve="link",ft="upload-image",ht="add-flowchart",Rt="draw-image",kt="add-flowchart",Ot="code-block",Tt="add-table",Kt="------------",Vt={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var ln=oe(99914),on=(ve,be,Le)=>new Promise((et,Lt)=>{var Ct=Wt=>{try{tn(Le.next(Wt))}catch(En){Lt(En)}},sn=Wt=>{try{tn(Le.throw(Wt))}catch(En){Lt(En)}},tn=Wt=>Wt.done?et(Wt.value):Promise.resolve(Wt.value).then(Ct,sn);tn((Le=Le.apply(ve,be)).next())});function Pn(){}let vn=0;const nn=1e4,qt="\u2581",cn="@\u2581\u2581@",hn="@\u2581@",yn=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,un=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function wn(ve){return/^\d+$/.test(ve)?`${ve}px`:ve}const bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Tn={[bn+"-B"]:"bold",[bn+"-I"]:"italic"};var Kn=({defaultValue:ve="",onChange:be,width:Le="100%",height:et=400,miniToolbar:Lt=!1,isFocus:Ct=!1,watch:sn,insertTemp:tn,mode:Wt="markdown",id:En="markdown-editor-id",showResizeBar:Yn=!1,noStorage:Dn=!1,showNullButton:mt=!1,showNullProgramButton:en=!1,hidetoolBar:Se=!1,fullScreen:Ie=!1,onBlur:$e,onCMBeforeChange:Ae,onFullScreen:ct,className:Je="",disablePaste:it=!1,disabled:Ze=!1,disabledFill:_t=!1,placeholder:Nt="",values:Xt="",extraUse:rn})=>{const[He,fn]=(0,ne.useState)(null),[zn,Rn]=(0,ne.useState)(ve),[In,Cn]=(0,ne.useState)(sn),[nt,$t]=(0,ne.useState)(Ie),[xt,Pt]=(0,ne.useState)(""),[mn,gn]=(0,ne.useState)(0),[xn,Fn]=(0,ne.useState)(et),[Gn,ea]=(0,ne.useState)(!1),oa=(0,ne.useRef)((0,pe.Z)()),ua=(0,ne.useRef)(!1),ra=(0,ne.useRef)(),[Xn,Bn]=(0,ne.useState)(0),[la,sa]=(0,ne.useState)(0),Qn=(0,ne.useRef)(),qn=(0,ne.useRef)(),Wn=(0,ne.useRef)(),ia=(0,ne.useRef)(),Jt=()=>on(void 0,null,function*(){var Dt;const wt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:oa.current}});(Dt=wt==null?void 0:wt.attachments)!=null&&Dt.length&&(console.log("cm:",He,Qn),wt.attachments.map(Ft=>{Ft.content_type.indexOf("image")>-1?He.replaceSelection(`![,](/api/attachments/${Ft.id}?type=${Ft.content_type})`):Ft.content_type.indexOf("video")>-1?He.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ft.content_type.indexOf("pdf")>-1?He.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ft.id}?type=${Ft.content_type}&disposition=inline" target="_blank">${Ft.name}</a>`):He.replaceSelection(`[${Ft.name}](${ENV.API_SERVER}/api/attachments/${Ft.id}?type=${Ft.content_type})`)}))});(0,ne.useEffect)(()=>{const Dt=window.scrollY||window.pageYOffset;Rn(Xt),He==null||He.setValue(Xt),window.scrollTo(0,Dt)},[Xt]),(0,ne.useEffect)(()=>{ct==null||ct(nt)},[nt]),(0,ne.useEffect)(()=>{if(Qn.current){let Dt=function(Ft,Gt){var Sn;if(it){Gt.preventDefault();return}const Nn=Gt.clipboardData;if(Nn){const _n=Nn.types.toString(),An=Nn.items;if(_n==="Files"||Nn.types.indexOf("Files")>-1){if(Gt.preventDefault(),Wt=="stex")return;try{let Zt=An[1];((Sn=An[0])==null?void 0:Sn.kind)==="file"&&(Zt=An[0]);const Qt=Zt.getAsFile(),pn=Qt.name.split(".").pop();(0,ye.I)(Qt,Yt=>{var Ln,kn,aa;Yt.id?((Ln=Qt==null?void 0:Qt.type)==null?void 0:Ln.indexOf("image"))>-1?wt.replaceSelection(`<img width="100%" src="/api/attachments/${Yt.id}?type=${Yt.content_type})" alt="" />`):((kn=Qt==null?void 0:Qt.type)==null?void 0:kn.indexOf("video"))>-1?wt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Yt.id}"></video>`):((aa=Qt==null?void 0:Qt.type)==null?void 0:aa.indexOf("pdf"))>-1?wt.replaceSelection(`<a href="/api/attachments/${Yt.id}?type=${Qt.type}&disposition=inline" target="_blank">${Qt.name}</a>`):un.includes(pn)?wt.replaceSelection(`<a href="/api/attachments/${Yt.id}?type=office&disposition=inline" target="_blank">${Qt.name}</a>`):wt.replaceSelection(`[${Qt.name}](/api/attachments/${Yt.id}?type=${Yt.content_type})`):(Yt==null?void 0:Yt.status)===401&&(xe.ZP.warning((Yt==null?void 0:Yt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Zt){xe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const wt=Xe().fromTextArea(Qn.current,{mode:Wt,lineNumbers:!Lt,lineWrapping:!0,value:ve,autoCloseTags:!en,autoCloseBrackets:!0});return wt.on("keyup",function(Ft,Gt){Gt.keyCode===8&&(Ft.getValue()==""?wt.setOption("placeholder",Nt):wt.setOption("placeholder",null))}),wt.on("keydown",function(Ft,Gt){if(Gt.keyCode===8){var Sn=Vn(Ft);Sn&&Gt.preventDefault()}}),Ct&&wt.focus(),wt.on("paste",Dt),wt.on("dragleave",function(Ft,Gt){qn.current.classList.remove("mouse-hover-md")}),Ze&&wt.on("beforeChange",function(Ft,Gt){(Gt.origin==="paste"||Gt.origin==="+input")&&Gt.cancel()}),fn(wt),()=>{wt.off("paste",Dt)}}},[]);const $n=(0,ne.useCallback)(()=>{if(qn.current)try{}catch(Dt){console.log(Dt,"---- to set md editor body height")}},[xn,qn,nt]);(0,ne.useEffect)(()=>{function Dt(){let wt=new Ne.Z(Ft=>{for(let Gt of Ft)(Gt.target.offsetHeight>0||Gt.target.offsetWidth>0)&&($n(),He.setSize("100%","100%"),He.refresh())});return wt.observe(Qn.current.parentElement),wt}if(He){const wt=Dt();return()=>{var Ft,Gt;(Ft=Qn.current)!=null&&Ft.parentElement&&wt.unobserve((Gt=Qn.current)==null?void 0:Gt.parentElement)}}},[He,$n]),(0,ne.useEffect)(()=>{if(He){let Dt=[];for(const[wt,Ft]of Object.entries(Tn)){let Gt={[wt]:()=>{Zn(Ft)}};Dt.push(Gt),He.addKeyMap(Gt)}return ra.current=setInterval(()=>{ua.current&&Jt()},4e3),()=>{clearInterval(ra.current);for(let wt of Dt)He.removeKeyMap(wt)}}},[He]),(0,ne.useEffect)(()=>{Ie!==nt&&$t(Ie)},[Ie]),(0,ln.Z)(()=>{if(!Dn&&mn>0){let Dt=new Date().getTime(),wt=window.sessionStorage.getItem(En);Dt>=mn+nn&&(!wt||wt!==zn)&&(window.sessionStorage.setItem(En,zn),ea(!0))}},nn),(0,ne.useEffect)(()=>{Cn(sn)},[He,sn]),(0,ne.useEffect)(()=>{He&&Ct&&He.focus()},[He,Ct]),(0,ne.useEffect)(()=>{if(In&&He){let Dt=function(Ft){let Gt=Ft.target;if(ia.current){let Sn=Gt.scrollTop/Gt.scrollHeight;ia.current.scrollTop=ia.current.scrollHeight*Sn}};const wt=He.getScrollerElement();return wt.addEventListener("scroll",Dt),()=>{wt.removeEventListener("scroll",Dt)}}},[He,In]),(0,ne.useEffect)(()=>{if(He&&Ae){let Dt=function(wt,Ft){Ae(wt,Ft)};return He.on("beforeChange",Dt),()=>{He.off("beforeChange",Dt)}}},[He,Ae]),(0,ne.useEffect)(()=>{if(He&&$e){let Dt=function(){$e(He.getValue())};return He.on("blur",Dt),()=>{He.off("blur",Dt)}}},[He,$e]);function Vn(Dt,wt){var Ft=Dt.getDoc(),Gt=Ft.getCursor(),Sn=Ft.getLine(Gt.line),Nn=Sn.charAt(Gt.ch-1),_n=Sn.lastIndexOf("@\u2581@",Gt.ch),An=Sn.lastIndexOf("@\u2581\u2581@",Gt.ch),Zt=_n>An?_n:An,Qt=_n>An?3:4;if(cn.indexOf(Nn)===-1)return null;if(console.log("change1:",wt,Dt,Sn,Gt,Zt,_n,An,Nn),Zt>=0&&Gt.ch-Zt<5){var pn=Zt+Qt;return Ft.replaceRange("",{line:Gt.line,ch:Zt},{line:Gt.line,ch:pn}),{line:Gt.line,ch:pn}}return null}(0,ne.useEffect)(()=>{if(He){let Dt=function(wt,Ft){const Gt=wt.getValue();Rn(Gt),gn(new Date().getTime()),wt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),be&&(en?be(Gt,Sa(Gt)):be(Gt))};return He.on("change",Dt),()=>{He.off("change",Dt)}}},[He,be]),(0,ne.useEffect)(()=>{if(He)if(ve==null)He.setValue(""),Rn("");else{const Dt=window.scrollY||window.pageYOffset;ve!==He.getValue()&&(He.setValue(ve),Rn(ve),He.setCursor(Ze?1:He.lineCount(),0),window.scrollTo(0,Dt))}},[He,ve]);const Zn=(0,ne.useCallback)(Dt=>{const wt=He.getCursor(),Ft=He.getSelection();let Gt=Ft.split(`
`);switch(Dt){case"bold":return He.replaceSelection("**"+Ft+"**"),Ft===""&&He.setCursor(wt.line,wt.ch+2),He.focus();case"italic":return He.replaceSelection("*"+Ft+"*"),Ft===""&&He.setCursor(wt.line,wt.ch+1),He.focus();case"code":return He.replaceSelection("`"+Ft+"`"),Ft===""&&He.setCursor(wt.line,wt.ch+1),He.focus();case"inline-latex":return Pt("inline-latex"),He.focus();case"latex":return He.replaceSelection("```latex\n"+Ft+"\n```"),He.setCursor(wt.line+1,Ft.length+1),He.focus();case"line-break":return He.replaceSelection(`<br/>
`),He.focus();case"list-ul":return Ft===""?He.replaceSelection("- "+Ft):He.replaceSelection(Gt.map(Sn=>Sn===""?"":`- ${Sn}`).join(`
`)),He.focus();case"list-ol":return Ft===""?He.replaceSelection("1. "+Ft):He.replaceSelection(Gt.map((Sn,Nn)=>Sn===""?"":`${Nn+1}. ${Sn}`).join(`
`)),He.focus();case"add-null-ch":return Ft===""&&He.setCursor(wt.line,wt.ch),He.replaceSelection(qt),He.focus();case"add-signal":return Ft===""&&He.setCursor(wt.line,wt.ch),He.replaceSelection(hn),He.focus();case"add-multiple":return Ft===""&&He.setCursor(wt.line,wt.ch),He.replaceSelection(cn),He.focus();case"inster-template-1":return Ft===""&&He.setCursor(wt.line,wt.ch),He.replaceSelection(yn),He.focus();case"eraser":return He.setValue(""),He.focus();case"trigger-watch":return Cn(!In),He.focus();case"trigger-full-screen":return $t(!nt),He.focus();case Ve:Pt(Ve);return;case Ot:Pt(Ot);return;case ft:Pt(ft);return;case Rt:Pt(Rt);return;case"maths-latex":Pt("maths-latex");return;case ht:Pt(ht);return;case Tt:Pt(Tt);return;default:throw new Error}},[He,In,nt]),Un=(0,ne.useCallback)((Dt,wt)=>{var Ft,Gt,Sn,Nn,_n,An;switch(Pt(""),xt){case Ve:const{title:Ln,link:kn}=Dt;return He.replaceSelection(`[${Ln}](${kn})`),He.focus();case Ot:const{language:aa,content:ma}=Dt;return He.replaceSelection(["```"+aa,ma,"```"].join(`
`)),He.focus();case"maths-latex":for(var Zt=atob(Dt),Qt=new Uint8Array(Zt.length),pn=0;pn<Zt.length;pn++)Qt[pn]=Zt.charCodeAt(pn);var Yt=new Blob([Qt],{type:"image/png"});(0,ye.I)(Yt,da=>{da.id?He.replaceSelection(`![,](/api/attachments/${da.id}?type=${da.content_type})`):(da==null?void 0:da.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":He.replaceSelection("`$$"+Dt+"$$`");break;case ft:case Rt:case kt:const{src:Jn,alt:ya}=Dt,Hn=wt,xa=(Sn=(Gt=(Ft=Hn==null?void 0:Hn.name)==null?void 0:Ft.split("."))==null?void 0:Gt.pop)==null?void 0:Sn.call(Gt);return((Nn=Hn==null?void 0:Hn.type)==null?void 0:Nn.indexOf("image"))>-1||!(Hn!=null&&Hn.type)?Hn.align||Hn.width?He.replaceSelection(`<p style="text-align:${Hn.align||"initial"}"><img width="${Hn.width?Hn.width+"%":"initial"}" src="${Jn}" alt="${ya||""}" /></p>`):He.replaceSelection(`<img width="100%" src="${Jn}" alt="${ya||""}" />`):((_n=Hn==null?void 0:Hn.type)==null?void 0:_n.indexOf("video"))>-1?He.replaceSelection(`<video width="100%" controls src="${Jn}"></video>`):((An=Hn==null?void 0:Hn.type)==null?void 0:An.indexOf("pdf"))>-1?He.replaceSelection(`<a href="${Jn}?type=${Hn.type}&disposition=inline" target="_blank">${Hn.name}</a>`):un.includes(xa)?He.replaceSelection(`<a href="${Jn}?type=office&disposition=inline" target="_blank">${Hn.name}</a>`):He.replaceSelection(`[${Hn.name}](${Jn})`),He.focus();case Tt:const{row:Ba,col:wa,align:$a}=Dt;let La=`
`;for(let da=0;da<Ba;da++){let Ea=[],Fa=[];for(let Ca=0;Ca<wa;Ca++)da===1&&Fa.push(Vt[$a]),Ea.push(" ");da===1&&(La+=`| ${Fa.join(" | ")} |
`),La+=`| ${Ea.join(wa===1?"":" | ")} |
`}return He.replaceSelection(La+`
`),He.focus();default:throw new Error}},[He,xt]),ta=(0,ne.useMemo)(()=>{switch(xt){case Ve:return ne.createElement(st,{callback:Un,onCancel:na});case Ot:return ne.createElement(Qe.Z,{callback:Un,onCancel:na});case ft:return ne.createElement(ye.Z,{callback:Un,onCancel:na});case ht:return ne.createElement(Ye,{callback:Un,onCancel:na});case Tt:return ne.createElement(jt,{callback:Un,onCancel:na});case"maths-latex":return ne.createElement(Ut,{showSaveButton:!0,callback:Un});case"inline-latex":return ne.createElement(dn.Z,{showSaveButton:!0,callback:Un});default:return null}},[xt]);function na(){Pt("")}(0,ne.useEffect)(()=>{if(Wn.current){let Dt=function(_n){Sn=!0,Nn=_n.pageY},wt=function(){Sn=!1},Ft=function(_n){if(Sn){let An=_n.pageY-Nn;An<0&&(An=0),An>300&&(An=300);let Zt=et+An+"px";Fn(Zt)}},Gt=Wn.current,Sn=!1,Nn=0;return Gt.addEventListener("mousedown",Dt),document.addEventListener("mousemove",Ft),document.addEventListener("mouseup",wt),()=>{Gt.removeEventListener("mousedown",Dt),document.removeEventListener("mousemove",Ft),document.removeEventListener("mouseup",wt)}}},[He,Wn]),(0,ne.useEffect)(()=>{Fn(et)},[et]);const ca=wn(Le),Mn=wn(xn),On={width:ca,height:Mn},ga=(0,ne.useMemo)(()=>{if(mn){let Dt=new Date(mn),wt=Dt.getHours(),Ft=Dt.getMinutes(),Gt=Dt.getSeconds();return wt=wt<10?"0"+wt:wt,Ft=Ft<10?"0"+Ft:Ft,Gt=Gt<10?"0"+Gt:Gt,`${wt}:${Ft}:${Gt}`}return 0},[mn]),Sa=Dt=>{const wt=[];if(en){let Ft=-1;Dt=Dt.replace(/(@▁▁@|@▁@)/g,function(Gt,Sn,Nn){wt.push({multiLine:Gt!==hn})})}return wt};function ha(){window.sessionStorage.removeItem(En),ea(!1),gn(0)}function ba(){ea(!1),gn(0),He.setValue(window.sessionStorage.getItem(En))}const fa=(0,De.useIntl)(),Pa={[Ve]:"\u6DFB\u52A0\u94FE\u63A5",[Ot]:fa.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[ft]:fa.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Rt]:"\u6DFB\u52A0\u753B\u56FE",[ht]:fa.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[Tt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":fa.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":fa.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,ne.useEffect)(()=>{Pa[xt]&&xt!==Rt&&xt!==ht&&setTimeout(()=>{const Dt=document.getElementsByClassName("markdown-popup-form")[0],wt=window.innerWidth/2-Dt.offsetWidth/2,Ft=window.innerHeight/2-Dt.offsetHeight/2;Bn(wt),sa(Ft)},0)},[xt]);const pa=Dt=>{Dt.preventDefault();const wt=Dt.clientX-Xn,Ft=Dt.clientY-la;document.body.onmousemove=Gt=>{let Sn=Gt.clientX-wt,Nn=Gt.clientY-Ft;const _n=document.getElementsByClassName("markdown-popup-form")[0],An=window.innerWidth-_n.offsetWidth,Zt=window.innerHeight-_n.offsetHeight;Sn=Math.max(0,Math.min(Sn,An)),Nn=Math.max(0,Math.min(Nn,Zt)),va(Gt.clientX,Gt.clientY,wt,Ft)&&(Bn(Sn),sa(Nn))},document.body.onmouseup=function(){document.body.onmousemove=null}},va=(Dt,wt,Ft,Gt)=>{const Sn=document.body.clientHeight,Nn=document.body.clientWidth;return Dt<20&&Ft>Dt||Dt>Nn-20&&Ft<Dt||wt<20&&Gt>wt||wt>Sn-20&&Gt<wt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:qn},ne.createElement("div",{className:`markdown-editor-container ${Je} ${In?"on-preview":""} ${Lt?"mini":""} ${nt?"full-screen":""}`,style:On},ne.createElement(ge,{insertTemp:tn,watch:In,fullScreen:nt,showNullButton:mt,showNullProgramButton:en,onActionCallback:Zn,hidetoolBar:Se,extraUse:rn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:Qn,placeholder:Nt})),In?ne.createElement("div",{ref:ia,className:"preview-container"},Wt==="stex"&&ne.createElement(Re,{value:zn}),Wt!=="stex"&&ne.createElement(dt.Z,{disabledFill:_t,showProgramFill:en,value:zn})):null))),Yn?ne.createElement("a",{ref:Wn,className:"editor-resize"}):null,xt===Rt&&ne.createElement(ot,{callback:Un,onCancel:na}),xt===ht&&ne.createElement(Ye,{callback:Un,onCancel:na}),ne.createElement(me.Z,null,Pa[xt]&&xt!==Rt&&xt!==ht?ne.createElement(Oe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Xn,top:la},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:pa},Pa[xt]),open:!0,onCancel:na,footer:null,destroyOnClose:!0,width:xt===ht?"1200px":null,height:xt===ht?"80vh":null,className:"markdown-popup-form"},ta):null))}},70859:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return ge},I:function(){return se}});var ne=oe(22150),ce=oe(2453),Xe=oe(69677),Ne=oe(93421),ue=oe(31795),Ee=oe(78045),le=oe(71577),We=oe(15476),je=oe(67294),Fe=oe(52262),dt=oe(35973),Re=oe(67294),De=Object.defineProperty,ae=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(Be,Me,rt)=>Me in Be?De(Be,Me,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Be[Me]=rt,z=(Be,Me)=>{for(var rt in Me||(Me={}))E.call(Me,rt)&&x(Be,rt,Me[rt]);if(y)for(var rt of y(Me))b.call(Me,rt)&&x(Be,rt,Me[rt]);return Be},ee=(Be,Me)=>ae(Be,a(Me));const{useForm:te}=ne.default,re={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:Be,onCancel:Me})=>{const[rt]=te();let Bt=(0,je.useRef)();const Mt=(0,dt.useIntl)();function we(_e){Bt.current.width=rt.getFieldValue("width"),Bt.current.align=rt.getFieldValue("align"),Be(_e,Bt.current)}function ke(_e,at){if(_e.status===-1){ce.ZP.error(_e.message);return}rt.setFieldsValue({src:`/api/attachments/${_e.id}`,type:at.type})}function Ge(_e){let at=_e.target.files[0];Bt.current=at,se(at,ke)}return Re.createElement(ne.default,ee(z({form:rt},ie),{className:"upload-image-panel",onFinish:we,style:{width:470,overflow:"hidden"}}),Re.createElement(ne.default.Item,{label:Mt.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Re.createElement("div",{className:"flex-container"},Re.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Re.createElement(Xe.default,{style:re})),Re.createElement(me,{onFileChange:Ge}))),Re.createElement(ne.default.Item,{label:Mt.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Re.createElement(Xe.default,{style:{width:264}})),Re.createElement(ne.default.Item,{label:Mt.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Re.createElement(Ne.Z,null,Re.createElement(ne.default.Item,{name:"width",style:{margin:0}},Re.createElement(ue.Z,{style:{width:264}})),Re.createElement("span",{className:"ml8"},"%"))),Re.createElement(ne.default.Item,{label:Mt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Re.createElement(Ee.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:Mt.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:Mt.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:Mt.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Re.createElement("aside",null,Re.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Re.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Mt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Re.createElement(le.ZP,{type:"default",onClick:Me},Mt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function me({onFileChange:Be}){return Re.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Re.createElement("input",{type:"file",onChange:Be}))}function se(Be,Me){if(!Be)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Fe.bg)())throw ce.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let rt=new FormData;rt.append("editormd-image-file",Be),rt.append("file_param_name","editormd-image-file"),rt.append("byxhr","true");var Bt=new window.XMLHttpRequest;Bt.withCredentials=!0,Bt.addEventListener("load",function(Mt){Me(JSON.parse(Mt.target.responseText),Be)},!1),Bt.addEventListener("error",function(Mt){console.error(Mt)},!1),Bt.open("POST",`${We.KI}/api/attachments.json`),Bt.send(rt)}},76621:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return Xe}});var ne=oe(67294),ce=oe(73935);class Xe extends ne.Component{constructor(ue){super(ue);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,ce.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return ce}});var ne=oe(67294);function ce(Xe,Ne){const ue=(0,ne.useRef)();(0,ne.useEffect)(()=>{ue.current=Xe}),(0,ne.useEffect)(()=>{function Ee(){ue.current()}if(Ne!==null){let le=setInterval(Ee,Ne);return()=>clearInterval(le)}},[Ne])}},61712:function(ze,lt,oe){"use strict";oe.r(lt),oe.d(lt,{default:function(){return ie}});var ne=oe(67294),ce=oe(35973),Xe=oe(22150),Ne=oe(85673),ue=oe(69677),Ee=oe(71577),le=oe(35567),We=oe(86763),je={bg:"bg___ZTexa",flexRow:"flexRow___VO4ro",flexJustifyCenter:"flexJustifyCenter___OXFkk",flexAlignEnd:"flexAlignEnd___d6zIM",flexAlignCenter:"flexAlignCenter___YzqD8",flexColumn:"flexColumn___RKoTE",formWrap:"formWrap___BxAFG",titleWrap:"titleWrap___tvKuf",fieldWrap:"fieldWrap___eigdN",mdWrap:"mdWrap___cmz87",backgroundFa:"backgroundFa___b57J2",button:"button___VVH5U"},Fe=oe(65866),dt=oe(10191),Re=oe(33170),De=Object.defineProperty,ae=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ge,me,se)=>me in ge?De(ge,me,{enumerable:!0,configurable:!0,writable:!0,value:se}):ge[me]=se,z=(ge,me)=>{for(var se in me||(me={}))E.call(me,se)&&x(ge,se,me[se]);if(y)for(var se of y(me))b.call(me,se)&&x(ge,se,me[se]);return ge},ee=(ge,me)=>ae(ge,a(me)),te=(ge,me,se)=>new Promise((Be,Me)=>{var rt=we=>{try{Mt(se.next(we))}catch(ke){Me(ke)}},Bt=we=>{try{Mt(se.throw(we))}catch(ke){Me(ke)}},Mt=we=>we.done?Be(we.value):Promise.resolve(we.value).then(rt,Bt);Mt((se=se.apply(ge,me)).next())});const re=({shixunHomeworks:ge,newCourse:me,globalSetting:se,user:Be,loading:Me,dispatch:rt})=>{var Bt,Mt;const we=(0,ce.useIntl)(),ke=(0,ce.useParams)(),[Ge]=Xe.default.useForm(),[_e,at]=(0,ne.useState)({}),[yt,Ke]=(0,ne.useState)(!1);let[st,Qe]=(0,ne.useState)({});const ye=(0,ne.useRef)(),{commonHomeWorkEditDefaultData:Oe}=ge;(0,ne.useEffect)(()=>{Ue()},[ke.categoryId]);const Ue=()=>te(void 0,null,function*(){const ot=yield rt({type:"shixunHomeworks/editCommonHomeWorkDefaultData",payload:ee(z({},ke),{type:1})});if(ot){const de={name:ot.name,description:ot.description,reference_answer:ot.reference_answer,attachment_ids:(0,Fe.z)(ot.attachments),reference_attachment_ids:(0,Fe.z)(ot.ref_attachments)};Ge.setFieldsValue(z({},de)),at(z({},de)),Ke(!0)}});function Et(ot){return te(this,null,function*(){if(!(st!=null&&st.ec_point_ids))return;let de=yield(0,Re.ZP)(`/api/ec_courses/${st==null?void 0:st.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:z({homework_common_id:ot},st)})})}const qe=ot=>te(void 0,null,function*(){var de,gt;const pt=z({},_e);pt.attachment_ids&&(pt.attachment_ids=(de=pt==null?void 0:pt.attachment_ids)==null?void 0:de.map(St=>{var Te;return(Te=St.response)==null?void 0:Te.id})),pt.reference_attachment_ids&&(pt.reference_attachment_ids=(gt=pt==null?void 0:pt.reference_attachment_ids)==null?void 0:gt.map(St=>{var Te;return(Te=St.response)==null?void 0:Te.id}));const zt=yield(0,We.Ar)(ee(z(z({},ke),pt),{base_on_project:!0,type:1}));Et(ke.categoryId),zt&&ce.history.push(`/classrooms/${ke.coursesId}/common_homework/${ke.categoryId}/detail`)});return ne.createElement("section",{className:je.bg},Oe.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Oe.category&&ne.createElement(Ne.Z,{separator:">"},ne.createElement(Ne.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${ke.coursesId}/common_homework`},Oe.course_name)),ne.createElement(Ne.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${ke.coursesId}/common_homework`},Oe.category.category_name)),ne.createElement(Ne.Z.Item,null,we.formatMessage({id:"classroomGraphicGroupHomework.edit",defaultMessage:"\u7F16\u8F91"}))))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u56FE\u6587\u4F5C\u4E1A"),ne.createElement(Xe.default,{form:Ge,className:je.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{at(z({},Ge.getFieldsValue()))},onFinish:qe},ne.createElement("div",{className:je.fieldWrap},ne.createElement(Xe.default.Item,{name:"name",label:`${we.formatMessage({id:"classrooms.title",defaultMessage:"\u6807\u9898"})}:`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(ue.default,{placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:je.mdWrap},ne.createElement(Xe.default.Item,{name:"description",label:we.formatMessage({id:"classrooms.description",defaultMessage:"\u7B80\u4ECB"})+":",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"}]},ne.createElement(le.Z,{watch:!0,defaultValue:Oe.description})),ne.createElement("div",null,ne.createElement(Xe.default.Item,{name:"attachment_ids"},yt&&ne.createElement(Fe.Z,null)))),ne.createElement("div",{className:je.mdWrap},ne.createElement(Xe.default.Item,{name:"reference_answer",label:`${we.formatMessage({id:"classroomGraphicGroupHomework.referenceAnswer",defaultMessage:"\u53C2\u8003\u7B54\u6848"})} :`},ne.createElement(le.Z,{defaultValue:Oe.reference_answer,watch:!0})),ne.createElement("div",null,ne.createElement(Xe.default.Item,{name:"reference_attachment_ids"},yt&&ne.createElement(Fe.Z,null))))),ne.createElement("div",{className:je.mdWrap,style:{display:(Bt=se==null?void 0:se.setting)!=null&&Bt.hide_ec?"none":(Mt=Be.userInfo.course)!=null&&Mt.is_openengineering?"":"none"}},ne.createElement(dt.Z,{setitem:ot=>Qe(z({},ot)),homework_common_id:ke.categoryId})),ne.createElement("div",{className:je.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Xe.default.Item,null,ne.createElement(Ee.ZP,{size:"middle",type:"primary",className:`${je.button} mr20`,htmlType:"submit",onClick:()=>{Ge.submit()},loading:Me["newCourse/editCourse"]||Me["newCourse/submitCourse"]},we.formatMessage({id:"classroomGraphicGroupHomework.submit",defaultMessage:"\u63D0\u4EA4"})),ne.createElement(Ee.ZP,{size:"middle",type:"primary",ghost:!0,className:je.button,onClick:()=>ce.history.push(`/classrooms/${ke.coursesId}/common_homework`)},we.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}))))))};var ie=(0,ce.connect)(({shixunHomeworks:ge,newCourse:me,loading:se,user:Be,globalSetting:Me})=>({shixunHomeworks:ge,newCourse:me,globalSetting:Me,user:Be,loading:se.effects}))(re)},4440:function(ze,lt,oe){"use strict";oe.d(lt,{$J:function(){return Xe},JZ:function(){return ue},bN:function(){return le},jP:function(){return Ee},rO:function(){return Ne}});var ne=oe(33170),ce=(We,je,Fe)=>new Promise((dt,Re)=>{var De=y=>{try{a(Fe.next(y))}catch(E){Re(E)}},ae=y=>{try{a(Fe.throw(y))}catch(E){Re(E)}},a=y=>y.done?dt(y.value):Promise.resolve(y.value).then(De,ae);a((Fe=Fe.apply(We,je)).next())});function Xe(We){return(0,ne.U2)(`libraries/${We}.json`)}function Ne(We){return(0,ne.U2)("library_tags.json",We)}function ue(We){return ce(this,null,function*(){return(yield(0,ne.IV)(`attachments/${We}.json`)).status===0})}function Ee(We){return(0,ne.v_)("libraries.json",We)}function le(We,je){return(0,ne.gz)(`libraries/${We}.json`,je)}},57838:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return ce}});var ne=oe(67294);function ce(){const[,Xe]=ne.useReducer(Ne=>Ne+1,0);return Xe}},85673:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return Mt}});var ne=oe(94184),ce=oe.n(ne),Xe=oe(37419),Ne=oe(1337),ue=oe(67294),Ee=oe(96159),le=oe(53124),We=oe(42922),je=oe(35874);const Fe=we=>{let{children:ke}=we;const{getPrefixCls:Ge}=ue.useContext(le.E_),_e=Ge("breadcrumb");return ue.createElement("li",{className:`${_e}-separator`,"aria-hidden":"true"},ke===""?ke:ke||"/")};Fe.__ANT_BREADCRUMB_SEPARATOR=!0;var dt=Fe,Re=function(we,ke){var Ge={};for(var _e in we)Object.prototype.hasOwnProperty.call(we,_e)&&ke.indexOf(_e)<0&&(Ge[_e]=we[_e]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,_e=Object.getOwnPropertySymbols(we);at<_e.length;at++)ke.indexOf(_e[at])<0&&Object.prototype.propertyIsEnumerable.call(we,_e[at])&&(Ge[_e[at]]=we[_e[at]]);return Ge};function De(we,ke){if(we.title===void 0||we.title===null)return null;const Ge=Object.keys(ke).join("|");return typeof we.title=="object"?we.title:String(we.title).replace(new RegExp(`:(${Ge})`,"g"),(_e,at)=>ke[at]||_e)}function ae(we,ke,Ge,_e){if(Ge==null)return null;const{className:at,onClick:yt}=ke,Ke=Re(ke,["className","onClick"]),st=Object.assign(Object.assign({},(0,Ne.Z)(Ke,{data:!0,aria:!0})),{onClick:yt});return _e!==void 0?ue.createElement("a",Object.assign({},st,{className:ce()(`${we}-link`,at),href:_e}),Ge):ue.createElement("span",Object.assign({},st,{className:ce()(`${we}-link`,at)}),Ge)}function a(we,ke){return(_e,at,yt,Ke,st)=>{if(ke)return ke(_e,at,yt,Ke);const Qe=De(_e,at);return ae(we,_e,Qe,st)}}var y=function(we,ke){var Ge={};for(var _e in we)Object.prototype.hasOwnProperty.call(we,_e)&&ke.indexOf(_e)<0&&(Ge[_e]=we[_e]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,_e=Object.getOwnPropertySymbols(we);at<_e.length;at++)ke.indexOf(_e[at])<0&&Object.prototype.propertyIsEnumerable.call(we,_e[at])&&(Ge[_e[at]]=we[_e[at]]);return Ge};const E=we=>{const{prefixCls:ke,separator:Ge="/",children:_e,menu:at,overlay:yt,dropdownProps:Ke,href:st}=we,ye=(Oe=>{if(at||yt){const Ue=Object.assign({},Ke);if(at){const Et=at||{},{items:qe}=Et,ot=y(Et,["items"]);Ue.menu=Object.assign(Object.assign({},ot),{items:qe==null?void 0:qe.map((de,gt)=>{var{key:pt,title:zt,label:St,path:Te}=de,fe=y(de,["key","title","label","path"]);let Pe=St!=null?St:zt;return Te&&(Pe=ue.createElement("a",{href:`${st}${Te}`},Pe)),Object.assign(Object.assign({},fe),{key:pt!=null?pt:gt,label:Pe})})})}else yt&&(Ue.overlay=yt);return ue.createElement(je.Z,Object.assign({placement:"bottom"},Ue),ue.createElement("span",{className:`${ke}-overlay-link`},Oe,ue.createElement(We.Z,null)))}return Oe})(_e);return ye!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,ye),Ge&&ue.createElement(dt,null,Ge)):null},b=we=>{const{prefixCls:ke,children:Ge,href:_e}=we,at=y(we,["prefixCls","children","href"]),{getPrefixCls:yt}=ue.useContext(le.E_),Ke=yt("breadcrumb",ke);return ue.createElement(E,Object.assign({},at,{prefixCls:Ke}),ae(Ke,at,Ge,_e))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),te=oe(45503);const re=we=>{const{componentCls:ke,iconCls:Ge}=we;return{[ke]:Object.assign(Object.assign({},(0,z.Wf)(we)),{color:we.itemColor,fontSize:we.fontSize,[Ge]:{fontSize:we.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:we.linkColor,transition:`color ${we.motionDurationMid}`,padding:`0 ${we.paddingXXS}px`,borderRadius:we.borderRadiusSM,height:we.lineHeight*we.fontSize,display:"inline-block",marginInline:-we.marginXXS,"&:hover":{color:we.linkHoverColor,backgroundColor:we.colorBgTextHover}},(0,z.Qy)(we)),"li:last-child":{color:we.lastItemColor},[`${ke}-separator`]:{marginInline:we.separatorMargin,color:we.separatorColor},[`${ke}-link`]:{[`
> ${Ge} + span,
> ${Ge} + a
`]:{marginInlineStart:we.marginXXS}},[`${ke}-overlay-link`]:{borderRadius:we.borderRadiusSM,height:we.lineHeight*we.fontSize,display:"inline-block",padding:`0 ${we.paddingXXS}px`,marginInline:-we.marginXXS,[`> ${Ge}`]:{marginInlineStart:we.marginXXS,fontSize:we.fontSizeIcon},"&:hover":{color:we.linkHoverColor,backgroundColor:we.colorBgTextHover,a:{color:we.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${we.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",we=>{const ke=(0,te.TS)(we,{});return[re(ke)]},we=>({itemColor:we.colorTextDescription,lastItemColor:we.colorText,iconFontSize:we.fontSize,linkColor:we.colorTextDescription,linkHoverColor:we.colorText,separatorColor:we.colorTextDescription,separatorMargin:we.marginXS})),ge=function(we,ke){var Ge={};for(var _e in we)Object.prototype.hasOwnProperty.call(we,_e)&&ke.indexOf(_e)<0&&(Ge[_e]=we[_e]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,_e=Object.getOwnPropertySymbols(we);at<_e.length;at++)ke.indexOf(_e[at])<0&&Object.prototype.propertyIsEnumerable.call(we,_e[at])&&(Ge[_e[at]]=we[_e[at]]);return Ge};function me(we){const{breadcrumbName:ke,children:Ge}=we,_e=ge(we,["breadcrumbName","children"]),at=Object.assign({title:ke},_e);return Ge&&(at.menu={items:Ge.map(yt=>{var{breadcrumbName:Ke}=yt,st=ge(yt,["breadcrumbName"]);return Object.assign(Object.assign({},st),{title:Ke})})}),at}function se(we,ke){return(0,ue.useMemo)(()=>we||(ke?ke.map(me):null),[we,ke])}var Be=function(we,ke){var Ge={};for(var _e in we)Object.prototype.hasOwnProperty.call(we,_e)&&ke.indexOf(_e)<0&&(Ge[_e]=we[_e]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,_e=Object.getOwnPropertySymbols(we);at<_e.length;at++)ke.indexOf(_e[at])<0&&Object.prototype.propertyIsEnumerable.call(we,_e[at])&&(Ge[_e[at]]=we[_e[at]]);return Ge};const Me=(we,ke)=>{if(ke===void 0)return ke;let Ge=(ke||"").replace(/^\//,"");return Object.keys(we).forEach(_e=>{Ge=Ge.replace(`:${_e}`,we[_e])}),Ge},rt=we=>{const{prefixCls:ke,separator:Ge="/",style:_e,className:at,rootClassName:yt,routes:Ke,items:st,children:Qe,itemRender:ye,params:Oe={}}=we,Ue=Be(we,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Et,direction:qe,breadcrumb:ot}=ue.useContext(le.E_);let de;const gt=Et("breadcrumb",ke),[pt,zt]=ie(gt),St=se(st,Ke),Te=a(gt,ye);if(St&&St.length>0){const he=[],Ce=st||Ke;de=St.map((Ye,tt)=>{const{path:vt,key:bt,type:At,menu:jt,overlay:Ht,onClick:an,className:ut,separator:It,dropdownProps:Ut}=Ye,dn=Me(Oe,vt);dn!==void 0&&he.push(dn);const pe=bt!=null?bt:tt;if(At==="separator")return ue.createElement(dt,{key:pe},It);const xe={},Ve=tt===St.length-1;jt?xe.menu=jt:Ht&&(xe.overlay=Ht);let{href:ft}=Ye;return he.length&&dn!==void 0&&(ft=`#/${he.join("/")}`),ue.createElement(E,Object.assign({key:pe},xe,(0,Ne.Z)(Ye,{data:!0,aria:!0}),{className:ut,dropdownProps:Ut,href:ft,separator:Ve?"":Ge,onClick:an,prefixCls:gt}),Te(Ye,Oe,Ce,he,ft))})}else if(Qe){const he=(0,Xe.Z)(Qe).length;de=(0,Xe.Z)(Qe).map((Ce,Ye)=>{if(!Ce)return Ce;const tt=Ye===he-1;return(0,Ee.Tm)(Ce,{separator:tt?"":Ge,key:Ye})})}const fe=ce()(gt,ot==null?void 0:ot.className,{[`${gt}-rtl`]:qe==="rtl"},at,yt,zt),Pe=Object.assign(Object.assign({},ot==null?void 0:ot.style),_e);return pt(ue.createElement("nav",Object.assign({className:fe,style:Pe},Ue),ue.createElement("ol",null,de)))};rt.Item=x,rt.Separator=dt;var Bt=rt,Mt=Bt},84567:function(ze,lt,oe){"use strict";oe.d(lt,{default:function(){return ie}});var ne=oe(94184),ce=oe.n(ne),Xe=oe(95860),Ne=oe(67294),ue=oe(53124),Ee=oe(98866),le=oe(65223),je=Ne.createContext(null),Fe=oe(63185),dt=oe(45353),Re=oe(92429),De=function(ge,me){var se={};for(var Be in ge)Object.prototype.hasOwnProperty.call(ge,Be)&&me.indexOf(Be)<0&&(se[Be]=ge[Be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Be=Object.getOwnPropertySymbols(ge);Me<Be.length;Me++)me.indexOf(Be[Me])<0&&Object.prototype.propertyIsEnumerable.call(ge,Be[Me])&&(se[Be[Me]]=ge[Be[Me]]);return se};const ae=(ge,me)=>{var se;const{prefixCls:Be,className:Me,rootClassName:rt,children:Bt,indeterminate:Mt=!1,style:we,onMouseEnter:ke,onMouseLeave:Ge,skipGroup:_e=!1,disabled:at}=ge,yt=De(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ke,direction:st,checkbox:Qe}=Ne.useContext(ue.E_),ye=Ne.useContext(je),{isFormItemInput:Oe}=Ne.useContext(le.aM),Ue=Ne.useContext(Ee.Z),Et=(se=(ye==null?void 0:ye.disabled)||at)!==null&&se!==void 0?se:Ue,qe=Ne.useRef(yt.value);Ne.useEffect(()=>{ye==null||ye.registerValue(yt.value)},[]),Ne.useEffect(()=>{if(!_e)return yt.value!==qe.current&&(ye==null||ye.cancelValue(qe.current),ye==null||ye.registerValue(yt.value),qe.current=yt.value),()=>ye==null?void 0:ye.cancelValue(yt.value)},[yt.value]);const ot=Ke("checkbox",Be),[de,gt]=(0,Fe.ZP)(ot),pt=Object.assign({},yt);ye&&!_e&&(pt.onChange=function(){yt.onChange&&yt.onChange.apply(yt,arguments),ye.toggleOption&&ye.toggleOption({label:Bt,value:yt.value})},pt.name=ye.name,pt.checked=ye.value.includes(yt.value));const zt=ce()(`${ot}-wrapper`,{[`${ot}-rtl`]:st==="rtl",[`${ot}-wrapper-checked`]:pt.checked,[`${ot}-wrapper-disabled`]:Et,[`${ot}-wrapper-in-form-item`]:Oe},Qe==null?void 0:Qe.className,Me,rt,gt),St=ce()({[`${ot}-indeterminate`]:Mt},Re.A,gt),Te=Mt?"mixed":void 0;return de(Ne.createElement(dt.Z,{component:"Checkbox",disabled:Et},Ne.createElement("label",{className:zt,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),we),onMouseEnter:ke,onMouseLeave:Ge},Ne.createElement(Xe.Z,Object.assign({"aria-checked":Te},pt,{prefixCls:ot,className:St,disabled:Et,ref:me})),Bt!==void 0&&Ne.createElement("span",null,Bt))))};var y=Ne.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(ge,me){var se={};for(var Be in ge)Object.prototype.hasOwnProperty.call(ge,Be)&&me.indexOf(Be)<0&&(se[Be]=ge[Be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Be=Object.getOwnPropertySymbols(ge);Me<Be.length;Me++)me.indexOf(Be[Me])<0&&Object.prototype.propertyIsEnumerable.call(ge,Be[Me])&&(se[Be[Me]]=ge[Be[Me]]);return se};const z=(ge,me)=>{const{defaultValue:se,children:Be,options:Me=[],prefixCls:rt,className:Bt,rootClassName:Mt,style:we,onChange:ke}=ge,Ge=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:_e,direction:at}=Ne.useContext(ue.E_),[yt,Ke]=Ne.useState(Ge.value||se||[]),[st,Qe]=Ne.useState([]);Ne.useEffect(()=>{"value"in Ge&&Ke(Ge.value||[])},[Ge.value]);const ye=Ne.useMemo(()=>Me.map(fe=>typeof fe=="string"||typeof fe=="number"?{label:fe,value:fe}:fe),[Me]),Oe=fe=>{Qe(Pe=>Pe.filter(he=>he!==fe))},Ue=fe=>{Qe(Pe=>[].concat((0,E.Z)(Pe),[fe]))},Et=fe=>{const Pe=yt.indexOf(fe.value),he=(0,E.Z)(yt);Pe===-1?he.push(fe.value):he.splice(Pe,1),"value"in Ge||Ke(he),ke==null||ke(he.filter(Ce=>st.includes(Ce)).sort((Ce,Ye)=>{const tt=ye.findIndex(bt=>bt.value===Ce),vt=ye.findIndex(bt=>bt.value===Ye);return tt-vt}))},qe=_e("checkbox",rt),ot=`${qe}-group`,[de,gt]=(0,Fe.ZP)(qe),pt=(0,b.Z)(Ge,["value","disabled"]),zt=Me.length?ye.map(fe=>Ne.createElement(y,{prefixCls:qe,key:fe.value.toString(),disabled:"disabled"in fe?fe.disabled:Ge.disabled,value:fe.value,checked:yt.includes(fe.value),onChange:fe.onChange,className:`${ot}-item`,style:fe.style,title:fe.title},fe.label)):Be,St={toggleOption:Et,value:yt,disabled:Ge.disabled,name:Ge.name,registerValue:Ue,cancelValue:Oe},Te=ce()(ot,{[`${ot}-rtl`]:at==="rtl"},Bt,Mt,gt);return de(Ne.createElement("div",Object.assign({className:Te,style:we},pt,{ref:me}),Ne.createElement(je.Provider,{value:St},zt)))},ee=Ne.forwardRef(z);var te=Ne.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(ze,lt,oe){"use strict";oe.d(lt,{C2:function(){return ue}});var ne=oe(14747),ce=oe(45503),Xe=oe(67968);const Ne=Ee=>{const{checkboxCls:le}=Ee,We=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[We]:Object.assign(Object.assign({},(0,ne.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${We}`]:{marginInlineStart:0},[`&${We}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(Ee))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${Ee.lineWidth}px ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ee.checkboxSize/14*5,height:Ee.checkboxSize/14*8,border:`${Ee.lineWidthBold}px solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
${We}:not(${We}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:Ee.colorPrimary}},[`${We}:not(${We}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
${We}-checked:not(${We}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Ee.colorBgContainer,borderColor:Ee.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.fontSizeLG/2,height:Ee.fontSizeLG/2,backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${We}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function ue(Ee,le){const We=(0,ce.TS)(le,{checkboxCls:`.${Ee}`,checkboxSize:le.controlInteractiveSize});return[Ne(We)]}lt.ZP=(0,Xe.Z)("Checkbox",(Ee,le)=>{let{prefixCls:We}=le;return[ue(We,Ee)]})},35874:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return Pe}});var ne=oe(67294),ce=oe(91034),Xe=oe(94184),Ne=oe.n(Xe),ue=oe(87462),Ee=oe(4942),le=oe(97685),We=oe(45987),je=oe(62709),Fe=oe(71002),dt=oe(12060);function Re(he,Ce,Ye){var tt=React.useRef({});return(!("value"in tt.current)||Ye(tt.current.condition,Ce))&&(tt.current.value=he(),tt.current.condition=Ce),tt.current.value}function De(he,Ce){typeof he=="function"?he(Ce):(0,Fe.Z)(he)==="object"&&he&&"current"in he&&(he.current=Ce)}function ae(){for(var he=arguments.length,Ce=new Array(he),Ye=0;Ye<he;Ye++)Ce[Ye]=arguments[Ye];var tt=Ce.filter(function(vt){return vt});return tt.length<=1?tt[0]:function(vt){Ce.forEach(function(bt){De(bt,vt)})}}function a(){for(var he=arguments.length,Ce=new Array(he),Ye=0;Ye<he;Ye++)Ce[Ye]=arguments[Ye];return useMemo(function(){return ae.apply(void 0,Ce)},Ce,function(tt,vt){return tt.length===vt.length&&tt.every(function(bt,At){return bt===vt[At]})})}function y(he){var Ce,Ye,tt=(0,dt.isMemo)(he)?he.type.type:he.type;return!(typeof tt=="function"&&!((Ce=tt.prototype)!==null&&Ce!==void 0&&Ce.render)||typeof he=="function"&&!((Ye=he.prototype)!==null&&Ye!==void 0&&Ye.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ce){var Ye=Ce.keyCode;if(Ce.altKey&&!Ce.ctrlKey||Ce.metaKey||Ye>=E.F1&&Ye<=E.F12)return!1;switch(Ye){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ce){if(Ce>=E.ZERO&&Ce<=E.NINE||Ce>=E.NUM_ZERO&&Ce<=E.NUM_MULTIPLY||Ce>=E.A&&Ce<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ce===0)return!0;switch(Ce){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(Ce){return+setTimeout(Ce,16)},z=function(Ce){return clearTimeout(Ce)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(Ce){return window.requestAnimationFrame(Ce)},z=function(Ce){return window.cancelAnimationFrame(Ce)});var ee=0,te=new Map;function re(he){te.delete(he)}var ie=function(Ce){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var tt=ee;function vt(bt){if(bt===0)re(tt),Ce();else{var At=x(function(){vt(bt-1)});te.set(tt,At)}}return vt(Ye),tt};ie.cancel=function(he){var Ce=te.get(he);return re(Ce),z(Ce)};var ge=ie,me=b.ESC,se=b.TAB;function Be(he){var Ce=he.visible,Ye=he.triggerRef,tt=he.onVisibleChange,vt=he.autoFocus,bt=he.overlayRef,At=ne.useRef(!1),jt=function(){if(Ce){var It,Ut;(It=Ye.current)===null||It===void 0||(Ut=It.focus)===null||Ut===void 0||Ut.call(It),tt==null||tt(!1)}},Ht=function(){var It;return(It=bt.current)!==null&&It!==void 0&&It.focus?(bt.current.focus(),At.current=!0,!0):!1},an=function(It){switch(It.keyCode){case me:jt();break;case se:{var Ut=!1;At.current||(Ut=Ht()),Ut?It.preventDefault():jt();break}}};ne.useEffect(function(){return Ce?(window.addEventListener("keydown",an),vt&&ge(Ht,3),function(){window.removeEventListener("keydown",an),At.current=!1}):function(){At.current=!1}},[Ce])}var Me=(0,ne.forwardRef)(function(he,Ce){var Ye=he.overlay,tt=he.arrow,vt=he.prefixCls,bt=(0,ne.useMemo)(function(){var jt;return typeof Ye=="function"?jt=Ye():jt=Ye,jt},[Ye]),At=ae(Ce,bt==null?void 0:bt.ref);return ne.createElement(ne.Fragment,null,tt&&ne.createElement("div",{className:"".concat(vt,"-arrow")}),ne.cloneElement(bt,{ref:y(bt)?At:void 0}))}),rt=Me,Bt={adjustX:1,adjustY:1},Mt=[0,0],we={topLeft:{points:["bl","tl"],overflow:Bt,offset:[0,-4],targetOffset:Mt},top:{points:["bc","tc"],overflow:Bt,offset:[0,-4],targetOffset:Mt},topRight:{points:["br","tr"],overflow:Bt,offset:[0,-4],targetOffset:Mt},bottomLeft:{points:["tl","bl"],overflow:Bt,offset:[0,4],targetOffset:Mt},bottom:{points:["tc","bc"],overflow:Bt,offset:[0,4],targetOffset:Mt},bottomRight:{points:["tr","br"],overflow:Bt,offset:[0,4],targetOffset:Mt}},ke=we,Ge=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function _e(he,Ce){var Ye,tt=he.arrow,vt=tt===void 0?!1:tt,bt=he.prefixCls,At=bt===void 0?"rc-dropdown":bt,jt=he.transitionName,Ht=he.animation,an=he.align,ut=he.placement,It=ut===void 0?"bottomLeft":ut,Ut=he.placements,dn=Ut===void 0?ke:Ut,pe=he.getPopupContainer,xe=he.showAction,Ve=he.hideAction,ft=he.overlayClassName,ht=he.overlayStyle,Rt=he.visible,kt=he.trigger,Ot=kt===void 0?["hover"]:kt,Tt=he.autoFocus,Kt=he.overlay,Vt=he.children,ln=he.onVisibleChange,on=(0,We.Z)(he,Ge),Pn=ne.useState(),vn=(0,le.Z)(Pn,2),nn=vn[0],qt=vn[1],cn="visible"in he?Rt:nn,hn=ne.useRef(null),yn=ne.useRef(null),un=ne.useRef(null);ne.useImperativeHandle(Ce,function(){return hn.current});var wn=function(Lt){qt(Lt),ln==null||ln(Lt)};Be({visible:cn,triggerRef:un,onVisibleChange:wn,autoFocus:Tt,overlayRef:yn});var jn=function(Lt){var Ct=he.onOverlayClick;qt(!1),Ct&&Ct(Lt)},bn=function(){return ne.createElement(rt,{ref:yn,overlay:Kt,prefixCls:At,arrow:vt})},Tn=function(){return typeof Kt=="function"?bn:bn()},Kn=function(){var Lt=he.minOverlayWidthMatchTrigger,Ct=he.alignPoint;return"minOverlayWidthMatchTrigger"in he?Lt:!Ct},ve=function(){var Lt=he.openClassName;return Lt!==void 0?Lt:"".concat(At,"-open")},be=ne.cloneElement(Vt,{className:Ne()((Ye=Vt.props)===null||Ye===void 0?void 0:Ye.className,cn&&ve()),ref:y(Vt)?ae(un,Vt.ref):void 0}),Le=Ve;return!Le&&Ot.indexOf("contextMenu")!==-1&&(Le=["click"]),ne.createElement(je.Z,(0,ue.Z)({builtinPlacements:dn},on,{prefixCls:At,ref:hn,popupClassName:Ne()(ft,(0,Ee.Z)({},"".concat(At,"-show-arrow"),vt)),popupStyle:ht,action:Ot,showAction:xe,hideAction:Le,popupPlacement:It,popupAlign:an,popupTransitionName:jt,popupAnimation:Ht,popupVisible:cn,stretch:Kn()?"minWidth":"",popup:Tn(),onPopupVisibleChange:wn,onPopupClick:jn,getPopupContainer:pe}),be)}var at=ne.forwardRef(_e),yt=at,Ke=oe(60276),st=oe(5663),Qe=oe(10366),ye=oe(80636),Oe=oe(8745),Ue=oe(96159),Et=oe(53124),qe=oe(68508),ot=oe(76529),de=oe(46605),gt=oe(66748);const pt=null,zt=he=>{const{menu:Ce,arrow:Ye,prefixCls:tt,children:vt,trigger:bt,disabled:At,dropdownRender:jt,getPopupContainer:Ht,overlayClassName:an,rootClassName:ut,open:It,onOpenChange:Ut,visible:dn,onVisibleChange:pe,mouseEnterDelay:xe=.15,mouseLeaveDelay:Ve=.1,autoAdjustOverflow:ft=!0,placement:ht="",overlay:Rt,transitionName:kt}=he,{getPopupContainer:Ot,getPrefixCls:Tt,direction:Kt}=ne.useContext(Et.E_),Vt=ne.useMemo(()=>{const be=Tt();return kt!==void 0?kt:ht.includes("top")?`${be}-slide-down`:`${be}-slide-up`},[Tt,ht,kt]),ln=ne.useMemo(()=>ht?ht.includes("Center")?ht.slice(0,ht.indexOf("Center")):ht:Kt==="rtl"?"bottomRight":"bottomLeft",[ht,Kt]),on=Tt("dropdown",tt),[Pn,vn]=(0,gt.Z)(on),[,nn]=(0,de.Z)(),qt=ne.Children.only(vt),cn=(0,Ue.Tm)(qt,{className:Ne()(`${on}-trigger`,{[`${on}-rtl`]:Kt==="rtl"},qt.props.className),disabled:At}),hn=At?[]:bt;let yn;hn&&hn.includes("contextMenu")&&(yn=!0);const[un,wn]=(0,st.Z)(!1,{value:It!=null?It:dn}),jn=(0,Ke.useEvent)(be=>{Ut==null||Ut(be),pe==null||pe(be),wn(be)}),bn=Ne()(an,ut,vn,{[`${on}-rtl`]:Kt==="rtl"}),Tn=(0,ye.Z)({arrowPointAtCenter:typeof Ye=="object"&&Ye.pointAtCenter,autoAdjustOverflow:ft,offset:nn.marginXXS,arrowWidth:Ye?nn.sizePopupArrow:0,borderRadius:nn.borderRadius}),Kn=ne.useCallback(()=>{wn(!1)},[]),ve=()=>{let be;return Ce!=null&&Ce.items?be=ne.createElement(qe.default,Object.assign({},Ce)):typeof Rt=="function"?be=Rt():be=Rt,jt&&(be=jt(be)),be=ne.Children.only(typeof be=="string"?ne.createElement("span",null,be):be),ne.createElement(ot.J,{prefixCls:`${on}-menu`,expandIcon:ne.createElement("span",{className:`${on}-menu-submenu-arrow`},ne.createElement(ce.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Kn,validator:Le=>{let{mode:et}=Le}},be)};return Pn(ne.createElement(yt,Object.assign({alignPoint:yn},(0,Qe.Z)(he,["rootClassName"]),{mouseEnterDelay:xe,mouseLeaveDelay:Ve,visible:un,builtinPlacements:Tn,arrow:!!Ye,overlayClassName:bn,prefixCls:on,getPopupContainer:Ht||Ot,transitionName:Vt,trigger:hn,overlay:ve,placement:ln,onVisibleChange:jn}),cn))};function St(he){return Object.assign(Object.assign({},he),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Te=(0,Oe.Z)(zt,"dropdown",he=>he,St),fe=he=>ne.createElement(Te,Object.assign({},he),ne.createElement("span",null));zt._InternalPanelDoNotUseOrYouWillBeFired=fe;var Pe=zt},66748:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return dt}});var ne=oe(14747),ce=oe(67771),Xe=oe(33297),Ne=oe(50438),ue=oe(97414),Ee=oe(67968),le=oe(45503),je=Re=>{const{componentCls:De,menuCls:ae,colorError:a,colorTextLightSolid:y}=Re,E=`${ae}-item`;return{[`${De}, ${De}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Fe=Re=>{const{componentCls:De,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:se}=Re;return[{[De]:Object.assign(Object.assign({},(0,ne.Wf)(Re)),{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}},[`${De}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${De}-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${De}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${De}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${De}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottomRight`]:{animationName:ce.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-topRight`]:{animationName:ce.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottomRight`]:{animationName:ce.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-topRight`]:{animationName:ce.ly}})},(0,ue.ZP)(Re,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${De} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${De}, ${De}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:Re.borderRadiusLG,outline:"none",boxShadow:Re.boxShadowSecondary},(0,ne.Qy)(Re)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${me}px`,color:Re.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:Re.marginXS,fontSize:Re.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:Re.colorText,fontWeight:"normal",fontSize:te,lineHeight:Re.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Re.borderRadiusSM,"&:hover, &-active":{backgroundColor:Re.controlItemBgHover}},(0,ne.Qy)(Re)),{"&-selected":{color:Re.colorPrimary,backgroundColor:Re.controlItemBgActive,"&:hover, &-active":{backgroundColor:Re.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Re.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Re.colorSplit},[`${De}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Re.paddingXS,[`${De}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Re.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Re.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:me+Re.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${De}-menu-submenu-title`]:{[`&, ${De}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${De}-menu-submenu-title`]:{color:Re.colorPrimary}})}},[(0,ce.oN)(Re,"slide-up"),(0,ce.oN)(Re,"slide-down"),(0,Xe.Fm)(Re,"move-up"),(0,Xe.Fm)(Re,"move-down"),(0,Ne._y)(Re,"zoom-big")]]};var dt=(0,Ee.Z)("Dropdown",(Re,De)=>{let{rootPrefixCls:ae}=De;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Re,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ue.fS)({contentRadius:te}),ge=(0,le.TS)(Re,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Fe(ge),je(ge)]},Re=>({zIndexPopup:Re.zIndexPopupBase+50}))},71322:function(ze,lt,oe){"use strict";oe.d(lt,{D:function(){return x},Z:function(){return te}});var ne=oe(87462),ce=oe(67294),Xe={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"},Ne=Xe,ue=oe(74643),Ee=function(ie,ge){return ce.createElement(ue.Z,(0,ne.Z)({},ie,{ref:ge,icon:Ne}))},le=ce.forwardRef(Ee),We=oe(22751),je=oe(91034),Fe=oe(94184),dt=oe.n(Fe),Re=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ie){var ge={};for(var me in re)Object.prototype.hasOwnProperty.call(re,me)&&ie.indexOf(me)<0&&(ge[me]=re[me]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,me=Object.getOwnPropertySymbols(re);se<me.length;se++)ie.indexOf(me[se])<0&&Object.prototype.propertyIsEnumerable.call(re,me[se])&&(ge[me[se]]=re[me[se]]);return ge};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ce.createContext({}),z=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var te=ce.forwardRef((re,ie)=>{const{prefixCls:ge,className:me,trigger:se,children:Be,defaultCollapsed:Me=!1,theme:rt="dark",style:Bt={},collapsible:Mt=!1,reverseArrow:we=!1,width:ke=200,collapsedWidth:Ge=80,zeroWidthTriggerStyle:_e,breakpoint:at,onCollapse:yt,onBreakpoint:Ke}=re,st=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,ce.useContext)(y.Gs),[ye,Oe]=(0,ce.useState)("collapsed"in re?re.collapsed:Me),[Ue,Et]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in re&&Oe(re.collapsed)},[re.collapsed]);const qe=(St,Te)=>{"collapsed"in re||Oe(St),yt==null||yt(St,Te)},ot=(0,ce.useRef)();ot.current=St=>{Et(St.matches),Ke==null||Ke(St.matches),ye!==St.matches&&qe(St.matches,"responsive")},(0,ce.useEffect)(()=>{function St(fe){return ot.current(fe)}let Te;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&at&&at in b){Te=fe(`(max-width: ${b[at]})`);try{Te.addEventListener("change",St)}catch(Pe){Te.addListener(St)}St(Te)}}return()=>{try{Te==null||Te.removeEventListener("change",St)}catch(fe){Te==null||Te.removeListener(St)}}},[at]),(0,ce.useEffect)(()=>{const St=z("ant-sider-");return Qe.addSider(St),()=>Qe.removeSider(St)},[]);const de=()=>{qe(!ye,"clickTrigger")},{getPrefixCls:gt}=(0,ce.useContext)(a.E_),pt=()=>{const St=gt("layout-sider",ge),Te=(0,Re.Z)(st,["collapsed"]),fe=ye?Ge:ke,Pe=ae(fe)?`${fe}px`:String(fe),he=parseFloat(String(Ge||0))===0?ce.createElement("span",{onClick:de,className:dt()(`${St}-zero-width-trigger`,`${St}-zero-width-trigger-${we?"right":"left"}`),style:_e},se||ce.createElement(le,null)):null,tt={expanded:we?ce.createElement(je.Z,null):ce.createElement(We.Z,null),collapsed:we?ce.createElement(We.Z,null):ce.createElement(je.Z,null)}[ye?"collapsed":"expanded"],vt=se!==null?he||ce.createElement("div",{className:`${St}-trigger`,onClick:de,style:{width:Pe}},se||tt):null,bt=Object.assign(Object.assign({},Bt),{flex:`0 0 ${Pe}`,maxWidth:Pe,minWidth:Pe,width:Pe}),At=dt()(St,`${St}-${rt}`,{[`${St}-collapsed`]:!!ye,[`${St}-has-trigger`]:Mt&&se!==null&&!he,[`${St}-below`]:!!Ue,[`${St}-zero-width`]:parseFloat(Pe)===0},me);return ce.createElement("aside",Object.assign({className:At},Te,{style:bt,ref:ie}),ce.createElement("div",{className:`${St}-children`},Be),Mt||Ue&&he?vt:null)},zt=ce.useMemo(()=>({siderCollapsed:ye}),[ye]);return ce.createElement(x.Provider,{value:zt},pt())})},84321:function(ze,lt,oe){"use strict";oe.d(lt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return De},ZP:function(){return ee}});var ne=oe(74902),ce=oe(94184),Xe=oe.n(ce),Ne=oe(10366),ue=oe(67294),Ee=oe(53124),le=oe(67968),je=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:Be,headerHeight:Me,headerPadding:rt,headerColor:Bt,footerPadding:Mt,triggerHeight:we,zeroTriggerHeight:ke,zeroTriggerWidth:Ge,motionDurationMid:_e,motionDurationSlow:at,fontSize:yt,borderRadius:Ke,bodyBg:st,headerBg:Qe,siderBg:ye}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:st,"&, *":{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:ye,transition:`all ${_e}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:we},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:we,color:me,lineHeight:`${we}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${_e}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-Ge,zIndex:1,width:Ge,height:ke,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:Ke,borderEndEndRadius:Ke,borderEndStartRadius:0,cursor:"pointer",transition:`background ${at} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${at}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ge,borderStartStartRadius:Ke,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ke}}}}},je(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Me,padding:rt,color:Bt,lineHeight:`${Me}px`,background:Qe,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Mt,color:ge,fontSize:yt,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var dt=(0,le.Z)("Layout",te=>[Fe(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:se,marginXXS:Be,colorTextLightSolid:Me,colorBgContainer:rt}=te,Bt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Bt}px`,headerColor:me,footerPadding:`${se}px ${Bt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Be*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:rt,lightTriggerBg:rt,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Re=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 De=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return me=>ue.forwardRef((Be,Me)=>ue.createElement(me,Object.assign({ref:Me,suffixCls:re,tagName:ie},Be)))}const a=ue.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:se}=te,Be=Re(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=ue.useContext(Ee.E_),rt=Me("layout",ie),[Bt,Mt]=dt(rt),we=ge?`${rt}-${ge}`:rt;return Bt(ue.createElement(se,Object.assign({className:Xe()(ie||we,me,Mt),ref:re},Be)))}),y=ue.forwardRef((te,re)=>{const{direction:ie}=ue.useContext(Ee.E_),[ge,me]=ue.useState([]),{prefixCls:se,className:Be,rootClassName:Me,children:rt,hasSider:Bt,tagName:Mt,style:we}=te,ke=Re(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ge=(0,Ne.Z)(ke,["suffixCls"]),{getPrefixCls:_e,layout:at}=ue.useContext(Ee.E_),yt=_e("layout",se),[Ke,st]=dt(yt),Qe=Xe()(yt,{[`${yt}-has-sider`]:typeof Bt=="boolean"?Bt:ge.length>0,[`${yt}-rtl`]:ie==="rtl"},at==null?void 0:at.className,Be,Me,st),ye=ue.useMemo(()=>({siderHook:{addSider:Oe=>{me(Ue=>[].concat((0,ne.Z)(Ue),[Oe]))},removeSider:Oe=>{me(Ue=>Ue.filter(Et=>Et!==Oe))}}}),[]);return Ke(ue.createElement(De.Provider,{value:ye},ue.createElement(Mt,Object.assign({ref:re,className:Qe,style:Object.assign(Object.assign({},at==null?void 0:at.style),we)},Ge),rt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(ze,lt,oe){"use strict";oe.d(lt,{J:function(){return Ee}});var ne=oe(67294),ce=oe(4173),Xe=oe(60276),Ne=function(le,We){var je={};for(var Fe in le)Object.prototype.hasOwnProperty.call(le,Fe)&&We.indexOf(Fe)<0&&(je[Fe]=le[Fe]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Fe=Object.getOwnPropertySymbols(le);dt<Fe.length;dt++)We.indexOf(Fe[dt])<0&&Object.prototype.propertyIsEnumerable.call(le,Fe[dt])&&(je[Fe[dt]]=le[Fe[dt]]);return je};const ue=ne.createContext(null),Ee=ne.forwardRef((le,We)=>{const{children:je}=le,Fe=Ne(le,["children"]),dt=ne.useContext(ue),Re=ne.useMemo(()=>Object.assign(Object.assign({},dt),Fe),[dt,Fe.prefixCls,Fe.mode,Fe.selectable]);return ne.createElement(ue.Provider,{value:Re},ne.createElement(ce.BR,null,(0,Xe.supportNodeRef)(je)?ne.cloneElement(je,{ref:We}):je))});lt.Z=ue},68508:function(ze,lt,oe){"use strict";oe.d(lt,{default:function(){return St}});var ne=oe(78595),ce=oe(67294),Xe=oe(71322),Ne=oe(94184),ue=oe.n(Ne),Ee=oe(53124),le=function(Te,fe){var Pe={};for(var he in Te)Object.prototype.hasOwnProperty.call(Te,he)&&fe.indexOf(he)<0&&(Pe[he]=Te[he]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,he=Object.getOwnPropertySymbols(Te);Ce<he.length;Ce++)fe.indexOf(he[Ce])<0&&Object.prototype.propertyIsEnumerable.call(Te,he[Ce])&&(Pe[he[Ce]]=Te[he[Ce]]);return Pe},je=Te=>{const{prefixCls:fe,className:Pe,dashed:he}=Te,Ce=le(Te,["prefixCls","className","dashed"]),{getPrefixCls:Ye}=ce.useContext(Ee.E_),tt=Ye("menu",fe),vt=ue()({[`${tt}-item-divider-dashed`]:!!he},Pe);return ce.createElement(ne.iz,Object.assign({className:vt},Ce))},Fe=oe(37419),dt=oe(10366),Re=oe(83062),De=oe(96159),a=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Te=>{var fe;const{className:Pe,children:he,icon:Ce,title:Ye,danger:tt}=Te,{prefixCls:vt,firstLevel:bt,direction:At,disableMenuItemTitleTooltip:jt,inlineCollapsed:Ht}=ce.useContext(a),an=xe=>{const Ve=ce.createElement("span",{className:`${vt}-title-content`},he);return(!Ce||(0,De.l$)(he)&&he.type==="span")&&he&&xe&&bt&&typeof he=="string"?ce.createElement("div",{className:`${vt}-inline-collapsed-noicon`},he.charAt(0)):Ve},{siderCollapsed:ut}=ce.useContext(Xe.D);let It=Ye;typeof Ye=="undefined"?It=bt?he:"":Ye===!1&&(It="");const Ut={title:It};!ut&&!Ht&&(Ut.title=null,Ut.open=!1);const dn=(0,Fe.Z)(he).length;let pe=ce.createElement(ne.ck,Object.assign({},(0,dt.Z)(Te,["title","icon","danger"]),{className:ue()({[`${vt}-item-danger`]:tt,[`${vt}-item-only-child`]:(Ce?dn+1:dn)===1},Pe),title:typeof Ye=="string"?Ye:void 0}),(0,De.Tm)(Ce,{className:ue()((0,De.l$)(Ce)?(fe=Ce.props)===null||fe===void 0?void 0:fe.className:"",`${vt}-item-icon`)}),an(Ht));return jt||(pe=ce.createElement(Re.Z,Object.assign({},Ut,{placement:At==="rtl"?"left":"right",overlayClassName:`${vt}-inline-collapsed-tooltip`}),pe)),pe},x=Te=>{var fe;const{popupClassName:Pe,icon:he,title:Ce,theme:Ye}=Te,tt=ce.useContext(a),{prefixCls:vt,inlineCollapsed:bt,theme:At}=tt,jt=(0,ne.Xl)();let Ht;if(!he)Ht=bt&&!jt.length&&Ce&&typeof Ce=="string"?ce.createElement("div",{className:`${vt}-inline-collapsed-noicon`},Ce.charAt(0)):ce.createElement("span",{className:`${vt}-title-content`},Ce);else{const ut=(0,De.l$)(Ce)&&Ce.type==="span";Ht=ce.createElement(ce.Fragment,null,(0,De.Tm)(he,{className:ue()((0,De.l$)(he)?(fe=he.props)===null||fe===void 0?void 0:fe.className:"",`${vt}-item-icon`)}),ut?Ce:ce.createElement("span",{className:`${vt}-title-content`},Ce))}const an=ce.useMemo(()=>Object.assign(Object.assign({},tt),{firstLevel:!1}),[tt]);return ce.createElement(a.Provider,{value:an},ce.createElement(ne.Wd,Object.assign({},(0,dt.Z)(Te,["icon"]),{title:Ht,popupClassName:ue()(vt,Pe,`${vt}-${Ye||At}`)})))},z=oe(25877),ee=oe(60276),te=oe(33603),re=oe(76529),ie=function(Te,fe){var Pe={};for(var he in Te)Object.prototype.hasOwnProperty.call(Te,he)&&fe.indexOf(he)<0&&(Pe[he]=Te[he]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,he=Object.getOwnPropertySymbols(Te);Ce<he.length;Ce++)fe.indexOf(he[Ce])<0&&Object.prototype.propertyIsEnumerable.call(Te,he[Ce])&&(Pe[he[Ce]]=Te[he[Ce]]);return Pe};function ge(Te){return(Te||[]).map((fe,Pe)=>{if(fe&&typeof fe=="object"){const he=fe,{label:Ce,children:Ye,key:tt,type:vt}=he,bt=ie(he,["label","children","key","type"]),At=tt!=null?tt:`tmp-${Pe}`;return Ye||vt==="group"?vt==="group"?ce.createElement(ne.BW,Object.assign({key:At},bt,{title:Ce}),ge(Ye)):ce.createElement(x,Object.assign({key:At},bt,{title:Ce}),ge(Ye)):vt==="divider"?ce.createElement(je,Object.assign({key:At},bt)):ce.createElement(E,Object.assign({key:At},bt),Ce)}return null}).filter(fe=>fe)}function me(Te){return ce.useMemo(()=>Te&&ge(Te),[Te])}var se=oe(84780),Be=oe(14747),Me=oe(33507),rt=oe(67771),Bt=oe(50438),Mt=oe(67968),we=oe(45503),Ge=Te=>{const{componentCls:fe,motionDurationSlow:Pe,horizontalLineHeight:he,colorSplit:Ce,lineWidth:Ye,lineType:tt,itemPaddingInline:vt}=Te;return{[`${fe}-horizontal`]:{lineHeight:he,border:0,borderBottom:`${Ye}px ${tt} ${Ce}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${fe}-item, ${fe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:vt},[`> ${fe}-item:hover,
> ${fe}-item-active,
> ${fe}-submenu ${fe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${fe}-item, ${fe}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${fe}-submenu-arrow`]:{display:"none"}}}},at=Te=>{let{componentCls:fe,menuArrowOffset:Pe}=Te;return{[`${fe}-rtl`]:{direction:"rtl"},[`${fe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${fe}-rtl${fe}-vertical,
${fe}-submenu-rtl ${fe}-vertical`]:{[`${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const yt=Te=>Object.assign({},(0,Be.oN)(Te));var st=(Te,fe)=>{const{componentCls:Pe,itemColor:he,itemSelectedColor:Ce,groupTitleColor:Ye,itemBg:tt,subMenuItemBg:vt,itemSelectedBg:bt,activeBarHeight:At,activeBarWidth:jt,activeBarBorderWidth:Ht,motionDurationSlow:an,motionEaseInOut:ut,motionEaseOut:It,itemPaddingInline:Ut,motionDurationMid:dn,itemHoverColor:pe,lineType:xe,colorSplit:Ve,itemDisabledColor:ft,dangerItemColor:ht,dangerItemHoverColor:Rt,dangerItemSelectedColor:kt,dangerItemActiveBg:Ot,dangerItemSelectedBg:Tt,itemHoverBg:Kt,itemActiveBg:Vt,menuSubMenuBg:ln,horizontalItemSelectedColor:on,horizontalItemSelectedBg:Pn,horizontalItemBorderRadius:vn,horizontalItemHoverBg:nn,popupBg:qt}=Te;return{[`${Pe}-${fe}, ${Pe}-${fe} > ${Pe}`]:{color:he,background:tt,[`&${Pe}-root:focus-visible`]:Object.assign({},yt(Te)),[`${Pe}-item-group-title`]:{color:Ye},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:Ce}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${ft} !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:Kt},"&:active":{backgroundColor:Vt}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Vt}}},[`${Pe}-item-danger`]:{color:ht,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Rt}},[`&${Pe}-item:active`]:{background:Ot}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:Ce,[`&${Pe}-item-danger`]:{color:kt},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:bt,[`&${Pe}-item-danger`]:{backgroundColor:Tt}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},yt(Te))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:ln},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:qt},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},fe==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:Ht,marginTop:-Ht,marginBottom:0,borderRadius:vn,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${At}px solid transparent`,transition:`border-color ${an} ${ut}`,content:'""'},"&:hover, &-active, &-open":{background:nn,"&::after":{borderBottomWidth:At,borderBottomColor:on}},"&-selected":{color:on,backgroundColor:Pn,"&:hover":{backgroundColor:Pn},"&::after":{borderBottomWidth:At,borderBottomColor:on}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${Ht}px ${xe} ${Ve}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:vt},[`${Pe}-item, ${Pe}-submenu-title`]:Ht&&jt?{width:`calc(100% + ${Ht}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${jt}px solid ${Ce}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${dn} ${It}`,`opacity ${dn} ${It}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:kt}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${dn} ${ut}`,`opacity ${dn} ${ut}`].join(",")}}}}}};const Qe=Te=>{const{componentCls:fe,itemHeight:Pe,itemMarginInline:he,padding:Ce,menuArrowSize:Ye,marginXS:tt,itemMarginBlock:vt}=Te,bt=Ce+Ye+tt;return{[`${fe}-item`]:{position:"relative",overflow:"hidden"},[`${fe}-item, ${fe}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:Ce,overflow:"hidden",textOverflow:"ellipsis",marginInline:he,marginBlock:vt,width:`calc(100% - ${he*2}px)`},[`> ${fe}-item,
> ${fe}-submenu > ${fe}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${fe}-item-group-list ${fe}-submenu-title,
${fe}-submenu-title`]:{paddingInlineEnd:bt}}};var Oe=Te=>{const{componentCls:fe,iconCls:Pe,itemHeight:he,colorTextLightSolid:Ce,dropdownWidth:Ye,controlHeightLG:tt,motionDurationMid:vt,motionEaseOut:bt,paddingXL:At,itemMarginInline:jt,fontSizeLG:Ht,motionDurationSlow:an,paddingXS:ut,boxShadowSecondary:It,collapsedWidth:Ut,collapsedIconSize:dn}=Te,pe={height:he,lineHeight:`${he}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[fe]:{"&-inline, &-vertical":Object.assign({[`&${fe}-root`]:{boxShadow:"none"}},Qe(Te))},[`${fe}-submenu-popup`]:{[`${fe}-vertical`]:Object.assign(Object.assign({},Qe(Te)),{boxShadow:It})}},{[`${fe}-submenu-popup ${fe}-vertical${fe}-sub`]:{minWidth:Ye,maxHeight:`calc(100vh - ${tt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${fe}-inline`]:{width:"100%",[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${an}`,`background ${an}`,`padding ${vt} ${bt}`].join(","),[`> ${fe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${fe}-sub${fe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${fe}-submenu > ${fe}-submenu-title`]:pe,[`& ${fe}-item-group-title`]:{paddingInlineStart:At}},[`${fe}-item`]:pe}},{[`${fe}-inline-collapsed`]:{width:Ut,[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu ${fe}-submenu-title`]:{[`> ${fe}-inline-collapsed-noicon`]:{fontSize:Ht,textAlign:"center"}}},[`> ${fe}-item,
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-item,
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-submenu > ${fe}-submenu-title,
> ${fe}-submenu > ${fe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ht/2}px - ${jt}px)`,textOverflow:"clip",[`
${fe}-submenu-arrow,
${fe}-submenu-expand-icon
`]:{opacity:0},[`${fe}-item-icon, ${Pe}`]:{margin:0,fontSize:dn,lineHeight:`${he}px`,"+ span":{display:"inline-block",opacity:0}}},[`${fe}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${fe}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:Ce}},[`${fe}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:ut})}}]};const Ue=Te=>{const{componentCls:fe,motionDurationSlow:Pe,motionDurationMid:he,motionEaseInOut:Ce,motionEaseOut:Ye,iconCls:tt,iconSize:vt,iconMarginInlineEnd:bt}=Te;return{[`${fe}-item, ${fe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${Ce}`].join(","),[`${fe}-item-icon, ${tt}`]:{minWidth:vt,fontSize:vt,transition:[`font-size ${he} ${Ye}`,`margin ${Pe} ${Ce}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${Pe} ${Ce}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${fe}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${fe}-item-only-child`]:{[`> ${tt}, > ${fe}-item-icon`]:{marginInlineEnd:0}}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${fe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Et=Te=>{const{componentCls:fe,motionDurationSlow:Pe,motionEaseInOut:he,borderRadius:Ce,menuArrowSize:Ye,menuArrowOffset:tt}=Te;return{[`${fe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Te.margin,width:Ye,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${he}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ye*.6,height:Ye*.15,backgroundColor:"currentcolor",borderRadius:Ce,transition:[`background ${Pe} ${he}`,`transform ${Pe} ${he}`,`top ${Pe} ${he}`,`color ${Pe} ${he}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${tt})`},"&::after":{transform:`rotate(-45deg) translateY(${tt})`}}}}},qe=Te=>{const{antCls:fe,componentCls:Pe,fontSize:he,motionDurationSlow:Ce,motionDurationMid:Ye,motionEaseInOut:tt,paddingXS:vt,padding:bt,colorSplit:At,lineWidth:jt,zIndexPopup:Ht,borderRadiusLG:an,subMenuItemBorderRadius:ut,menuArrowSize:It,menuArrowOffset:Ut,lineType:dn,menuPanelMaskInset:pe,groupTitleLineHeight:xe,groupTitleFontSize:Ve}=Te;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${Pe}-submenu-hidden`]:{display:"none"}},{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(Te)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:he,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ce} 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:Te.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${vt}px ${bt}px`,fontSize:Ve,lineHeight:xe,transition:`all ${Ce}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${Ce} ${tt}`,`background ${Ce} ${tt}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${Ce} ${tt}`,`background ${Ce} ${tt}`,`padding ${Ye} ${tt}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${Ce} ${tt}`,`padding ${Ce} ${tt}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${Ce}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:At,borderStyle:dn,borderWidth:0,borderTopWidth:jt,marginBlock:jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ue(Te)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${he*2}px ${bt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:an,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:Te.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Te.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Te.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Te.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:an},Ue(Te)),Et(Te)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:ut},[`${Pe}-submenu-title::after`]:{transition:`transform ${Ce} ${tt}`}})}}),Et(Te)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ut})`},"&::after":{transform:`rotate(45deg) translateX(-${Ut})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${It*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ut})`},"&::before":{transform:`rotate(45deg) translateX(${Ut})`}}})},{[`${fe}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var ot=(Te,fe)=>(0,Mt.Z)("Menu",he=>{if(fe===!1)return[];const{colorBgElevated:Ce,colorPrimary:Ye,colorTextLightSolid:tt,controlHeightLG:vt,fontSize:bt,darkItemColor:At,darkDangerItemColor:jt,darkItemBg:Ht,darkSubMenuItemBg:an,darkItemSelectedColor:ut,darkItemSelectedBg:It,darkDangerItemSelectedBg:Ut,darkItemHoverBg:dn,darkGroupTitleColor:pe,darkItemHoverColor:xe,darkItemDisabledColor:Ve,darkDangerItemHoverColor:ft,darkDangerItemSelectedColor:ht,darkDangerItemActiveBg:Rt}=he,kt=bt/7*5,Ot=(0,we.TS)(he,{menuArrowSize:kt,menuHorizontalHeight:vt*1.15,menuArrowOffset:`${kt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ce}),Tt=(0,we.TS)(Ot,{itemColor:At,itemHoverColor:xe,groupTitleColor:pe,itemSelectedColor:ut,itemBg:Ht,popupBg:Ht,subMenuItemBg:an,itemActiveBg:"transparent",itemSelectedBg:It,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:dn,itemDisabledColor:Ve,dangerItemColor:jt,dangerItemHoverColor:ft,dangerItemSelectedColor:ht,dangerItemActiveBg:Rt,dangerItemSelectedBg:Ut,menuSubMenuBg:an,horizontalItemSelectedColor:tt,horizontalItemSelectedBg:Ye});return[qe(Ot),Ge(Ot),Oe(Ot),st(Ot,"light"),st(Tt,"dark"),at(Ot),(0,Me.Z)(Ot),(0,rt.oN)(Ot,"slide-up"),(0,rt.oN)(Ot,"slide-down"),(0,Bt._y)(Ot,"zoom-big")]},he=>{const{colorPrimary:Ce,colorError:Ye,colorTextDisabled:tt,colorErrorBg:vt,colorText:bt,colorTextDescription:At,colorBgContainer:jt,colorFillAlter:Ht,colorFillContent:an,lineWidth:ut,lineWidthBold:It,controlItemBgActive:Ut,colorBgTextHover:dn,controlHeightLG:pe,lineHeight:xe,colorBgElevated:Ve,marginXXS:ft,padding:ht,fontSize:Rt,controlHeightSM:kt,fontSizeLG:Ot,colorTextLightSolid:Tt,colorErrorHover:Kt}=he,Vt=new se.C(Tt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:he.zIndexPopupBase+50,radiusItem:he.borderRadiusLG,itemBorderRadius:he.borderRadiusLG,radiusSubMenuItem:he.borderRadiusSM,subMenuItemBorderRadius:he.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:Ce,horizontalItemHoverColor:Ce,colorGroupTitle:At,groupTitleColor:At,colorItemTextSelected:Ce,itemSelectedColor:Ce,colorItemTextSelectedHorizontal:Ce,horizontalItemSelectedColor:Ce,colorItemBg:jt,itemBg:jt,colorItemBgHover:dn,itemHoverBg:dn,colorItemBgActive:an,itemActiveBg:Ut,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:Ut,itemSelectedBg:Ut,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:It,activeBarHeight:It,colorActiveBarBorderSize:ut,activeBarBorderWidth:ut,colorItemTextDisabled:tt,itemDisabledColor:tt,colorDangerItemText:Ye,dangerItemColor:Ye,colorDangerItemTextHover:Ye,dangerItemHoverColor:Ye,colorDangerItemTextSelected:Ye,dangerItemSelectedColor:Ye,colorDangerItemBgActive:vt,dangerItemActiveBg:vt,colorDangerItemBgSelected:vt,dangerItemSelectedBg:vt,itemMarginInline:he.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pe,groupTitleLineHeight:xe,collapsedWidth:pe*2,popupBg:Ve,itemMarginBlock:ft,itemPaddingInline:ht,horizontalLineHeight:`${pe*1.15}px`,iconSize:Rt,iconMarginInlineEnd:kt-Rt,collapsedIconSize:Ot,groupTitleFontSize:Rt,darkItemDisabledColor:new se.C(Tt).setAlpha(.25).toRgbString(),darkItemColor:Vt,darkDangerItemColor:Ye,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Tt,darkItemSelectedBg:Ce,darkDangerItemSelectedBg:Ye,darkItemHoverBg:"transparent",darkGroupTitleColor:Vt,darkItemHoverColor:Tt,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Tt,darkDangerItemActiveBg:Ye}},{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"]]})(Te),de=function(Te,fe){var Pe={};for(var he in Te)Object.prototype.hasOwnProperty.call(Te,he)&&fe.indexOf(he)<0&&(Pe[he]=Te[he]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,he=Object.getOwnPropertySymbols(Te);Ce<he.length;Ce++)fe.indexOf(he[Ce])<0&&Object.prototype.propertyIsEnumerable.call(Te,he[Ce])&&(Pe[he[Ce]]=Te[he[Ce]]);return Pe},pt=(0,ce.forwardRef)((Te,fe)=>{var Pe,he;const Ce=ce.useContext(re.Z),Ye=Ce||{},{getPrefixCls:tt,getPopupContainer:vt,direction:bt,menu:At}=ce.useContext(Ee.E_),jt=tt(),{prefixCls:Ht,className:an,style:ut,theme:It="light",expandIcon:Ut,_internalDisableMenuItemTitleTooltip:dn,inlineCollapsed:pe,siderCollapsed:xe,items:Ve,children:ft,rootClassName:ht,mode:Rt,selectable:kt,onClick:Ot,overflowedIndicatorPopupClassName:Tt}=Te,Kt=de(Te,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Vt=(0,dt.Z)(Kt,["collapsedWidth"]),ln=me(Ve)||ft;(Pe=Ye.validator)===null||Pe===void 0||Pe.call(Ye,{mode:Rt});const on=(0,ee.useEvent)(function(){var bn;Ot==null||Ot.apply(void 0,arguments),(bn=Ye.onClick)===null||bn===void 0||bn.call(Ye)}),Pn=Ye.mode||Rt,vn=kt!=null?kt:Ye.selectable,nn=ce.useMemo(()=>xe!==void 0?xe:pe,[pe,xe]),qt={horizontal:{motionName:`${jt}-slide-up`},inline:(0,te.Z)(jt),other:{motionName:`${jt}-zoom-big`}},cn=tt("menu",Ht||Ye.prefixCls),[hn,yn]=ot(cn,!Ce),un=ue()(`${cn}-${It}`,At==null?void 0:At.className,an);let wn;if(typeof Ut=="function")wn=Ut;else if(Ut===null||Ut===!1)wn=null;else if(Ye.expandIcon===null||Ye.expandIcon===!1)wn=null;else{const bn=Ut!=null?Ut:Ye.expandIcon;wn=(0,De.Tm)(bn,{className:ue()(`${cn}-submenu-expand-icon`,(0,De.l$)(bn)?(he=bn.props)===null||he===void 0?void 0:he.className:"")})}const jn=ce.useMemo(()=>({prefixCls:cn,inlineCollapsed:nn||!1,direction:bt,firstLevel:!0,theme:It,mode:Pn,disableMenuItemTitleTooltip:dn}),[cn,nn,bt,dn,It]);return hn(ce.createElement(re.Z.Provider,{value:null},ce.createElement(a.Provider,{value:jn},ce.createElement(ne.ZP,Object.assign({getPopupContainer:vt,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:ue()(cn,`${cn}-${It}`,Tt),mode:Pn,selectable:vn,onClick:on},Vt,{inlineCollapsed:nn,style:Object.assign(Object.assign({},At==null?void 0:At.style),ut),className:un,prefixCls:cn,direction:bt,defaultMotions:qt,expandIcon:wn,ref:fe,rootClassName:ue()(ht,yn)}),ln))))});const zt=(0,ce.forwardRef)((Te,fe)=>{const Pe=(0,ce.useRef)(null),he=ce.useContext(Xe.D);return(0,ce.useImperativeHandle)(fe,()=>({menu:Pe.current,focus:Ce=>{var Ye;(Ye=Pe.current)===null||Ye===void 0||Ye.focus(Ce)}})),ce.createElement(pt,Object.assign({ref:Pe},Te,he))});zt.Item=E,zt.SubMenu=x,zt.Divider=je,zt.ItemGroup=ne.BW;var St=zt},38703:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return dn}});var ne=oe(67294),ce=oe(87725),Xe=oe(18299),Ne=oe(16646),ue=oe(73475),Ee=oe(94184),le=oe.n(Ee),We=oe(10366),je=oe(53124),Fe=oe(87462),dt=oe(1413),Re=oe(45987),De={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var xe=(0,ne.useRef)([]),Ve=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var ft=Date.now(),ht=!1;xe.current.forEach(function(Rt){if(Rt){ht=!0;var kt=Rt.style;kt.transitionDuration=".3s, .3s, .3s, .06s",Ve.current&&ft-Ve.current<100&&(kt.transitionDuration="0s, 0s")}}),ht&&(Ve.current=Date.now())}),xe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(xe){var Ve=(0,dt.Z)((0,dt.Z)({},De),xe),ft=Ve.className,ht=Ve.percent,Rt=Ve.prefixCls,kt=Ve.strokeColor,Ot=Ve.strokeLinecap,Tt=Ve.strokeWidth,Kt=Ve.style,Vt=Ve.trailColor,ln=Ve.trailWidth,on=Ve.transition,Pn=(0,Re.Z)(Ve,a);delete Pn.gapPosition;var vn=Array.isArray(ht)?ht:[ht],nn=Array.isArray(kt)?kt:[kt],qt=ae(),cn=Tt/2,hn=100-Tt/2,yn="M ".concat(Ot==="round"?cn:0,",").concat(cn,`
L `).concat(Ot==="round"?hn:100,",").concat(cn),un="0 0 100 ".concat(Tt),wn=0;return ne.createElement("svg",(0,Fe.Z)({className:le()("".concat(Rt,"-line"),ft),viewBox:un,preserveAspectRatio:"none",style:Kt},Pn),ne.createElement("path",{className:"".concat(Rt,"-line-trail"),d:yn,strokeLinecap:Ot,stroke:Vt,strokeWidth:ln||Tt,fillOpacity:"0"}),vn.map(function(jn,bn){var Tn=1;switch(Ot){case"round":Tn=1-Tt/100;break;case"square":Tn=1-Tt/2/100;break;default:Tn=1;break}var Kn={strokeDasharray:"".concat(jn*Tn,"px, 100px"),strokeDashoffset:"-".concat(wn,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ve=nn[bn]||nn[nn.length-1];return wn+=jn,ne.createElement("path",{key:bn,className:"".concat(Rt,"-line-path"),d:yn,strokeLinecap:Ot,stroke:ve,strokeWidth:Tt,fillOpacity:"0",ref:function(Le){qt[bn]=Le},style:Kn})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,te=(0,z.Z)();function re(){var pe;return te?(pe=ee,ee+=1):pe="TEST_OR_SSR",pe}var ie=function(pe){var xe=ne.useState(),Ve=(0,x.Z)(xe,2),ft=Ve[0],ht=Ve[1];return ne.useEffect(function(){ht("rc_progress_".concat(re()))},[]),pe||ft},ge=function(xe){var Ve=xe.bg,ft=xe.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Ve}},ft)};function me(pe,xe){return Object.keys(pe).map(function(Ve){var ft=parseFloat(Ve),ht="".concat(Math.floor(ft*xe),"%");return"".concat(pe[Ve]," ").concat(ht)})}var se=ne.forwardRef(function(pe,xe){var Ve=pe.prefixCls,ft=pe.color,ht=pe.gradientId,Rt=pe.radius,kt=pe.style,Ot=pe.ptg,Tt=pe.strokeLinecap,Kt=pe.strokeWidth,Vt=pe.size,ln=pe.gapDegree,on=ft&&(0,b.Z)(ft)==="object",Pn=on?"#FFF":void 0,vn=Vt/2,nn=ne.createElement("circle",{className:"".concat(Ve,"-circle-path"),r:Rt,cx:vn,cy:vn,stroke:Pn,strokeLinecap:Tt,strokeWidth:Kt,opacity:Ot===0?0:1,style:kt,ref:xe});if(!on)return nn;var qt="".concat(ht,"-conic"),cn=ln?"".concat(180+ln/2,"deg"):"0deg",hn=me(ft,(360-ln)/360),yn=me(ft,1),un="conic-gradient(from ".concat(cn,", ").concat(hn.join(", "),")"),wn="linear-gradient(to ".concat(ln?"bottom":"top",", ").concat(yn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:qt},nn),ne.createElement("foreignObject",{x:0,y:0,width:Vt,height:Vt,mask:"url(#".concat(qt,")")},ne.createElement(ge,{bg:wn},ne.createElement(ge,{bg:un}))))}),Be=se,Me=100,rt=function(xe,Ve,ft,ht,Rt,kt,Ot,Tt,Kt,Vt){var ln=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=ft/100*360*((360-kt)/360),Pn=kt===0?0:{bottom:0,top:180,left:90,right:-90}[Ot],vn=(100-ht)/100*Ve;Kt==="round"&&ht!==100&&(vn+=Vt/2,vn>=Ve&&(vn=Ve-.01));var nn=Me/2;return{stroke:typeof Tt=="string"?Tt:void 0,strokeDasharray:"".concat(Ve,"px ").concat(xe),strokeDashoffset:vn+ln,transform:"rotate(".concat(Rt+on+Pn,"deg)"),transformOrigin:"".concat(nn,"px ").concat(nn,"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}},Bt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Mt(pe){var xe=pe!=null?pe:[];return Array.isArray(xe)?xe:[xe]}var we=function(xe){var Ve=(0,dt.Z)((0,dt.Z)({},De),xe),ft=Ve.id,ht=Ve.prefixCls,Rt=Ve.steps,kt=Ve.strokeWidth,Ot=Ve.trailWidth,Tt=Ve.gapDegree,Kt=Tt===void 0?0:Tt,Vt=Ve.gapPosition,ln=Ve.trailColor,on=Ve.strokeLinecap,Pn=Ve.style,vn=Ve.className,nn=Ve.strokeColor,qt=Ve.percent,cn=(0,Re.Z)(Ve,Bt),hn=Me/2,yn=ie(ft),un="".concat(yn,"-gradient"),wn=hn-kt/2,jn=Math.PI*2*wn,bn=Kt>0?90+Kt/2:-90,Tn=jn*((360-Kt)/360),Kn=(0,b.Z)(Rt)==="object"?Rt:{count:Rt,space:2},ve=Kn.count,be=Kn.space,Le=Mt(qt),et=Mt(nn),Lt=et.find(function(Dn){return Dn&&(0,b.Z)(Dn)==="object"}),Ct=Lt&&(0,b.Z)(Lt)==="object",sn=Ct?"butt":on,tn=rt(jn,Tn,0,100,bn,Kt,Vt,ln,sn,kt),Wt=ae(),En=function(){var mt=0;return Le.map(function(en,Se){var Ie=et[Se]||et[et.length-1],$e=rt(jn,Tn,mt,en,bn,Kt,Vt,Ie,sn,kt);return mt+=en,ne.createElement(Be,{key:Se,color:Ie,ptg:en,radius:wn,prefixCls:ht,gradientId:un,style:$e,strokeLinecap:sn,strokeWidth:kt,gapDegree:Kt,ref:function(ct){Wt[Se]=ct},size:Me})}).reverse()},Yn=function(){var mt=Math.round(ve*(Le[0]/100)),en=100/ve,Se=0;return new Array(ve).fill(null).map(function(Ie,$e){var Ae=$e<=mt-1?et[0]:ln,ct=Ae&&(0,b.Z)(Ae)==="object"?"url(#".concat(un,")"):void 0,Je=rt(jn,Tn,Se,en,bn,Kt,Vt,Ae,"butt",kt,be);return Se+=(Tn-Je.strokeDashoffset+be)*100/Tn,ne.createElement("circle",{key:$e,className:"".concat(ht,"-circle-path"),r:wn,cx:hn,cy:hn,stroke:ct,strokeWidth:kt,opacity:1,style:Je,ref:function(Ze){Wt[$e]=Ze}})})};return ne.createElement("svg",(0,Fe.Z)({className:le()("".concat(ht,"-circle"),vn),viewBox:"0 0 ".concat(Me," ").concat(Me),style:Pn,id:ft,role:"presentation"},cn),!ve&&ne.createElement("circle",{className:"".concat(ht,"-circle-trail"),r:wn,cx:hn,cy:hn,stroke:ln,strokeLinecap:sn,strokeWidth:Ot||kt,style:tn}),ve?Yn():En())},ke=we,Ge={Line:E,Circle:ke},_e=oe(83062),at=oe(47448);function yt(pe){return!pe||pe<0?0:pe>100?100:pe}function Ke(pe){let{success:xe,successPercent:Ve}=pe,ft=Ve;return xe&&"progress"in xe&&(ft=xe.progress),xe&&"percent"in xe&&(ft=xe.percent),ft}const st=pe=>{let{percent:xe,success:Ve,successPercent:ft}=pe;const ht=yt(Ke({success:Ve,successPercent:ft}));return[ht,yt(yt(xe)-ht)]},Qe=pe=>{let{success:xe={},strokeColor:Ve}=pe;const{strokeColor:ft}=xe;return[ft||at.presetPrimaryColors.green,Ve||null]},ye=(pe,xe,Ve)=>{var ft,ht,Rt,kt;let Ot=-1,Tt=-1;if(xe==="step"){const Kt=Ve.steps,Vt=Ve.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?(Ot=pe==="small"?2:14,Tt=Vt!=null?Vt:8):typeof pe=="number"?[Ot,Tt]=[pe,pe]:[Ot=14,Tt=8]=pe,Ot*=Kt}else if(xe==="line"){const Kt=Ve==null?void 0:Ve.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?Tt=Kt||(pe==="small"?6:8):typeof pe=="number"?[Ot,Tt]=[pe,pe]:[Ot=-1,Tt=8]=pe}else(xe==="circle"||xe==="dashboard")&&(typeof pe=="string"||typeof pe=="undefined"?[Ot,Tt]=pe==="small"?[60,60]:[120,120]:typeof pe=="number"?[Ot,Tt]=[pe,pe]:(Ot=(ht=(ft=pe[0])!==null&&ft!==void 0?ft:pe[1])!==null&&ht!==void 0?ht:120,Tt=(kt=(Rt=pe[0])!==null&&Rt!==void 0?Rt:pe[1])!==null&&kt!==void 0?kt:120));return[Ot,Tt]},Oe=3,Ue=pe=>Oe/pe*100;var qe=pe=>{const{prefixCls:xe,trailColor:Ve=null,strokeLinecap:ft="round",gapPosition:ht,gapDegree:Rt,width:kt=120,type:Ot,children:Tt,success:Kt,size:Vt=kt}=pe,[ln,on]=ye(Vt,"circle");let{strokeWidth:Pn}=pe;Pn===void 0&&(Pn=Math.max(Ue(ln),6));const vn={width:ln,height:on,fontSize:ln*.15+6},nn=ne.useMemo(()=>{if(Rt||Rt===0)return Rt;if(Ot==="dashboard")return 75},[Rt,Ot]),qt=ht||Ot==="dashboard"&&"bottom"||void 0,cn=Object.prototype.toString.call(pe.strokeColor)==="[object Object]",hn=Qe({success:Kt,strokeColor:pe.strokeColor}),yn=le()(`${xe}-inner`,{[`${xe}-circle-gradient`]:cn}),un=ne.createElement(ke,{percent:st(pe),strokeWidth:Pn,trailWidth:Pn,strokeColor:hn,strokeLinecap:ft,trailColor:Ve,prefixCls:xe,gapDegree:nn,gapPosition:qt});return ne.createElement("div",{className:yn,style:vn},ln<=20?ne.createElement(_e.Z,{title:Tt},ne.createElement("span",null,un)):ne.createElement(ne.Fragment,null,un,Tt))},ot=function(pe,xe){var Ve={};for(var ft in pe)Object.prototype.hasOwnProperty.call(pe,ft)&&xe.indexOf(ft)<0&&(Ve[ft]=pe[ft]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ft=Object.getOwnPropertySymbols(pe);ht<ft.length;ht++)xe.indexOf(ft[ht])<0&&Object.prototype.propertyIsEnumerable.call(pe,ft[ht])&&(Ve[ft[ht]]=pe[ft[ht]]);return Ve};const de=pe=>{let xe=[];return Object.keys(pe).forEach(Ve=>{const ft=parseFloat(Ve.replace(/%/g,""));isNaN(ft)||xe.push({key:ft,value:pe[Ve]})}),xe=xe.sort((Ve,ft)=>Ve.key-ft.key),xe.map(Ve=>{let{key:ft,value:ht}=Ve;return`${ht} ${ft}%`}).join(", ")},gt=(pe,xe)=>{const{from:Ve=at.presetPrimaryColors.blue,to:ft=at.presetPrimaryColors.blue,direction:ht=xe==="rtl"?"to left":"to right"}=pe,Rt=ot(pe,["from","to","direction"]);if(Object.keys(Rt).length!==0){const kt=de(Rt);return{backgroundImage:`linear-gradient(${ht}, ${kt})`}}return{backgroundImage:`linear-gradient(${ht}, ${Ve}, ${ft})`}};var zt=pe=>{const{prefixCls:xe,direction:Ve,percent:ft,size:ht,strokeWidth:Rt,strokeColor:kt,strokeLinecap:Ot="round",children:Tt,trailColor:Kt=null,success:Vt}=pe,ln=kt&&typeof kt!="string"?gt(kt,Ve):{backgroundColor:kt},on=Ot==="square"||Ot==="butt"?0:void 0,Pn={backgroundColor:Kt||void 0,borderRadius:on},vn=ht!=null?ht:[-1,Rt||(ht==="small"?6:8)],[nn,qt]=ye(vn,"line",{strokeWidth:Rt}),cn=Object.assign({width:`${yt(ft)}%`,height:qt,borderRadius:on},ln),hn=Ke(pe),yn={width:`${yt(hn)}%`,height:qt,borderRadius:on,backgroundColor:Vt==null?void 0:Vt.strokeColor},un={width:nn<0?"100%":nn,height:qt};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${xe}-outer`,style:un},ne.createElement("div",{className:`${xe}-inner`,style:Pn},ne.createElement("div",{className:`${xe}-bg`,style:cn}),hn!==void 0?ne.createElement("div",{className:`${xe}-success-bg`,style:yn}):null)),Tt)},Te=pe=>{const{size:xe,steps:Ve,percent:ft=0,strokeWidth:ht=8,strokeColor:Rt,trailColor:kt=null,prefixCls:Ot,children:Tt}=pe,Kt=Math.round(Ve*(ft/100)),Vt=xe==="small"?2:14,ln=xe!=null?xe:[Vt,ht],[on,Pn]=ye(ln,"step",{steps:Ve,strokeWidth:ht}),vn=on/Ve,nn=new Array(Ve);for(let qt=0;qt<Ve;qt++){const cn=Array.isArray(Rt)?Rt[qt]:Rt;nn[qt]=ne.createElement("div",{key:qt,className:le()(`${Ot}-steps-item`,{[`${Ot}-steps-item-active`]:qt<=Kt-1}),style:{backgroundColor:qt<=Kt-1?cn:kt,width:vn,height:Pn}})}return ne.createElement("div",{className:`${Ot}-steps-outer`},nn,Tt)},fe=oe(45930),Pe=oe(14747),he=oe(67968),Ce=oe(45503);const Ye=pe=>{const xe=pe?"100%":"-100%";return new fe.Keyframes(`antProgress${pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},tt=pe=>{const{componentCls:xe,iconCls:Ve}=pe;return{[xe]: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},[`${xe}-outer`]:{display:"inline-block",width:"100%"},[`&${xe}-show-info`]:{[`${xe}-outer`]:{marginInlineEnd:`calc(-2em - ${pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${pe.paddingXS}px)`}},[`${xe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:pe.remainingColor,borderRadius:pe.lineBorderRadius},[`${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:pe.defaultColor}},[`${xe}-success-bg, ${xe}-bg`]:{position:"relative",backgroundColor:pe.defaultColor,borderRadius:pe.lineBorderRadius,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOutCirc}`},[`${xe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:pe.colorSuccess},[`${xe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:pe.marginXS,color:pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ve]:{fontSize:pe.fontSize}},[`&${xe}-status-active`]:{[`${xe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:pe.colorBgContainer,borderRadius:pe.lineBorderRadius,opacity:0,animationName:Ye(),animationDuration:pe.progressActiveMotionDuration,animationTimingFunction:pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xe}-rtl${xe}-status-active`]:{[`${xe}-bg::before`]:{animationName:Ye(!0)}},[`&${xe}-status-exception`]:{[`${xe}-bg`]:{backgroundColor:pe.colorError},[`${xe}-text`]:{color:pe.colorError}},[`&${xe}-status-exception ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:pe.colorError}},[`&${xe}-status-success`]:{[`${xe}-bg`]:{backgroundColor:pe.colorSuccess},[`${xe}-text`]:{color:pe.colorSuccess}},[`&${xe}-status-success ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:pe.colorSuccess}}})}},vt=pe=>{const{componentCls:xe,iconCls:Ve}=pe;return{[xe]:{[`${xe}-circle-trail`]:{stroke:pe.remainingColor},[`&${xe}-circle ${xe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xe}-circle ${xe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:pe.circleTextColor,fontSize:pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ve]:{fontSize:`${pe.fontSize/pe.fontSizeSM}em`}},[`${xe}-circle&-status-exception`]:{[`${xe}-text`]:{color:pe.colorError}},[`${xe}-circle&-status-success`]:{[`${xe}-text`]:{color:pe.colorSuccess}}},[`${xe}-inline-circle`]:{lineHeight:1,[`${xe}-inner`]:{verticalAlign:"bottom"}}}},bt=pe=>{const{componentCls:xe}=pe;return{[xe]:{[`${xe}-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}}}}}},At=pe=>{const{componentCls:xe,iconCls:Ve}=pe;return{[xe]:{[`${xe}-small&-line, ${xe}-small&-line ${xe}-text ${Ve}`]:{fontSize:pe.fontSizeSM}}}};var jt=(0,he.Z)("Progress",pe=>{const xe=pe.marginXXS/2,Ve=(0,Ce.TS)(pe,{progressStepMarginInlineEnd:xe,progressStepMinWidth:xe,progressActiveMotionDuration:"2.4s"});return[tt(Ve),vt(Ve),bt(Ve),At(Ve)]},pe=>({circleTextColor:pe.colorText,defaultColor:pe.colorInfo,remainingColor:pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ht=function(pe,xe){var Ve={};for(var ft in pe)Object.prototype.hasOwnProperty.call(pe,ft)&&xe.indexOf(ft)<0&&(Ve[ft]=pe[ft]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ft=Object.getOwnPropertySymbols(pe);ht<ft.length;ht++)xe.indexOf(ft[ht])<0&&Object.prototype.propertyIsEnumerable.call(pe,ft[ht])&&(Ve[ft[ht]]=pe[ft[ht]]);return Ve};const an=null,ut=["normal","exception","active","success"];var Ut=ne.forwardRef((pe,xe)=>{const{prefixCls:Ve,className:ft,rootClassName:ht,steps:Rt,strokeColor:kt,percent:Ot=0,size:Tt="default",showInfo:Kt=!0,type:Vt="line",status:ln,format:on,style:Pn}=pe,vn=Ht(pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),nn=ne.useMemo(()=>{var Le,et;const Lt=Ke(pe);return parseInt(Lt!==void 0?(Le=Lt!=null?Lt:0)===null||Le===void 0?void 0:Le.toString():(et=Ot!=null?Ot:0)===null||et===void 0?void 0:et.toString(),10)},[Ot,pe.success,pe.successPercent]),qt=ne.useMemo(()=>!ut.includes(ln)&&nn>=100?"success":ln||"normal",[ln,nn]),{getPrefixCls:cn,direction:hn,progress:yn}=ne.useContext(je.E_),un=cn("progress",Ve),[wn,jn]=jt(un),bn=ne.useMemo(()=>{if(!Kt)return null;const Le=Ke(pe);let et;const Lt=on||(sn=>`${sn}%`),Ct=Vt==="line";return on||qt!=="exception"&&qt!=="success"?et=Lt(yt(Ot),yt(Le)):qt==="exception"?et=Ct?ne.createElement(Ne.Z,null):ne.createElement(ue.Z,null):qt==="success"&&(et=Ct?ne.createElement(ce.Z,null):ne.createElement(Xe.Z,null)),ne.createElement("span",{className:`${un}-text`,title:typeof et=="string"?et:void 0},et)},[Kt,Ot,nn,qt,Vt,un,on]),Tn=Array.isArray(kt)?kt[0]:kt,Kn=typeof kt=="string"||Array.isArray(kt)?kt:void 0;let ve;Vt==="line"?ve=Rt?ne.createElement(Te,Object.assign({},pe,{strokeColor:Kn,prefixCls:un,steps:Rt}),bn):ne.createElement(zt,Object.assign({},pe,{strokeColor:Tn,prefixCls:un,direction:hn}),bn):(Vt==="circle"||Vt==="dashboard")&&(ve=ne.createElement(qe,Object.assign({},pe,{strokeColor:Tn,prefixCls:un,progressStatus:qt}),bn));const be=le()(un,`${un}-status-${qt}`,`${un}-${Vt==="dashboard"&&"circle"||Rt&&"steps"||Vt}`,{[`${un}-inline-circle`]:Vt==="circle"&&ye(Tt,"circle")[0]<=20,[`${un}-show-info`]:Kt,[`${un}-${Tt}`]:typeof Tt=="string",[`${un}-rtl`]:hn==="rtl"},yn==null?void 0:yn.className,ft,ht,jn);return wn(ne.createElement("div",Object.assign({ref:xe,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),Pn),className:be,role:"progressbar","aria-valuenow":nn},(0,We.Z)(vn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ve))}),dn=Ut},59810:function(ze,lt,oe){"use strict";oe.d(lt,{default:function(){return en}});var ne=oe(67294),ce=oe(74902),Xe=oe(94184),Ne=oe.n(Xe),ue=oe(87462),Ee=oe(15671),le=oe(43144),We=oe(60136),je=oe(51630),Fe=oe(4942),dt=oe(45987),Re=oe(74165),De=oe(71002),ae=oe(15861),a=oe(64217);function y(Se,Ie){var $e="cannot ".concat(Se.method," ").concat(Se.action," ").concat(Ie.status,"'"),Ae=new Error($e);return Ae.status=Ie.status,Ae.method=Se.method,Ae.url=Se.action,Ae}function E(Se){var Ie=Se.responseText||Se.response;if(!Ie)return Ie;try{return JSON.parse(Ie)}catch($e){return Ie}}function b(Se){var Ie=new XMLHttpRequest;Se.onProgress&&Ie.upload&&(Ie.upload.onprogress=function(Je){Je.total>0&&(Je.percent=Je.loaded/Je.total*100),Se.onProgress(Je)});var $e=new FormData;Se.data&&Object.keys(Se.data).forEach(function(ct){var Je=Se.data[ct];if(Array.isArray(Je)){Je.forEach(function(it){$e.append("".concat(ct,"[]"),it)});return}$e.append(ct,Je)}),Se.file instanceof Blob?$e.append(Se.filename,Se.file,Se.file.name):$e.append(Se.filename,Se.file),Ie.onerror=function(Je){Se.onError(Je)},Ie.onload=function(){return Ie.status<200||Ie.status>=300?Se.onError(y(Se,Ie),E(Ie)):Se.onSuccess(E(Ie),Ie)},Ie.open(Se.method,Se.action,!0),Se.withCredentials&&"withCredentials"in Ie&&(Ie.withCredentials=!0);var Ae=Se.headers||{};return Ae["X-Requested-With"]!==null&&Ie.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ae).forEach(function(ct){Ae[ct]!==null&&Ie.setRequestHeader(ct,Ae[ct])}),Ie.send($e),{abort:function(){Ie.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(80334),re=function(Se,Ie){if(Se&&Ie){var $e=Array.isArray(Ie)?Ie:Ie.split(","),Ae=Se.name||"",ct=Se.type||"",Je=ct.replace(/\/.*$/,"");return $e.some(function(it){var Ze=it.trim();if(/^\*(\/\*)?$/.test(it))return!0;if(Ze.charAt(0)==="."){var _t=Ae.toLowerCase(),Nt=Ze.toLowerCase(),Xt=[Nt];return(Nt===".jpg"||Nt===".jpeg")&&(Xt=[".jpg",".jpeg"]),Xt.some(function(rn){return _t.endsWith(rn)})}return/\/\*$/.test(Ze)?Je===Ze.replace(/\/.*$/,""):ct===Ze?!0:/^\w+$/.test(Ze)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ze,"'.Skip for check.")),!0):!1})}return!0};function ie(Se,Ie){var $e=Se.createReader(),Ae=[];function ct(){$e.readEntries(function(Je){var it=Array.prototype.slice.apply(Je);Ae=Ae.concat(it);var Ze=!it.length;Ze?Ie(Ae):ct()})}ct()}var ge=function(Ie,$e,Ae){var ct=function Je(it,Ze){it&&(it.path=Ze||"",it.isFile?it.file(function(_t){Ae(_t)&&(it.fullPath&&!_t.webkitRelativePath&&(Object.defineProperties(_t,{webkitRelativePath:{writable:!0}}),_t.webkitRelativePath=it.fullPath.replace(/^\//,""),Object.defineProperties(_t,{webkitRelativePath:{writable:!1}})),$e([_t]))}):it.isDirectory&&ie(it,function(_t){_t.forEach(function(Nt){Je(Nt,"".concat(Ze).concat(it.name,"/"))})}))};Ie.forEach(function(Je){ct(Je.webkitGetAsEntry())})},me=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(Se){(0,We.Z)($e,Se);var Ie=(0,je.Z)($e);function $e(){var Ae;(0,Ee.Z)(this,$e);for(var ct=arguments.length,Je=new Array(ct),it=0;it<ct;it++)Je[it]=arguments[it];return Ae=Ie.call.apply(Ie,[this].concat(Je)),Ae.state={uid:ee()},Ae.reqs={},Ae.fileInput=void 0,Ae._isMounted=void 0,Ae.onChange=function(Ze){var _t=Ae.props,Nt=_t.accept,Xt=_t.directory,rn=Ze.target.files,He=(0,ce.Z)(rn).filter(function(fn){return!Xt||re(fn,Nt)});Ae.uploadFiles(He),Ae.reset()},Ae.onClick=function(Ze){var _t=Ae.fileInput;if(_t){var Nt=Ae.props,Xt=Nt.children,rn=Nt.onClick;if(Xt&&Xt.type==="button"){var He=_t.parentNode;He.focus(),He.querySelector("button").blur()}_t.click(),rn&&rn(Ze)}},Ae.onKeyDown=function(Ze){Ze.key==="Enter"&&Ae.onClick(Ze)},Ae.onFileDrop=function(Ze){var _t=Ae.props.multiple;if(Ze.preventDefault(),Ze.type!=="dragover")if(Ae.props.directory)me(Array.prototype.slice.call(Ze.dataTransfer.items),Ae.uploadFiles,function(Xt){return re(Xt,Ae.props.accept)});else{var Nt=(0,ce.Z)(Ze.dataTransfer.files).filter(function(Xt){return re(Xt,Ae.props.accept)});_t===!1&&(Nt=Nt.slice(0,1)),Ae.uploadFiles(Nt)}},Ae.uploadFiles=function(Ze){var _t=(0,ce.Z)(Ze),Nt=_t.map(function(Xt){return Xt.uid=ee(),Ae.processFile(Xt,_t)});Promise.all(Nt).then(function(Xt){var rn=Ae.props.onBatchStart;rn==null||rn(Xt.map(function(He){var fn=He.origin,zn=He.parsedFile;return{file:fn,parsedFile:zn}})),Xt.filter(function(He){return He.parsedFile!==null}).forEach(function(He){Ae.post(He)})})},Ae.processFile=function(){var Ze=(0,ae.Z)((0,Re.Z)().mark(function _t(Nt,Xt){var rn,He,fn,zn,Rn,In,Cn,nt,$t;return(0,Re.Z)().wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(rn=Ae.props.beforeUpload,He=Nt,!rn){Pt.next=14;break}return Pt.prev=3,Pt.next=6,rn(Nt,Xt);case 6:He=Pt.sent,Pt.next=12;break;case 9:Pt.prev=9,Pt.t0=Pt.catch(3),He=!1;case 12:if(He!==!1){Pt.next=14;break}return Pt.abrupt("return",{origin:Nt,parsedFile:null,action:null,data:null});case 14:if(fn=Ae.props.action,typeof fn!="function"){Pt.next=21;break}return Pt.next=18,fn(Nt);case 18:zn=Pt.sent,Pt.next=22;break;case 21:zn=fn;case 22:if(Rn=Ae.props.data,typeof Rn!="function"){Pt.next=29;break}return Pt.next=26,Rn(Nt);case 26:In=Pt.sent,Pt.next=30;break;case 29:In=Rn;case 30:return Cn=((0,De.Z)(He)==="object"||typeof He=="string")&&He?He:Nt,Cn instanceof File?nt=Cn:nt=new File([Cn],Nt.name,{type:Nt.type}),$t=nt,$t.uid=Nt.uid,Pt.abrupt("return",{origin:Nt,data:In,parsedFile:$t,action:zn});case 35:case"end":return Pt.stop()}},_t,null,[[3,9]])}));return function(_t,Nt){return Ze.apply(this,arguments)}}(),Ae.saveFileInput=function(Ze){Ae.fileInput=Ze},Ae}return(0,le.Z)($e,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ct){var Je=this,it=ct.data,Ze=ct.origin,_t=ct.action,Nt=ct.parsedFile;if(this._isMounted){var Xt=this.props,rn=Xt.onStart,He=Xt.customRequest,fn=Xt.name,zn=Xt.headers,Rn=Xt.withCredentials,In=Xt.method,Cn=Ze.uid,nt=He||b,$t={action:_t,filename:fn,data:it,file:Nt,headers:zn,withCredentials:Rn,method:In||"post",onProgress:function(Pt){var mn=Je.props.onProgress;mn==null||mn(Pt,Nt)},onSuccess:function(Pt,mn){var gn=Je.props.onSuccess;gn==null||gn(Pt,Nt,mn),delete Je.reqs[Cn]},onError:function(Pt,mn){var gn=Je.props.onError;gn==null||gn(Pt,mn,Nt),delete Je.reqs[Cn]}};rn(Ze),this.reqs[Cn]=nt($t)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ct){var Je=this.reqs;if(ct){var it=ct.uid?ct.uid:ct;Je[it]&&Je[it].abort&&Je[it].abort(),delete Je[it]}else Object.keys(Je).forEach(function(Ze){Je[Ze]&&Je[Ze].abort&&Je[Ze].abort(),delete Je[Ze]})}},{key:"render",value:function(){var ct,Je=this.props,it=Je.component,Ze=Je.prefixCls,_t=Je.className,Nt=Je.disabled,Xt=Je.id,rn=Je.style,He=Je.multiple,fn=Je.accept,zn=Je.capture,Rn=Je.children,In=Je.directory,Cn=Je.openFileDialogOnClick,nt=Je.onMouseEnter,$t=Je.onMouseLeave,xt=(0,dt.Z)(Je,se),Pt=Ne()((ct={},(0,Fe.Z)(ct,Ze,!0),(0,Fe.Z)(ct,"".concat(Ze,"-disabled"),Nt),(0,Fe.Z)(ct,_t,_t),ct)),mn=In?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},gn=Nt?{}:{onClick:Cn?this.onClick:function(){},onKeyDown:Cn?this.onKeyDown:function(){},onMouseEnter:nt,onMouseLeave:$t,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(it,(0,ue.Z)({},gn,{className:Pt,role:"button",style:rn}),ne.createElement("input",(0,ue.Z)({},(0,a.Z)(xt,{aria:!0,data:!0}),{id:Xt,disabled:Nt,type:"file",ref:this.saveFileInput,onClick:function(Fn){return Fn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:fn},mn,{multiple:He,onChange:this.onChange},zn!=null?{capture:zn}:{})),Rn)}}]),$e}(ne.Component),Me=Be;function rt(){}var Bt=function(Se){(0,We.Z)($e,Se);var Ie=(0,je.Z)($e);function $e(){var Ae;(0,Ee.Z)(this,$e);for(var ct=arguments.length,Je=new Array(ct),it=0;it<ct;it++)Je[it]=arguments[it];return Ae=Ie.call.apply(Ie,[this].concat(Je)),Ae.uploader=void 0,Ae.saveUploader=function(Ze){Ae.uploader=Ze},Ae}return(0,le.Z)($e,[{key:"abort",value:function(ct){this.uploader.abort(ct)}},{key:"render",value:function(){return ne.createElement(Me,(0,ue.Z)({},this.props,{ref:this.saveUploader}))}}]),$e}(ne.Component);Bt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:rt,onError:rt,onSuccess:rt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Mt=Bt,we=Mt,ke=oe(5663),Ge=oe(73935),_e=oe(53124),at=oe(98866),yt=oe(10110),Ke=oe(24457),st={icon:function(Ie,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ie}}]}},name:"file",theme:"twotone"},Qe=st,ye=oe(74643),Oe=function(Ie,$e){return ne.createElement(ye.Z,(0,ue.Z)({},Ie,{ref:$e,icon:Qe}))},Ue=ne.forwardRef(Oe),Et=oe(3407),qe={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"},ot=qe,de=function(Ie,$e){return ne.createElement(ye.Z,(0,ue.Z)({},Ie,{ref:$e,icon:ot}))},gt=ne.forwardRef(de),pt={icon:function(Ie,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ie}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:$e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ie}}]}},name:"picture",theme:"twotone"},zt=pt,St=function(Ie,$e){return ne.createElement(ye.Z,(0,ue.Z)({},Ie,{ref:$e,icon:zt}))},Te=ne.forwardRef(St),fe=oe(38379),Pe=oe(57838),he=oe(33603),Ce=oe(96159),Ye=oe(71577);function tt(Se){return Object.assign(Object.assign({},Se),{lastModified:Se.lastModified,lastModifiedDate:Se.lastModifiedDate,name:Se.name,size:Se.size,type:Se.type,uid:Se.uid,percent:0,originFileObj:Se})}function vt(Se,Ie){const $e=(0,ce.Z)(Ie),Ae=$e.findIndex(ct=>{let{uid:Je}=ct;return Je===Se.uid});return Ae===-1?$e.push(Se):$e[Ae]=Se,$e}function bt(Se,Ie){const $e=Se.uid!==void 0?"uid":"name";return Ie.filter(Ae=>Ae[$e]===Se[$e])[0]}function At(Se,Ie){const $e=Se.uid!==void 0?"uid":"name",Ae=Ie.filter(ct=>ct[$e]!==Se[$e]);return Ae.length===Ie.length?null:Ae}const jt=function(){const Ie=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ae=Ie[Ie.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ae)||[""])[0]},Ht=Se=>Se.indexOf("image/")===0,an=Se=>{if(Se.type&&!Se.thumbUrl)return Ht(Se.type);const Ie=Se.thumbUrl||Se.url||"",$e=jt(Ie);return/^data:image\//.test(Ie)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($e)?!0:!(/^data:/.test(Ie)||$e)},ut=200;function It(Se){return new Promise(Ie=>{if(!Se.type||!Ht(Se.type)){Ie("");return}const $e=document.createElement("canvas");$e.width=ut,$e.height=ut,$e.style.cssText=`position: fixed; left: 0; top: 0; width: ${ut}px; height: ${ut}px; z-index: 9999; display: none;`,document.body.appendChild($e);const Ae=$e.getContext("2d"),ct=new Image;if(ct.onload=()=>{const{width:Je,height:it}=ct;let Ze=ut,_t=ut,Nt=0,Xt=0;Je>it?(_t=it*(ut/Je),Xt=-(_t-Ze)/2):(Ze=Je*(ut/it),Nt=-(Ze-_t)/2),Ae.drawImage(ct,Nt,Xt,Ze,_t);const rn=$e.toDataURL();document.body.removeChild($e),window.URL.revokeObjectURL(ct.src),Ie(rn)},ct.crossOrigin="anonymous",Se.type.startsWith("image/svg+xml")){const Je=new FileReader;Je.onload=()=>{Je.result&&(ct.src=Je.result)},Je.readAsDataURL(Se)}else if(Se.type.startsWith("image/gif")){const Je=new FileReader;Je.onload=()=>{Je.result&&Ie(Je.result)},Je.readAsDataURL(Se)}else ct.src=window.URL.createObjectURL(Se)})}var Ut=oe(84249),dn=oe(90674),pe=oe(99569),xe=oe(38703),Ve=oe(83062),ht=ne.forwardRef((Se,Ie)=>{let{prefixCls:$e,className:Ae,style:ct,locale:Je,listType:it,file:Ze,items:_t,progress:Nt,iconRender:Xt,actionIconRender:rn,itemRender:He,isImgUrl:fn,showPreviewIcon:zn,showRemoveIcon:Rn,showDownloadIcon:In,previewIcon:Cn,removeIcon:nt,downloadIcon:$t,onPreview:xt,onDownload:Pt,onClose:mn}=Se;var gn,xn;const{status:Fn}=Ze,[Gn,ea]=ne.useState(Fn);ne.useEffect(()=>{Fn!=="removed"&&ea(Fn)},[Fn]);const[oa,ua]=ne.useState(!1);ne.useEffect(()=>{const Mn=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(Mn)}},[]);const ra=Xt(Ze);let Xn=ne.createElement("div",{className:`${$e}-icon`},ra);if(it==="picture"||it==="picture-card"||it==="picture-circle")if(Gn==="uploading"||!Ze.thumbUrl&&!Ze.url){const Mn=Ne()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:Gn!=="uploading"});Xn=ne.createElement("div",{className:Mn},ra)}else{const Mn=fn!=null&&fn(Ze)?ne.createElement("img",{src:Ze.thumbUrl||Ze.url,alt:Ze.name,className:`${$e}-list-item-image`,crossOrigin:Ze.crossOrigin}):ra,On=Ne()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:fn&&!fn(Ze)});Xn=ne.createElement("a",{className:On,onClick:ga=>xt(Ze,ga),href:Ze.url||Ze.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const Bn=Ne()(`${$e}-list-item`,`${$e}-list-item-${Gn}`),la=typeof Ze.linkProps=="string"?JSON.parse(Ze.linkProps):Ze.linkProps,sa=Rn?rn((typeof nt=="function"?nt(Ze):nt)||ne.createElement(Ut.Z,null),()=>mn(Ze),$e,Je.removeFile):null,Qn=In&&Gn==="done"?rn((typeof $t=="function"?$t(Ze):$t)||ne.createElement(dn.Z,null),()=>Pt(Ze),$e,Je.downloadFile):null,qn=it!=="picture-card"&&it!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Ne()(`${$e}-list-item-actions`,{picture:it==="picture"})},Qn,sa),Wn=Ne()(`${$e}-list-item-name`),ia=Ze.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:Ze.name},la,{href:Ze.url,onClick:Mn=>xt(Ze,Mn)}),Ze.name),qn]:[ne.createElement("span",{key:"view",className:Wn,onClick:Mn=>xt(Ze,Mn),title:Ze.name},Ze.name),qn],Jt={pointerEvents:"none",opacity:.5},$n=zn?ne.createElement("a",{href:Ze.url||Ze.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ze.url||Ze.thumbUrl?void 0:Jt,onClick:Mn=>xt(Ze,Mn),title:Je.previewFile},typeof Cn=="function"?Cn(Ze):Cn||ne.createElement(pe.Z,null)):null,Vn=(it==="picture-card"||it==="picture-circle")&&Gn!=="uploading"&&ne.createElement("span",{className:`${$e}-list-item-actions`},$n,Gn==="done"&&Qn,sa),{getPrefixCls:Zn}=ne.useContext(_e.E_),Un=Zn(),ta=ne.createElement("div",{className:Bn},Xn,ia,Vn,oa&&ne.createElement(fe.default,{motionName:`${Un}-fade`,visible:Gn==="uploading",motionDeadline:2e3},Mn=>{let{className:On}=Mn;const ga="percent"in Ze?ne.createElement(xe.Z,Object.assign({},Nt,{type:"line",percent:Ze.percent,"aria-label":Ze["aria-label"],"aria-labelledby":Ze["aria-labelledby"]})):null;return ne.createElement("div",{className:Ne()(`${$e}-list-item-progress`,On)},ga)})),na=Ze.response&&typeof Ze.response=="string"?Ze.response:((gn=Ze.error)===null||gn===void 0?void 0:gn.statusText)||((xn=Ze.error)===null||xn===void 0?void 0:xn.message)||Je.uploadError,ca=Gn==="error"?ne.createElement(Ve.Z,{title:na,getPopupContainer:Mn=>Mn.parentNode},ta):ta;return ne.createElement("div",{className:Ne()(`${$e}-list-item-container`,Ae),style:ct,ref:Ie},He?He(ca,Ze,_t,{download:Pt.bind(null,Ze),preview:xt.bind(null,Ze),remove:mn.bind(null,Ze)}):ca)});const Rt=(Se,Ie)=>{const{listType:$e="text",previewFile:Ae=It,onPreview:ct,onDownload:Je,onRemove:it,locale:Ze,iconRender:_t,isImageUrl:Nt=an,prefixCls:Xt,items:rn=[],showPreviewIcon:He=!0,showRemoveIcon:fn=!0,showDownloadIcon:zn=!1,removeIcon:Rn,previewIcon:In,downloadIcon:Cn,progress:nt={size:[-1,2],showInfo:!1},appendAction:$t,appendActionVisible:xt=!0,itemRender:Pt,disabled:mn}=Se,gn=(0,Pe.Z)(),[xn,Fn]=ne.useState(!1);ne.useEffect(()=>{$e!=="picture"&&$e!=="picture-card"&&$e!=="picture-circle"||(rn||[]).forEach(Jt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Jt.originFileObj instanceof File||Jt.originFileObj instanceof Blob)||Jt.thumbUrl!==void 0||(Jt.thumbUrl="",Ae&&Ae(Jt.originFileObj).then($n=>{Jt.thumbUrl=$n||"",gn()}))})},[$e,rn,Ae]),ne.useEffect(()=>{Fn(!0)},[]);const Gn=(Jt,$n)=>{if(ct)return $n==null||$n.preventDefault(),ct(Jt)},ea=Jt=>{typeof Je=="function"?Je(Jt):Jt.url&&window.open(Jt.url)},oa=Jt=>{it==null||it(Jt)},ua=Jt=>{if(_t)return _t(Jt,$e);const $n=Jt.status==="uploading",Vn=Nt&&Nt(Jt)?ne.createElement(Te,null):ne.createElement(Ue,null);let Zn=$n?ne.createElement(Et.Z,null):ne.createElement(gt,null);return $e==="picture"?Zn=$n?ne.createElement(Et.Z,null):Vn:($e==="picture-card"||$e==="picture-circle")&&(Zn=$n?Ze.uploading:Vn),Zn},ra=(Jt,$n,Vn,Zn)=>{const Un={type:"text",size:"small",title:Zn,onClick:ta=>{$n(),(0,Ce.l$)(Jt)&&Jt.props.onClick&&Jt.props.onClick(ta)},className:`${Vn}-list-item-action`,disabled:mn};if((0,Ce.l$)(Jt)){const ta=(0,Ce.Tm)(Jt,Object.assign(Object.assign({},Jt.props),{onClick:()=>{}}));return ne.createElement(Ye.ZP,Object.assign({},Un,{icon:ta}))}return ne.createElement(Ye.ZP,Object.assign({},Un),ne.createElement("span",null,Jt))};ne.useImperativeHandle(Ie,()=>({handlePreview:Gn,handleDownload:ea}));const{getPrefixCls:Xn}=ne.useContext(_e.E_),Bn=Xn("upload",Xt),la=Xn(),sa=Ne()(`${Bn}-list`,`${Bn}-list-${$e}`),Qn=(0,ce.Z)(rn.map(Jt=>({key:Jt.uid,file:Jt})));let Wn={motionDeadline:2e3,motionName:`${Bn}-${$e==="picture-card"||$e==="picture-circle"?"animate-inline":"animate"}`,keys:Qn,motionAppear:xn};const ia=ne.useMemo(()=>{const Jt=Object.assign({},(0,he.Z)(la));return delete Jt.onAppearEnd,delete Jt.onEnterEnd,delete Jt.onLeaveEnd,Jt},[la]);return $e!=="picture-card"&&$e!=="picture-circle"&&(Wn=Object.assign(Object.assign({},ia),Wn)),ne.createElement("div",{className:sa},ne.createElement(fe.CSSMotionList,Object.assign({},Wn,{component:!1}),Jt=>{let{key:$n,file:Vn,className:Zn,style:Un}=Jt;return ne.createElement(ht,{key:$n,locale:Ze,prefixCls:Bn,className:Zn,style:Un,file:Vn,items:rn,progress:nt,listType:$e,isImgUrl:Nt,showPreviewIcon:He,showRemoveIcon:fn,showDownloadIcon:zn,removeIcon:Rn,previewIcon:In,downloadIcon:Cn,iconRender:ua,actionIconRender:ra,itemRender:Pt,onPreview:Gn,onDownload:ea,onClose:oa})}),$t&&ne.createElement(fe.default,Object.assign({},Wn,{visible:xt,forceRender:!0}),Jt=>{let{className:$n,style:Vn}=Jt;return(0,Ce.Tm)($t,Zn=>({className:Ne()(Zn.className,$n),style:Object.assign(Object.assign(Object.assign({},Vn),{pointerEvents:$n?"none":void 0}),Zn.style)}))}))};var Ot=ne.forwardRef(Rt),Tt=oe(14747),Kt=oe(33507),Vt=oe(67968),ln=oe(45503),Pn=Se=>{const{componentCls:Ie,iconCls:$e}=Se;return{[`${Ie}-wrapper`]:{[`${Ie}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[Ie]:{padding:`${Se.padding}px 0`},[`${Ie}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ie}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ie}-disabled):hover`]:{borderColor:Se.colorPrimaryHover},[`p${Ie}-drag-icon`]:{marginBottom:Se.margin,[$e]:{color:Se.colorPrimary,fontSize:Se.uploadThumbnailSize}},[`p${Ie}-text`]:{margin:`0 0 ${Se.marginXXS}px`,color:Se.colorTextHeading,fontSize:Se.fontSizeLG},[`p${Ie}-hint`]:{color:Se.colorTextDescription,fontSize:Se.fontSize},[`&${Ie}-disabled`]:{cursor:"not-allowed",[`p${Ie}-drag-icon ${$e},
p${Ie}-text,
p${Ie}-hint
`]:{color:Se.colorTextDisabled}}}}}},nn=Se=>{const{componentCls:Ie,antCls:$e,iconCls:Ae,fontSize:ct,lineHeight:Je}=Se,it=`${Ie}-list-item`,Ze=`${it}-actions`,_t=`${it}-action`,Nt=Math.round(ct*Je);return{[`${Ie}-wrapper`]:{[`${Ie}-list`]:Object.assign(Object.assign({},(0,Tt.dF)()),{lineHeight:Se.lineHeight,[it]:{position:"relative",height:Se.lineHeight*ct,marginTop:Se.marginXS,fontSize:ct,display:"flex",alignItems:"center",transition:`background-color ${Se.motionDurationSlow}`,"&:hover":{backgroundColor:Se.controlItemBgHover},[`${it}-name`]:Object.assign(Object.assign({},Tt.vS),{padding:`0 ${Se.paddingXS}px`,lineHeight:Je,flex:"auto",transition:`all ${Se.motionDurationSlow}`}),[Ze]:{[_t]:{opacity:0},[`${_t}${$e}-btn-sm`]:{height:Nt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${_t}:focus-visible,
&.picture ${_t}
`]:{opacity:1},[Ae]:{color:Se.actionsColor,transition:`all ${Se.motionDurationSlow}`},[`&:hover ${Ae}`]:{color:Se.colorText}},[`${Ie}-icon ${Ae}`]:{color:Se.colorTextDescription,fontSize:ct},[`${it}-progress`]:{position:"absolute",bottom:-Se.uploadProgressOffset,width:"100%",paddingInlineStart:ct+Se.paddingXS,fontSize:ct,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${it}:hover ${_t}`]:{opacity:1,color:Se.colorText},[`${it}-error`]:{color:Se.colorError,[`${it}-name, ${Ie}-icon ${Ae}`]:{color:Se.colorError},[Ze]:{[`${Ae}, ${Ae}:hover`]:{color:Se.colorError},[_t]:{opacity:1}}},[`${Ie}-list-item-container`]:{transition:`opacity ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},qt=oe(45930),cn=oe(16932);const hn=new qt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),yn=new qt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var wn=Se=>{const{componentCls:Ie}=Se,$e=`${Ie}-animate-inline`;return[{[`${Ie}-wrapper`]:{[`${$e}-appear, ${$e}-enter, ${$e}-leave`]:{animationDuration:Se.motionDurationSlow,animationTimingFunction:Se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${$e}-appear, ${$e}-enter`]:{animationName:hn},[`${$e}-leave`]:{animationName:yn}}},{[`${Ie}-wrapper`]:(0,cn.J$)(Se)},hn,yn]},jn=oe(47448),bn=oe(84780);const Tn=Se=>{const{componentCls:Ie,iconCls:$e,uploadThumbnailSize:Ae,uploadProgressOffset:ct}=Se,Je=`${Ie}-list`,it=`${Je}-item`;return{[`${Ie}-wrapper`]:{[`
${Je}${Je}-picture,
${Je}${Je}-picture-card,
${Je}${Je}-picture-circle
`]:{[it]:{position:"relative",height:Ae+Se.lineWidth*2+Se.paddingXS*2,padding:Se.paddingXS,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,"&:hover":{background:"transparent"},[`${it}-thumbnail`]:Object.assign(Object.assign({},Tt.vS),{width:Ae,height:Ae,lineHeight:`${Ae+Se.paddingSM}px`,textAlign:"center",flex:"none",[$e]:{fontSize:Se.fontSizeHeading2,color:Se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${it}-progress`]:{bottom:ct,width:`calc(100% - ${Se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ae+Se.paddingXS}},[`${it}-error`]:{borderColor:Se.colorError,[`${it}-thumbnail ${$e}`]:{[`svg path[fill='${jn.blue[0]}']`]:{fill:Se.colorErrorBg},[`svg path[fill='${jn.blue.primary}']`]:{fill:Se.colorError}}},[`${it}-uploading`]:{borderStyle:"dashed",[`${it}-name`]:{marginBottom:ct}}},[`${Je}${Je}-picture-circle ${it}`]:{[`&, &::before, ${it}-thumbnail`]:{borderRadius:"50%"}}}}},Kn=Se=>{const{componentCls:Ie,iconCls:$e,fontSizeLG:Ae,colorTextLightSolid:ct}=Se,Je=`${Ie}-list`,it=`${Je}-item`,Ze=Se.uploadPicCardSize;return{[`
${Ie}-wrapper${Ie}-picture-card-wrapper,
${Ie}-wrapper${Ie}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Tt.dF)()),{display:"inline-block",width:"100%",[`${Ie}${Ie}-select`]:{width:Ze,height:Ze,marginInlineEnd:Se.marginXS,marginBottom:Se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[`> ${Ie}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ie}-disabled):hover`]:{borderColor:Se.colorPrimary}},[`${Je}${Je}-picture-card, ${Je}${Je}-picture-circle`]:{[`${Je}-item-container`]:{display:"inline-block",width:Ze,height:Ze,marginBlock:`0 ${Se.marginXS}px`,marginInline:`0 ${Se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[it]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Se.paddingXS*2}px)`,height:`calc(100% - ${Se.paddingXS*2}px)`,backgroundColor:Se.colorBgMask,opacity:0,transition:`all ${Se.motionDurationSlow}`,content:'" "'}},[`${it}:hover`]:{[`&::before, ${it}-actions`]:{opacity:1}},[`${it}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Se.motionDurationSlow}`,[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{zIndex:10,width:Ae,margin:`0 ${Se.marginXXS}px`,fontSize:Ae,cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${it}-actions, ${it}-actions:hover`]:{[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{color:new bn.C(ct).setAlpha(.65).toRgbString(),"&:hover":{color:ct}}},[`${it}-thumbnail, ${it}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${it}-name`]:{display:"none",textAlign:"center"},[`${it}-file + ${it}-name`]:{position:"absolute",bottom:Se.margin,display:"block",width:`calc(100% - ${Se.paddingXS*2}px)`},[`${it}-uploading`]:{[`&${it}`]:{backgroundColor:Se.colorFillAlter},[`&::before, ${$e}-eye, ${$e}-download, ${$e}-delete`]:{display:"none"}},[`${it}-progress`]:{bottom:Se.marginXL,width:`calc(100% - ${Se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ie}-wrapper${Ie}-picture-circle-wrapper`]:{[`${Ie}${Ie}-select`]:{borderRadius:"50%"}}}};var be=Se=>{const{componentCls:Ie}=Se;return{[`${Ie}-rtl`]:{direction:"rtl"}}};const Le=Se=>{const{componentCls:Ie,colorTextDisabled:$e}=Se;return{[`${Ie}-wrapper`]:Object.assign(Object.assign({},(0,Tt.Wf)(Se)),{[Ie]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ie}-select`]:{display:"inline-block"},[`${Ie}-disabled`]:{color:$e,cursor:"not-allowed"}})}};var et=(0,Vt.Z)("Upload",Se=>{const{fontSizeHeading3:Ie,fontSize:$e,lineHeight:Ae,lineWidth:ct,controlHeightLG:Je}=Se,it=Math.round($e*Ae),Ze=(0,ln.TS)(Se,{uploadThumbnailSize:Ie*2,uploadProgressOffset:it/2+ct,uploadPicCardSize:Je*2.55});return[Le(Ze),Pn(Ze),Tn(Ze),Kn(Ze),nn(Ze),wn(Ze),be(Ze),(0,Kt.Z)(Ze)]},Se=>({actionsColor:Se.colorTextDescription})),Lt=function(Se,Ie,$e,Ae){function ct(Je){return Je instanceof $e?Je:new $e(function(it){it(Je)})}return new($e||($e=Promise))(function(Je,it){function Ze(Xt){try{Nt(Ae.next(Xt))}catch(rn){it(rn)}}function _t(Xt){try{Nt(Ae.throw(Xt))}catch(rn){it(rn)}}function Nt(Xt){Xt.done?Je(Xt.value):ct(Xt.value).then(Ze,_t)}Nt((Ae=Ae.apply(Se,Ie||[])).next())})};const Ct=`__LIST_IGNORE_${Date.now()}__`,sn=(Se,Ie)=>{const{fileList:$e,defaultFileList:Ae,onRemove:ct,showUploadList:Je=!0,listType:it="text",onPreview:Ze,onDownload:_t,onChange:Nt,onDrop:Xt,previewFile:rn,disabled:He,locale:fn,iconRender:zn,isImageUrl:Rn,progress:In,prefixCls:Cn,className:nt,type:$t="select",children:xt,style:Pt,itemRender:mn,maxCount:gn,data:xn={},multiple:Fn=!1,action:Gn="",accept:ea="",supportServerRender:oa=!0,rootClassName:ua}=Se,ra=ne.useContext(at.Z),Xn=He!=null?He:ra,[Bn,la]=(0,ke.Z)(Ae||[],{value:$e,postState:Zt=>Zt!=null?Zt:[]}),[sa,Qn]=ne.useState("drop"),qn=ne.useRef(null);ne.useMemo(()=>{const Zt=Date.now();($e||[]).forEach((Qt,pn)=>{!Qt.uid&&!Object.isFrozen(Qt)&&(Qt.uid=`__AUTO__${Zt}_${pn}__`)})},[$e]);const Wn=(Zt,Qt,pn)=>{let Yt=(0,ce.Z)(Qt),Ln=!1;gn===1?Yt=Yt.slice(-1):gn&&(Ln=Yt.length>gn,Yt=Yt.slice(0,gn)),(0,Ge.flushSync)(()=>{la(Yt)});const kn={file:Zt,fileList:Yt};pn&&(kn.event=pn),(!Ln||Yt.some(aa=>aa.uid===Zt.uid))&&(0,Ge.flushSync)(()=>{Nt==null||Nt(kn)})},ia=(Zt,Qt)=>Lt(void 0,void 0,void 0,function*(){const{beforeUpload:pn,transformFile:Yt}=Se;let Ln=Zt;if(pn){const kn=yield pn(Zt,Qt);if(kn===!1)return!1;if(delete Zt[Ct],kn===Ct)return Object.defineProperty(Zt,Ct,{value:!0,configurable:!0}),!1;typeof kn=="object"&&kn&&(Ln=kn)}return Yt&&(Ln=yield Yt(Ln)),Ln}),Jt=Zt=>{const Qt=Zt.filter(Ln=>!Ln.file[Ct]);if(!Qt.length)return;const pn=Qt.map(Ln=>tt(Ln.file));let Yt=(0,ce.Z)(Bn);pn.forEach(Ln=>{Yt=vt(Ln,Yt)}),pn.forEach((Ln,kn)=>{let aa=Ln;if(Qt[kn].parsedFile)Ln.status="uploading";else{const{originFileObj:ma}=Ln;let Jn;try{Jn=new File([ma],ma.name,{type:ma.type})}catch(ya){Jn=new Blob([ma],{type:ma.type}),Jn.name=ma.name,Jn.lastModifiedDate=new Date,Jn.lastModified=new Date().getTime()}Jn.uid=Ln.uid,aa=Jn}Wn(aa,Yt)})},$n=(Zt,Qt,pn)=>{try{typeof Zt=="string"&&(Zt=JSON.parse(Zt))}catch(kn){}if(!bt(Qt,Bn))return;const Yt=tt(Qt);Yt.status="done",Yt.percent=100,Yt.response=Zt,Yt.xhr=pn;const Ln=vt(Yt,Bn);Wn(Yt,Ln)},Vn=(Zt,Qt)=>{if(!bt(Qt,Bn))return;const pn=tt(Qt);pn.status="uploading",pn.percent=Zt.percent;const Yt=vt(pn,Bn);Wn(pn,Yt,Zt)},Zn=(Zt,Qt,pn)=>{if(!bt(pn,Bn))return;const Yt=tt(pn);Yt.error=Zt,Yt.response=Qt,Yt.status="error";const Ln=vt(Yt,Bn);Wn(Yt,Ln)},Un=Zt=>{let Qt;Promise.resolve(typeof ct=="function"?ct(Zt):ct).then(pn=>{var Yt;if(pn===!1)return;const Ln=At(Zt,Bn);Ln&&(Qt=Object.assign(Object.assign({},Zt),{status:"removed"}),Bn==null||Bn.forEach(kn=>{const aa=Qt.uid!==void 0?"uid":"name";kn[aa]===Qt[aa]&&!Object.isFrozen(kn)&&(kn.status="removed")}),(Yt=qn.current)===null||Yt===void 0||Yt.abort(Qt),Wn(Qt,Ln))})},ta=Zt=>{Qn(Zt.type),Zt.type==="drop"&&(Xt==null||Xt(Zt))};ne.useImperativeHandle(Ie,()=>({onBatchStart:Jt,onSuccess:$n,onProgress:Vn,onError:Zn,fileList:Bn,upload:qn.current}));const{getPrefixCls:na,direction:ca,upload:Mn}=ne.useContext(_e.E_),On=na("upload",Cn),ga=Object.assign(Object.assign({onBatchStart:Jt,onError:Zn,onProgress:Vn,onSuccess:$n},Se),{data:xn,multiple:Fn,action:Gn,accept:ea,supportServerRender:oa,prefixCls:On,disabled:Xn,beforeUpload:ia,onChange:void 0});delete ga.className,delete ga.style,(!xt||Xn)&&delete ga.id;const[Sa,ha]=et(On),[ba]=(0,yt.Z)("Upload",Ke.Z.Upload),{showRemoveIcon:fa,showPreviewIcon:Pa,showDownloadIcon:pa,removeIcon:va,previewIcon:Dt,downloadIcon:wt}=typeof Je=="boolean"?{}:Je,Ft=(Zt,Qt)=>Je?ne.createElement(Ot,{prefixCls:On,listType:it,items:Bn,previewFile:rn,onPreview:Ze,onDownload:_t,onRemove:Un,showRemoveIcon:!Xn&&fa,showPreviewIcon:Pa,showDownloadIcon:pa,removeIcon:va,previewIcon:Dt,downloadIcon:wt,iconRender:zn,locale:Object.assign(Object.assign({},ba),fn),isImageUrl:Rn,progress:In,appendAction:Zt,appendActionVisible:Qt,itemRender:mn,disabled:Xn}):Zt,Gt=Ne()(`${On}-wrapper`,nt,ua,ha,Mn==null?void 0:Mn.className,{[`${On}-rtl`]:ca==="rtl",[`${On}-picture-card-wrapper`]:it==="picture-card",[`${On}-picture-circle-wrapper`]:it==="picture-circle"}),Sn=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Pt);if($t==="drag"){const Zt=Ne()(ha,On,`${On}-drag`,{[`${On}-drag-uploading`]:Bn.some(Qt=>Qt.status==="uploading"),[`${On}-drag-hover`]:sa==="dragover",[`${On}-disabled`]:Xn,[`${On}-rtl`]:ca==="rtl"});return Sa(ne.createElement("span",{className:Gt},ne.createElement("div",{className:Zt,style:Sn,onDrop:ta,onDragOver:ta,onDragLeave:ta},ne.createElement(we,Object.assign({},ga,{ref:qn,className:`${On}-btn`}),ne.createElement("div",{className:`${On}-drag-container`},xt))),Ft()))}const Nn=Ne()(On,`${On}-select`,{[`${On}-disabled`]:Xn}),An=(Zt=>ne.createElement("div",{className:Nn,style:Zt},ne.createElement(we,Object.assign({},ga,{ref:qn}))))(xt?void 0:{display:"none"});return Sa(it==="picture-card"||it==="picture-circle"?ne.createElement("span",{className:Gt},Ft(An,!!xt)):ne.createElement("span",{className:Gt},An,Ft()))};var Wt=ne.forwardRef(sn),En=function(Se,Ie){var $e={};for(var Ae in Se)Object.prototype.hasOwnProperty.call(Se,Ae)&&Ie.indexOf(Ae)<0&&($e[Ae]=Se[Ae]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ae=Object.getOwnPropertySymbols(Se);ct<Ae.length;ct++)Ie.indexOf(Ae[ct])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ae[ct])&&($e[Ae[ct]]=Se[Ae[ct]]);return $e},Dn=ne.forwardRef((Se,Ie)=>{var{style:$e,height:Ae}=Se,ct=En(Se,["style","height"]);return ne.createElement(Wt,Object.assign({ref:Ie},ct,{type:"drag",style:Object.assign(Object.assign({},$e),{height:Ae})}))});const mt=Wt;mt.Dragger=Dn,mt.LIST_IGNORE=Ct;var en=mt},72665:function(ze,lt){"use strict";var oe;var ne=typeof Symbol=="function"&&Symbol.for,ce=ne?Symbol.for("react.element"):60103,Xe=ne?Symbol.for("react.portal"):60106,Ne=ne?Symbol.for("react.fragment"):60107,ue=ne?Symbol.for("react.strict_mode"):60108,Ee=ne?Symbol.for("react.profiler"):60114,le=ne?Symbol.for("react.provider"):60109,We=ne?Symbol.for("react.context"):60110,je=ne?Symbol.for("react.async_mode"):60111,Fe=ne?Symbol.for("react.concurrent_mode"):60111,dt=ne?Symbol.for("react.forward_ref"):60112,Re=ne?Symbol.for("react.suspense"):60113,De=ne?Symbol.for("react.suspense_list"):60120,ae=ne?Symbol.for("react.memo"):60115,a=ne?Symbol.for("react.lazy"):60116,y=ne?Symbol.for("react.block"):60121,E=ne?Symbol.for("react.fundamental"):60117,b=ne?Symbol.for("react.responder"):60118,x=ne?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var re=te.$$typeof;switch(re){case ce:switch(te=te.type,te){case je:case Fe:case Ne:case Ee:case ue:case Re:return te;default:switch(te=te&&te.$$typeof,te){case We:case dt:case a:case ae:case le:return te;default:return re}}case Xe:return re}}}function ee(te){return z(te)===Fe}oe=je,oe=Fe,oe=We,oe=le,oe=ce,oe=dt,oe=Ne,oe=a,oe=ae,oe=Xe,oe=Ee,oe=ue,oe=Re,oe=function(te){return ee(te)||z(te)===je},oe=ee,oe=function(te){return z(te)===We},oe=function(te){return z(te)===le},oe=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ce},oe=function(te){return z(te)===dt},oe=function(te){return z(te)===Ne},oe=function(te){return z(te)===a},lt.isMemo=function(te){return z(te)===ae},oe=function(te){return z(te)===Xe},oe=function(te){return z(te)===Ee},oe=function(te){return z(te)===ue},oe=function(te){return z(te)===Re},oe=function(te){return typeof te=="string"||typeof te=="function"||te===Ne||te===Fe||te===Ee||te===ue||te===Re||te===De||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ae||te.$$typeof===le||te.$$typeof===We||te.$$typeof===dt||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},oe=z},12060:function(ze,lt,oe){"use strict";ze.exports=oe(72665)},64217:function(ze,lt,oe){"use strict";oe.d(lt,{Z:function(){return We}});var ne=oe(1413),ce=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Xe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ne="".concat(ce," ").concat(Xe).split(/[\s\n]+/),ue="aria-",Ee="data-";function le(je,Fe){return je.indexOf(Fe)===0}function We(je){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt;Fe===!1?dt={aria:!0,data:!0,attr:!0}:Fe===!0?dt={aria:!0}:dt=(0,ne.Z)({},Fe);var Re={};return Object.keys(je).forEach(function(De){(dt.aria&&(De==="role"||le(De,ue))||dt.data&&le(De,Ee)||dt.attr&&Ne.includes(De))&&(Re[De]=je[De])}),Re}}}]);