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__Gradu...

139 lines
404 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[3317],{33853:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return Ie}});var re=ge(54476),ue=ge(59301),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},et=$e,he=ge(7657),ye=function(Ce,Ne){return ue.createElement(he.Z,(0,re.Z)({},Ce,{ref:Ne,icon:et}))},me=ue.forwardRef(ye),Ie=me},38819:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return Ie}});var re=ge(54476),ue=ge(59301),$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},et=$e,he=ge(7657),ye=function(Ce,Ne){return ue.createElement(he.Z,(0,re.Z)({},Ce,{ref:Ne,icon:et}))},me=ue.forwardRef(ye),Ie=me},81230:function(xe,ot){"use strict";ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},77319:function(){"use strict";function xe(ne,b,a,y){a===void 0&&(a=0),y===void 0&&(y=1/0),this._name=ne,this._defaultValue=b,this._minimum=a,this._maximum=y}Object.defineProperty(xe.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(xe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(xe.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(xe.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,b){var a=go.Shape._FigureParameters[ne];return a?a[b]:null},go.Shape.setFigureParameter=function(ne,b,a){if(!(a instanceof xe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var y=go.Shape._FigureParameters[ne];y||(y=[],go.Shape._FigureParameters[ne]=y),y[b]=a};var ot=[];function ge(ne,b){var a=ot.pop();return a===void 0?new go.Point(ne,b):(a.x=ne,a.y=b,a)}function re(){var ne=ot.pop();return ne===void 0?new go.Point:ne}function ue(ne){ot.push(ne)}function $e(ne,b,a,y,E,x,z,ee,te){te||(te=new go.Point);var ae=ne-a,oe=E-z,ie=NaN,Se=NaN;if(ae===0)if(oe===0)ne===a&&(ie=ne,Se=b);else{var se=(x-ee)/oe,be=x-se*E;ie=ne,Se=se*ie+be}else if(oe===0){var we=(b-y)/ae,Te=b-we*ne;ie=E,Se=we*ie+Te}else{var we=(b-y)/ae,se=(x-ee)/oe,Te=b-we*ne,be=x-se*E;ie=(be-Te)/(we-se),Se=we*ie+Te}return te.x=ie,te.y=Se,te}function et(ne,b,a,y,E,x,z,ee,te,ae,oe,ie,Se,se){var be=1-te,we=te,Te=ne*be+a*we,tt=b*be+y*we,Je=a*be+E*we,fe=y*be+x*we,ke=E*be+z*we,_e=x*be+ee*we,Ge=Te*be+Je*we,je=tt*be+fe*we,Lt=Je*be+ke*we,Et=fe*be+_e*we,bt=Ge*be+Lt*we,jt=je*be+Et*we;ae.x=Te,ae.y=tt,oe.x=Ge,oe.y=je,ie.x=bt,ie.y=jt,Se.x=Lt,Se.y=Et,se.x=ke,se.y=_e}var he=new go.Spot(.156,.156),ye=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new xe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,b,a){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=5),y=Math.min(y,b/3),y=Math.min(y,a/3);var E=y*me,x=new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,b-y,0)).add(new go.PathSegment(go.PathSegment.Bezier,b,y,b-E,0,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,a-y)).add(new go.PathSegment(go.PathSegment.Bezier,b-y,a,b,a-E,b-E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,E,a,0,a-E)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,E,E,0).close()));return E>1&&(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,.5*b,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(b,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(b,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*b,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(.5*b,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*b,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,b,a){var y=new go.Geometry(go.Geometry.Line);return y.startX=0,y.startY=a/2,y.endX=b,y.endY=a/2,y}),go.Shape.defineFigureGenerator("LineV",function(ne,b,a){var y=new go.Geometry(go.Geometry.Line);return y.startX=b/2,y.startY=0,y.endX=b/2,y.endY=a,y}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,b,a/2)).add(new go.PathSegment(go.PathSegment.Move,b/2,0)).add(new go.PathSegment(go.PathSegment.Line,b/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(.25*b,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*b,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,.75*a)).add(new go.PathSegment(go.PathSegment.Line,b,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(.75*b,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*b,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,.25*a)).add(new go.PathSegment(go.PathSegment.Line,b,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,b,a){var y=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(y*b,(1-y)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-y)*b,y*a)).add(new go.PathSegment(go.PathSegment.Move,y*b,y*a)).add(new go.PathSegment(go.PathSegment.Line,(1-y)*b,(1-y)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,b,a/2)).add(new go.PathSegment(go.PathSegment.Move,b/2,0)).add(new go.PathSegment(go.PathSegment.Line,b/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,b,a){var y=b/2,E=new go.Geometry().add(new go.PathFigure(b,b/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,y,y,y,y).close()));return E.spot1=he,E.spot2=ye,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Line1",function(ne,b,a){var y=new go.Geometry(go.Geometry.Line);return y.startX=0,y.startY=0,y.endX=b,y.endY=a,y}),go.Shape.defineFigureGenerator("Line2",function(ne,b,a){var y=new go.Geometry(go.Geometry.Line);return y.startX=b,y.startY=0,y.endX=0,y.endY=a,y}),go.Shape.defineFigureGenerator("Curve1",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,b,a,me*b,0,b,(1-me)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,b,a,0,me*a,(1-me)*b,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,b,me*a,me*b,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-me)*b,0,0,(1-me)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(b,0,!0).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new xe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)?y=.1:y<-1?y=-1:y>1&&(y=1);var E=Math.abs(y)*b;if(y===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=b,x.endY=a,x}else{var x=new go.Geometry;return y>0?x.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b-E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b-E,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())),E<b/2&&x.setSpots(E/b,0,(b-E)/b,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new xe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)?y=10:y<-b?y=-b:y>b&&(y=b);var E=Math.abs(y);if(y===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=b,x.endY=a,x}else{var x=new go.Geometry;return y>0?x.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b-E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b-E,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())),E<b/2&&x.setSpots(E/b,0,(b-E)/b,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new xe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)?y=.2:y<.5?y=-.5:y>.5&&(y=.5);var E=Math.abs(y)*b;if(y===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=b,x.endY=a,x}else{var x=new go.Geometry;return y>0?x.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,b-E,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b-E,a)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())),E<b/2&&x.setSpots(E/b,0,(b-E)/b,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new xe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)?y=20:y<-b?y=-b/2:y>b&&(y=b/2);var E=Math.abs(y);if(y===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=b,x.endY=a,x}else{var x=new go.Geometry;return y>0?x.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,b-E,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b-E,a)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())),E<b/2&&x.setSpots(E/b,0,(b-E)/b,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new xe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)?y=10:y<-b?y=-b/2:y>b&&(y=b/2);var E=Math.abs(y);if(y===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=b,x.endY=a,x}else{var x=new go.Geometry;return y>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b-E,a)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())):x.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,b-E,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),E<b/2&&x.setSpots(E/b,0,(b-E)/b,1),x}});var Ie=[];function ze(){var ne=Ie.pop();return ne===void 0?[]:ne}function Ce(ne){ne.length=0,Ie.push(ne)}function Ne(ne){for(var b=ze(),a=.5,y=.5,E=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+E,b[z]=new go.Point(y+a*Math.cos(x),y+a*Math.sin(x));return b.push(b[0]),b}function Be(ne){var b=Le(ne),a=ze();a[0]=b[0];for(var y=1,E=1;y<b.length;y+=2,E+=3)a[E]=b[y],a[E+1]=b[y],a[E+2]=b[y+1];return Ce(b),a}function Le(ne){for(var b=Ne(ne),a=ze(),y=Math.floor(b.length/2),E=b.length-1,x=ne%2===0?2:1,z=0;z<E;z++){var ee=b[z],te=b[z+1],ae=b[(y+z-1)%E],oe=b[(y+z+x)%E];a[z*2]=ee,a[z*2+1]=$e(ee.x,ee.y,ae.x,ae.y,te.x,te.y,oe.x,oe.y,new go.Point)}return a[a.length]=a[0],Ce(b),a}go.Shape.defineFigureGenerator("Pentagon",function(ne,b,a){var y=Ne(5),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.2,.22),E.spot2=new go.Spot(.8,.9),E}),go.Shape.defineFigureGenerator("Hexagon",function(ne,b,a){var y=Ne(6),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.07,.25),E.spot2=new go.Spot(.93,.75),E}),go.Shape.defineFigureGenerator("Heptagon",function(ne,b,a){var y=Ne(7),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.2,.15),E.spot2=new go.Spot(.8,.85),E}),go.Shape.defineFigureGenerator("Octagon",function(ne,b,a){var y=Ne(8),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.85),E}),go.Shape.defineFigureGenerator("Nonagon",function(ne,b,a){var y=Ne(9),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.17,.13),E.spot2=new go.Spot(.82,.82),E}),go.Shape.defineFigureGenerator("Decagon",function(ne,b,a){var y=Ne(10),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.16,.16),E.spot2=new go.Spot(.84,.84),E}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,b,a){var y=Ne(12),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.16,.16),E.spot2=new go.Spot(.84,.84),E}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,b,a){var y=Le(5),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.266,.333),E.spot2=new go.Spot(.733,.733),E}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,b,a){var y=Le(6),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.17,.25),E.spot2=new go.Spot(.83,.75),E}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,b,a){var y=Le(7),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.222,.277),E.spot2=new go.Spot(.777,.666),E}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,b,a){var y=Le(8),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,b,a){var y=Le(9),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.222,.277),E.spot2=new go.Spot(.777,.666),E}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,b,a){var y=Le(10),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,y[z].x*b,y[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,y[0].x*b,y[0].y*a).close()),Ce(y),E.spot1=new go.Spot(.281,.261),E.spot2=new go.Spot(.723,.748),E}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,b,a){var y=Be(5),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*b,y[z+2].y*a,y[z].x*b,y[z].y*a,y[z+1].x*b,y[z+1].y*a));return x.segments.last().close(),Ce(y),E.spot1=new go.Spot(.222,.277),E.spot2=new go.Spot(.777,.777),E}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,b,a){var y=Be(6),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*b,y[z+2].y*a,y[z].x*b,y[z].y*a,y[z+1].x*b,y[z+1].y*a));return x.segments.last().close(),Ce(y),E.spot1=new go.Spot(.17,.222),E.spot2=new go.Spot(.833,.777),E}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,b,a){var y=Be(7),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*b,y[z+2].y*a,y[z].x*b,y[z].y*a,y[z+1].x*b,y[z+1].y*a));return x.segments.last().close(),Ce(y),E.spot1=new go.Spot(.222,.222),E.spot2=new go.Spot(.777,.777),E}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,b,a){var y=Be(8),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*b,y[z+2].y*a,y[z].x*b,y[z].y*a,y[z+1].x*b,y[z+1].y*a));return x.segments.last().close(),Ce(y),E.spot1=new go.Spot(.222,.222),E.spot2=new go.Spot(.777,.777),E}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,b,a){var y=Be(9),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*b,y[z+2].y*a,y[z].x*b,y[z].y*a,y[z+1].x*b,y[z+1].y*a));return x.segments.last().close(),Ce(y),E.spot1=new go.Spot(.222,.222),E.spot2=new go.Spot(.777,.777),E}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,b,a){var y=Be(10),E=new go.Geometry,x=new go.PathFigure(y[0].x*b,y[0].y*a,!0);E.add(x);for(var z=1;z<y.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,y[z+2].x*b,y[z+2].y*a,y[z].x*b,y[z].y*a,y[z+1].x*b,y[z+1].y*a));return x.segments.last().close(),Ce(y),E.spot1=new go.Spot(.222,.222),E.spot2=new go.Spot(.777,.777),E}),go.Shape.setFigureParameter("FramedRectangle",0,new xe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new xe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,b,a){var y=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(y)&&(y=8),isNaN(E)&&(E=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,b,0)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y<b/2&&E<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,y,E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Line,b-y,a-E)),z.add(new go.PathSegment(go.PathSegment.Line,b-y,E).close())),x.setSpots(0,0,1,1,y,E,-y,-E),x}),go.Shape.setFigureParameter("Ring",0,new xe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,b,a){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=8);var E=b/2,x=new go.Geometry,z=new go.PathFigure(b,b/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close());var ee=Math.max(E-y,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,b/2+ee,b/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E,E,ee,ee).close())),x.spot1=he,x.spot2=ye,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(.08034461*b,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*b,.05349299*a,-.09239631*b,.07836421*a,.1406031*b,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*b,.074219*a,.2450511*b,-.00697547*a,.3776197*b,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*b,.07004196*a,.4539471*b,0,.6066018*b,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*b,.08370865*a,.6914277*b,-.01904177*a,.8921095*b,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*b,.3194596*a,1.036446*b,.04105738*a,1.020377*b,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*b,.562044*a,1.04448*b,.360238*a,.992256*b,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*b,.8217117*a,1.032337*b,.5771781*a,1.018411*b,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*b,.9156953*a,1.028411*b,.9571472*a,.8556702*b,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*b,.9310455*a,.7431877*b,1.009325*a,.5624123*b,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*b,.9344623*a,.4820677*b,1.031761*a,.3030112*b,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*b,.870098*a,.2329994*b,1.01518*a,.03213784*b,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*b,.6545475*a,-.02812061*b,.9032597*a,-.01205169*b,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*b,.4265613*a,-.01812061*b,.6089503*a,-.00606892*b,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*b,.1944299*a,-.01606892*b,.3892545*a,-.01205169*b,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,b,a){var y=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(y*b,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-y)*b,0)).add(new go.PathSegment(go.PathSegment.Line,b,y*a)).add(new go.PathSegment(go.PathSegment.Line,b,(1-y)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-y)*b,a)).add(new go.PathSegment(go.PathSegment.Line,y*b,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a)).add(new go.PathSegment(go.PathSegment.Line,0,y*a).close())).setSpots(y/2,y/2,1-y/2,1-y/2)}),go.Shape.setFigureParameter("Pie",0,new xe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new xe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,b,a){var y=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(y)&&(y=0),isNaN(E)&&(E=315);var x=y%360;x<0&&(x+=360);var z=E%360,ee=Math.min(b,a)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,b,a){var y=me/Math.SQRT2*.5,E=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(b,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,E*b,x*a,b,(1-y)*a,(E+y)*b,(x+y)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new xe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,b,a){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=30);var E=Math.min(y,b)/2,x=b/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-E,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+E,0)).add(new go.PathSegment(go.PathSegment.Line,x+E,z-E)).add(new go.PathSegment(go.PathSegment.Line,b,z-E)).add(new go.PathSegment(go.PathSegment.Line,b,z+E)).add(new go.PathSegment(go.PathSegment.Line,x+E,z+E)).add(new go.PathSegment(go.PathSegment.Line,x+E,a)).add(new go.PathSegment(go.PathSegment.Line,x-E,a)).add(new go.PathSegment(go.PathSegment.Line,x-E,z+E)).add(new go.PathSegment(go.PathSegment.Line,0,z+E)).add(new go.PathSegment(go.PathSegment.Line,0,z-E)).add(new go.PathSegment(go.PathSegment.Line,x-E,z-E).close()))}),go.Shape.setFigureParameter("ThinCross",0,new xe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,b,a){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=10);var E=Math.min(y,b)/2,x=b/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-E,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+E,0)).add(new go.PathSegment(go.PathSegment.Line,x+E,z-E)).add(new go.PathSegment(go.PathSegment.Line,b,z-E)).add(new go.PathSegment(go.PathSegment.Line,b,z+E)).add(new go.PathSegment(go.PathSegment.Line,x+E,z+E)).add(new go.PathSegment(go.PathSegment.Line,x+E,a)).add(new go.PathSegment(go.PathSegment.Line,x-E,a)).add(new go.PathSegment(go.PathSegment.Line,x-E,z+E)).add(new go.PathSegment(go.PathSegment.Line,0,z+E)).add(new go.PathSegment(go.PathSegment.Line,0,z-E)).add(new go.PathSegment(go.PathSegment.Line,x-E,z-E).close()))}),go.Shape.setFigureParameter("ThickX",0,new xe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,b,a){var y=ne?ne.parameter1:NaN;if((isNaN(y)||y<0)&&(y=30),b===0||a===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=b,E.endY=a,E}else{var x=b/2,z=a/2,ee=Math.atan2(a,b),te=y-Math.min(Math.cos(ee)*y/2,x),ae=y-Math.min(Math.sin(ee)*y/2,z),E=new go.Geometry,oe=new go.PathFigure(te,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Line,b-te,0)),oe.add(new go.PathSegment(go.PathSegment.Line,b,ae)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*b,z)),oe.add(new go.PathSegment(go.PathSegment.Line,b,a-ae)),oe.add(new go.PathSegment(go.PathSegment.Line,b-te,a)),oe.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),oe.add(new go.PathSegment(go.PathSegment.Line,te,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,a-ae)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*b,z)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ae).close()),E}}),go.Shape.setFigureParameter("ThinX",0,new xe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,b,a){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=10);var E=new go.Geometry,x=new go.PathFigure(.1*b,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),E}),go.Shape.setFigureParameter("SquareIBeam",0,new xe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.2);var E=new go.Geometry,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,y*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+y/2)*b,y*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+y/2)*b,(1-y)*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,(1-y)*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-y/2)*b,(1-y)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-y/2)*b,y*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,y*a).close()),E}),go.Shape.setFigureParameter("RoundedIBeam",0,new xe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.5);var E=new go.Geometry,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,b,a,Math.abs(1-y)*b,.25*a,Math.abs(1-y)*b,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,y*b,.75*a,y*b,.25*a).close()),E}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,me*b,0,b,(.5-me/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,b,(.5+me/2)*a,me*b,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,b,0,b,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*b,.75*a,.5*b,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(.5*b,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*b,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.3*a,0,0,.45*b,0)).add(new go.PathSegment(go.PathSegment.Bezier,b,.3*a,.55*b,0,b,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,.5*a,.9*b,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(.5*b,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*b,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,.6*b,.2*a,b,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*b,.7*a,b,.8*a,.6*b,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*b,a,.5*b,.75*a,.55*b,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*b,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*b,.7*a,.45*b,.95*a,.5*b,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*b,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*b,.01*a,0,.25*a,.4*b,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.4*b,.6*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.15*b,a,.5*b,.75*a,.45*b,.95*a)),E.add(new go.PathSegment(go.PathSegment.Line,.85*b,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.6*b,.6*a,.55*b,.95*a,.5*b,.75*a));var x=.2,z=.3,ee=0,te=x*me;return E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*b,(.5+x+ee)*a,(.5-x+z)*b,(.5+te+ee)*a,(.5-te+z)*b,(.5+x+ee)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*b,(.5+ee)*a,(.5+te+z)*b,(.5+x+ee)*a,(.5+x+z)*b,(.5+te+ee)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*b,(.5-x+ee)*a,(1-.5+x+z)*b,(.5-te+ee)*a,(.5+te+z)*b,(.5-x+ee)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.65*b,.36771243*a,(.5-te+z)*b,(.5-x+ee)*a,(.5-x+z+.05)*b,(.5-te+ee-.02)*a)),x=.2,z=0,ee=-.3,te=x*me,E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*b,(.5+ee)*a,(.5+te+z)*b,(.5+x+ee)*a,(.5+x+z)*b,(.5+te+ee)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*b,(.5-x+ee)*a,(1-.5+x+z)*b,(.5-te+ee)*a,(.5+te+z)*b,(.5-x+ee)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*b,(.5+ee)*a,(.5-te+z)*b,(.5-x+ee)*a,(.5-x+z)*b,(.5-te+ee)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*b,(.5+x+ee)*a,(.5-x+z)*b,(.5+te+ee)*a,(.5-te+z)*b,(.5+x+ee)*a)),x=.2,z=-.3,ee=0,te=x*me,E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*b,(.5-x+ee)*a,(1-.5+x+z-.05)*b,(.5-te+ee-.02)*a,(.5+te+z)*b,(.5-x+ee)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*b,(.5+ee)*a,(.5-te+z)*b,(.5-x+ee)*a,(.5-x+z)*b,(.5-te+ee)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*b,(.5+x+ee)*a,(.5-x+z)*b,(.5+te+ee)*a,(.5-te+z)*b,(.5+x+ee)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*b,.6*a,(.5+te+z)*b,(.5+x+ee)*a,(.5+x+z)*b,(.5+te+ee)*a).close()),y.setSpots(.06,.33,.93,.68),y}),go.Shape.defineFigureGenerator("YinYang",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*.5,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,b*.5,b*.5,b*.5,b*.5)),E.add(new go.PathSegment(go.PathSegment.Arc,90,-180,b*.5,b*.75,b*.25,b*.25)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,b*.5,b*.25,b*.25,b*.25));var x=.1,z=.5,ee=.25;return E.add(new go.PathSegment(go.PathSegment.Move,(z+x)*b,ee*a)),E.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b*z,a*ee,x*b,x*b).close()),E=new go.PathFigure(b*.5,0,!1),y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,b*.5,b*.5,b*.5,b*.5)),ee=.75,E=new go.PathFigure((z+x)*b,ee*a,!0),y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,0,360,b*z,a*ee,x*b,x*b).close()),y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Peace",function(ne,b,a){var y=.8535533905932737,E=.5*b,x=.5*a;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,E,x,E,x)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,E,x)).add(new go.PathSegment(go.PathSegment.Line,(1-y)*b,y*a)).add(new go.PathSegment(go.PathSegment.Move,E,x)).add(new go.PathSegment(go.PathSegment.Line,y*b,y*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,b,a){var y=new go.Geometry,E=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*b,(ee-x)*a);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-E)*b,(ee-x)*a,(z-x)*b,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z-x)*b,(ee+E)*a,(z-E)*b,(ee+x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,(z+E)*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z+x)*b,(ee-E)*a,(z+E)*b,(ee-x)*a)),x=.4,E=me*.4;var ae=re(),oe=re(),ie=re(),Se=re();et(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.42,ae,oe,ie,Se,Se);var se=re(),be=re(),we=re();et(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.58,Se,Se,we,se,be);var Te=re(),tt=re(),Je=re();et(z,ee+x,z-E,ee+x,z-x,ee+E,z-x,ee,.42,Te,tt,Je,Se,Se);var fe=re(),ke=re(),_e=re();return et(z,ee+x,z-E,ee+x,z-x,ee+E,z-x,ee,.58,Se,Se,_e,fe,ke),te.add(new go.PathSegment(go.PathSegment.Move,_e.x*b,_e.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,fe.x*b,fe.y*a,ke.x*b,ke.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z-x)*b,(ee-E)*a,(z-E)*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*b,ie.y*a,ae.x*b,ae.y*a,oe.x*b,oe.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,_e.x*b,_e.y*a).close()),te.add(new go.PathSegment(go.PathSegment.Move,Je.x*b,Je.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,we.x*b,we.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,se.x*b,se.y*a,be.x*b,be.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z+x)*b,(ee+E)*a,(z+E)*b,(ee+x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,Je.x*b,Je.y*a,Te.x*b,Te.y*a,tt.x*b,tt.y*a).close()),ue(ae),ue(oe),ue(ie),ue(Se),ue(se),ue(be),ue(we),ue(Te),ue(tt),ue(Je),ue(fe),ue(ke),ue(_e),y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Fragile",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*b,0)).add(new go.PathSegment(go.PathSegment.Line,.2*b,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*b,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*b,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*b,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*b,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*b,0)).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*b,.5*a,b,.25*a,.75*b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*b,a)).add(new go.PathSegment(go.PathSegment.Line,.3*b,a)).add(new go.PathSegment(go.PathSegment.Line,.3*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*b,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*b,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new xe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,b,a){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=30),y>b&&(y=b);var E=(b-y)/2,x=E+y;return new go.Geometry().add(new go.PathFigure(x,.5*a).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,b,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*b,0)).add(new go.PathSegment(go.PathSegment.Line,.3*b,.45*a)).add(new go.PathSegment(go.PathSegment.Line,b,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*b,a)).add(new go.PathSegment(go.PathSegment.Line,.7*b,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,b,a){var y=new go.Geometry,E=me*.4,x=.4,z=.5,ee=.5,te=re(),ae=re(),oe=re(),ie=re(),Se=new go.PathFigure((z-x)*b,ee*a,!1);y.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z-x)*b,(ee-E)*a,(z-E)*b,(ee-x)*a)),et(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.44,oe,ie,ae,te,te),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*b,ae.y*a,oe.x*b,oe.y*a,ie.x*b,ie.y*a));var se=ge(ae.x,ae.y);et(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.56,te,te,ae,oe,ie);var be=ge(ae.x,ae.y);Se.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*b,se.y*.1*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*b,se.y*.1*a)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*b,0)),Se.add(new go.PathSegment(go.PathSegment.Line,b,0)),Se.add(new go.PathSegment(go.PathSegment.Line,b,.15*a)),Se.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*b,.15*a)),Se.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*b,(be.y*.1+.05*.9)*a)),Se.add(new go.PathSegment(go.PathSegment.Line,be.x*b,be.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,oe.x*b,oe.y*a,ie.x*b,ie.y*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z+x)*b,(ee+E)*a,(z+E)*b,(ee+x)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-E)*b,(ee+x)*a,(z-x)*b,(ee+E)*a)),x=.35,E=me*.35;var we=new go.PathFigure(z*b,(ee-x)*a,!1);y.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-E)*b,(ee-x)*a,(z-x)*b,(ee-E)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z-x)*b,(ee+E)*a,(z-E)*b,(ee+x)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,(z+E)*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z+x)*b,(ee-E)*a,(z+E)*b,(ee-x)*a));var Te=new go.PathFigure((z-x)*b,ee*a,!1);return y.add(Te),ue(te),ue(ae),ue(oe),ue(ie),ue(se),ue(be),y.spot1=new go.Spot(.202,.257),y.spot2=new go.Spot(.792,.739),y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,b,a){var y=new go.Geometry,E=.375,x=0,z=-.125,ee=E*me,te=new go.PathFigure((.525+x)*b,(.5+E+z)*a,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+x)*b,(.5+z)*a,(.5+ee+x)*b,(.5+E+z)*a,(.5+E+x)*b,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*b,(.5-E+z)*a,(1-.5+E+x)*b,(.5-ee+z)*a,(.5+ee+x)*b,(.5-E+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+x)*b,(.5+z)*a,(.5-ee+x)*b,(.5-E+z)*a,(.5-E+x)*b,(.5-ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*b,(.5+E+z)*a,(.5-E+x)*b,(.5+ee+z)*a,(.5-ee+x)*b,(.5+E+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*b,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*b,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*b,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*b,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*b,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*b,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*b,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*b,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*b,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*b,.85*a).close()),E=.325,x=0,z=-.125,ee=E*me;var te=new go.PathFigure((1-.5+E+x)*b,(.5+z)*a,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*b,(.5+E+z)*a,(.5+E+x)*b,(.5+ee+z)*a,(.5+ee+x)*b,(.5+E+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+x)*b,(.5+z)*a,(.5-ee+x)*b,(.5+E+z)*a,(.5-E+x)*b,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*b,(.5-E+z)*a,(.5-E+x)*b,(.5-ee+z)*a,(.5-ee+x)*b,(.5-E+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+x)*b,(.5+z)*a,(.5+ee+x)*b,(.5-E+z)*a,(1-.5+E+x)*b,(.5-ee+z)*a));var te=new go.PathFigure((.525+x)*b,(.5+E+z)*a,!1);return y.add(te),y.spot1=new go.Spot(.232,.136),y.spot2=new go.Spot(.682,.611),y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,b,a){var y=ne?ne.parameter1:NaN;return isNaN(y)&&(y=.2),new go.Geometry().add(new go.PathFigure((1-y)*b,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-y)*b,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,b,a){var y=ne?ne.parameter1:NaN;return isNaN(y)&&(y=.2),new go.Geometry().add(new go.PathFigure((1-y)*b,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-y)*b,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y*b,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y*b,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,0)).add(new go.PathSegment(go.PathSegment.Line,b,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,a)).add(new go.PathSegment(go.PathSegment.Line,b,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,b,a){var y=new go.Geometry().add(new go.PathFigure(.5*b,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*b,.5*a,.5*b,.5*a)));return y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Move,.5*b,0)).add(new go.PathSegment(go.PathSegment.Line,.5*b,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Move,.5*b,a)).add(new go.PathSegment(go.PathSegment.Line,.5*b,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*b,a)).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Move,.25*b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*b,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,b,a){var y=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,y*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,y*b,y*a,y*b,y*a)).add(new go.PathSegment(go.PathSegment.Line,b,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,b,a){var y=.5;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Line,b,y*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,y*b,y*a,y*b,y*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new xe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new xe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.3);var E=ne?ne.parameter2:NaN;isNaN(E)&&(E=.3);var x=(1-y)*b,z=(.5-E/2)*a,ee=(.5+E/2)*a,te=new go.Geometry,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,x,z)),ae.add(new go.PathSegment(go.PathSegment.Line,x,0)),ae.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),ae.add(new go.PathSegment(go.PathSegment.Line,x,a)),ae.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/a);var oe=$e(0,ee/a,1,ee/a,x/b,1,1,.5,re());return te.spot2=new go.Spot(oe.x,oe.y),ue(oe),te}),go.Shape.setFigureParameter("Arrow2",0,new xe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new xe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=30),y>b&&(y=b);var E=ne?ne.parameter2:NaN;isNaN(E)&&(E=30),E=Math.min(E,a/2);var x=b-y,z=(a-E)/2,ee=z+E,te=new go.Geometry,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,x,z)),ae.add(new go.PathSegment(go.PathSegment.Line,x,0)),ae.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),ae.add(new go.PathSegment(go.PathSegment.Line,x,a)),ae.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/a);var oe=$e(0,ee/a,1,ee/a,x/b,1,1,.5,re());return te.spot2=new go.Spot(oe.x,oe.y),ue(oe),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a).close()),y}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.3*b,.214*a)),E.add(new go.PathSegment(go.PathSegment.Line,.3*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,1*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.3*b,1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.3*b,.786*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),y}),go.Shape.setFigureParameter("DoubleEndArrow",0,new xe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.3);var E=(.5-y/2)*a,x=(.5+y/2)*a,z=new go.Geometry,ee=new go.PathFigure(b,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*b,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,0).close());var te=$e(0,.5,.3,0,0,E/a,.1,E/a,re());return z.spot1=new go.Spot(te.x,te.y),te=$e(.7,1,1,.5,0,x/a,1,x/a,te),z.spot2=new go.Spot(te.x,te.y),ue(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new xe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new xe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=40);var E=ne?ne.parameter2:NaN;isNaN(E)&&(E=100);var x=(a-y)/2,z=x+y,ee=(a-E)/2,te=ee+E;(y>a||E>a)&&(E>y?(y=y*a/E,x=(a-y)/2,z=x+y,ee=0,te=a):(x=0,z=a,ee=0,te=a));var ae=new go.Geometry,oe=new go.PathFigure(b,.5*a,!0);ae.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*b,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*b,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*b,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*b,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*b,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*b,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*b,ee).close());var ie=$e(0,.5,.3,ee/a,0,x/a,1,x/a,re());return ae.spot1=new go.Spot(ie.x,ie.y),ie=$e(.7,te/a,1,.5,0,z/a,1,z/a,ie),ae.spot2=new go.Spot(ie.x,ie.y),ue(ie),ae}),go.Shape.setFigureParameter("IBeamArrow",0,new xe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.3);var E=(.5-y/2)*a,x=(.5+y/2)*a,z=new go.Geometry,ee=new go.PathFigure(b,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,0).close()),z.spot1=new go.Spot(0,E/a);var te=$e(.7,1,1,.5,0,x/a,1,x/a,re());return z.spot2=new go.Spot(te.x,te.y),ue(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new xe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new xe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=40);var E=ne?ne.parameter2:NaN;isNaN(E)&&(E=100);var x=(a-y)/2,z=x+y,ee=(a-E)/2,te=ee+E;(y>a||E>a)&&(E>y?(y=y*a/E,x=(a-y)/2,z=x+y,ee=0,te=a):(x=0,z=a,ee=0,te=a));var ae=new go.Geometry,oe=new go.PathFigure(b,.5*a,!0);ae.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*b,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*b,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*b,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*b,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*b,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*b,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*b,ee).close()),ae.spot1=new go.Spot(0,x/a);var ie=$e(.7,te/a,1,.5,0,z/a,1,z/a,re());return ae.spot2=new go.Spot(ie.x,ie.y),ue(ie),ae}),go.Shape.setFigureParameter("Pointer",0,new xe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.1);var E=new go.Geometry,x=new go.PathFigure(b,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,y*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),E.spot1=new go.Spot(y,.35);var z=$e(.2,.65,1,.65,0,1,1,.5,re());return E.spot2=new go.Spot(z.x,z.y),ue(z),E}),go.Shape.setFigureParameter("RoundedPointer",0,new xe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.3);var E=new go.Geometry,x=new go.PathFigure(b,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,y*b,.75*a,y*b,.25*a).close()),E.spot1=new go.Spot(y,.35);var z=$e(0,.65,1,.65,0,1,1,.5,re());return E.spot2=new go.Spot(z.x,z.y),ue(z),E}),go.Shape.setFigureParameter("SplitEndArrow",0,new xe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.4);var E=(.5-y/2)*a,x=(.5+y/2)*a,z=new go.Geometry,ee=new go.PathFigure(b,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,0).close()),z.spot1=new go.Spot(.2,.3);var te=$e(.7,1,1,.5,0,x/a,1,x/a,re());return z.spot2=new go.Spot(te.x,te.y),ue(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new xe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=50);var E=(a-y)/2,x=E+y;y>a&&(E=0,x=a);var z=new go.Geometry,ee=new go.PathFigure(b,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*b,0).close()),z.spot1=new go.Spot(.2,E/a);var te=$e(.7,1,1,.5,0,x/a,1,x/a,re());return z.spot2=new go.Spot(te.x,te.y),ue(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new xe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.7);var E=new go.Geometry,x=new go.PathFigure(b,.5*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,y*b,0).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(y,1),E}),go.Shape.defineFigureGenerator("Cone1",function(ne,b,a){var y=new go.Geometry,E=me*.5,x=me*.1,z=new go.PathFigure(0,.9*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,(.9+x)*a,(.5+E)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-E)*b,a,0,(.9+x)*a).close()),y.spot1=new go.Spot(.25,.5),y.spot2=new go.Spot(.75,.97),y}),go.Shape.defineFigureGenerator("Cone2",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.9*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,b,.9*a,(1-.85/.9)*b,a,.85/.9*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var x=new go.PathFigure(0,.9*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,b,.9*a,(1-.85/.9)*b,.8*a,.85/.9*b,.8*a)),y.spot1=new go.Spot(.25,.5),y.spot2=new go.Spot(.75,.82),y}),go.Shape.defineFigureGenerator("Cube1",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.5*b,a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,.85*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.15*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*b,a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.15*a)),y.spot1=new go.Spot(0,.3),y.spot2=new go.Spot(.5,.85),y}),go.Shape.defineFigureGenerator("Cube2",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.3*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.3*b,0).close());var x=new go.PathFigure(0,.3*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*b,a)),y.spot1=new go.Spot(0,.3),y.spot2=new go.Spot(.7,1),y}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=5),y=Math.min(y,a/3);var E=new go.Geometry,x=me*.5,z=new go.PathFigure(0,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,0,me*y,(.5-x)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*b,y,(.5+x)*b,0,1*b,me*y)),z.add(new go.PathSegment(go.PathSegment.Line,b,a-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,1*a,1*b,a-me*y,(.5+x)*b,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,(.5-x)*b,1*a,0,a-me*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y));var ee=new go.PathFigure(b,y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,2*y,1*b,2*y-me*y,(.5+x)*b,2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y,(.5-x)*b,2*y,0,2*y-me*y)),E.spot1=new go.Spot(0,0,0,2*y),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=5),y=Math.min(y,a/3);var E=new go.Geometry,x=me*.5,z=new go.PathFigure(0,a-y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,0,me*y,(.5-x)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,y,(.5+x)*b,0,b,me*y)),z.add(new go.PathSegment(go.PathSegment.Line,b,a-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,a-me*y,(.5+x)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,(.5-x)*b,a,0,a-me*y));var ee=new go.PathFigure(0,a-y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a-2*y,0,a-y-me*y,(.5-x)*b,a-2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b,a-y,(.5+x)*b,a-2*y,b,a-y-me*y)),E.spot1=new go.Spot(0,0),E.spot2=new go.Spot(1,1,0,-2*y),E}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=5),y=Math.min(y,b/3);var E=new go.Geometry,x=me*.5,z=new go.PathFigure(y,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b-y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,b-me*y,0,b,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b-y,a,b,(.5+x)*a,b-me*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,me*y,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,(.5-x)*a,me*y,0));var ee=new go.PathFigure(y,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*y,.5*a,y+me*y,0,2*y,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,a,2*y,(.5+x)*a,y+me*y,a)),E.spot1=new go.Spot(0,0,2*y,0),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=5),y=Math.min(y,b/3);var E=new go.Geometry,x=me*.5,z=new go.PathFigure(b-y,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,b-me*y,0,b,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b-y,a,b,(.5+x)*a,b-me*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,me*y,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,(.5-x)*a,me*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b-y,0));var ee=new go.PathFigure(b-y,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,b-2*y,.5*a,b-y-me*y,0,b-2*y,(.5-x)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b-y,a,b-2*y,(.5+x)*a,b-y-me*y,a)),E.spot1=new go.Spot(0,0),E.spot2=new go.Spot(1,1,-2*y,0),E}),go.Shape.defineFigureGenerator("Prism1",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.25*b,.25*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.25*b,.25*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.spot1=new go.Spot(.408,.172),y.spot2=new go.Spot(.833,.662),y}),go.Shape.defineFigureGenerator("Prism2",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.25*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,.75*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*b,.5*a)),y.spot1=new go.Spot(.25,.5),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.5*b,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,.75*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var x=new go.PathFigure(.5*b,0,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.spot1=new go.Spot(.25,.367),y.spot2=new go.Spot(.75,.875),y}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.5*b,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,.85*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*b,0,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*b,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.85*a)),y.spot1=new go.Spot(.25,.367),y.spot2=new go.Spot(.75,.875),y}),go.Shape.defineFigureGenerator("Actor",function(ne,b,a){var y=new go.Geometry,E=.2,x=.1,z=me*E,ee=me*x,te=.5,ae=.1,oe=new go.PathFigure(te*b,(ae+x)*a,!0);y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-E)*b,ae*a,(te-z)*b,(ae+x)*a,(te-E)*b,(ae+ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae-x)*a,(te-E)*b,(ae-ee)*a,(te-z)*b,(ae-x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+E)*b,ae*a,(te+z)*b,(ae-x)*a,(te+E)*b,(ae-ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae+x)*a,(te+E)*b,(ae+ee)*a,(te+z)*b,(ae+x)*a));var ie=.05,Se=me*ie;te=.05,ae=.25;var se=new go.PathFigure(.5*b,.2*a,!0);return y.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*b,.2*a)),te=.95,ae=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*b,ae*a,(te+Se)*b,(ae-ie)*a,(te+ie)*b,(ae-Se)*a)),se.add(new go.PathSegment(go.PathSegment.Line,b,.6*a)),se.add(new go.PathSegment(go.PathSegment.Line,.85*b,.6*a)),se.add(new go.PathSegment(go.PathSegment.Line,.85*b,.35*a)),ie=.025,Se=me*ie,te=.825,ae=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae-ie)*a,(te+ie)*b,(ae-Se)*a,(te+Se)*b,(ae-ie)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*b,ae*a,(te-Se)*b,(ae-ie)*a,(te-ie)*b,(ae-Se)*a)),se.add(new go.PathSegment(go.PathSegment.Line,.8*b,a)),se.add(new go.PathSegment(go.PathSegment.Line,.55*b,a)),se.add(new go.PathSegment(go.PathSegment.Line,.55*b,.7*a)),ie=.05,Se=me*ie,te=.5,ae=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae-ie)*a,(te+ie)*b,(ae-Se)*a,(te+Se)*b,(ae-ie)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*b,ae*a,(te-Se)*b,(ae-ie)*a,(te-ie)*b,(ae-Se)*a)),se.add(new go.PathSegment(go.PathSegment.Line,.45*b,a)),se.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),se.add(new go.PathSegment(go.PathSegment.Line,.2*b,.35*a)),ie=.025,Se=me*ie,te=.175,ae=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae-ie)*a,(te+ie)*b,(ae-Se)*a,(te+Se)*b,(ae-ie)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*b,ae*a,(te-Se)*b,(ae-ie)*a,(te-ie)*b,(ae-Se)*a)),se.add(new go.PathSegment(go.PathSegment.Line,.15*b,.6*a)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),ie=.05,Se=me*ie,te=.05,ae=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae-ie)*a,(te-ie)*b,(ae-Se)*a,(te-Se)*b,(ae-ie)*a)),se.add(new go.PathSegment(go.PathSegment.Line,.5*b,.2*a)),y.spot1=new go.Spot(.2,.2),y.spot2=new go.Spot(.8,.65),y}),go.Shape.setFigureParameter("Card",0,new xe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,b,a){var y=ne?ne.parameter1:NaN;isNaN(y)&&(y=.2);var E=new go.Geometry,x=new go.PathFigure(b,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),x.add(new go.PathSegment(go.PathSegment.Line,y*b,0).close()),E.spot1=new go.Spot(0,y),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Collate",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.5*b,.5*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a));var x=new go.PathFigure(.5*b,.5*a,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),y.spot1=new go.Spot(.25,0),y.spot2=new go.Spot(.75,.25),y}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var x=new go.PathFigure(0,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,E*a,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,E*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,(1-E)*a)),y}),go.Shape.defineFigureGenerator("Database",function(ne,b,a){var y=new go.Geometry,E=me*.5,x=me*.1,z=new go.PathFigure(b,.1*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,(.9+x)*a,(.5+E)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-E)*b,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,0,(.1-x)*a,(.5-E)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.1*a,(.5+E)*b,0,b,(.1-x)*a));var ee=new go.PathFigure(b,.1*a,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.2*a,b,(.1+x)*a,(.5+E)*b,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-E)*b,.2*a,0,(.1+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.3*a,b,(.2+x)*a,(.5+E)*b,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-E)*b,.3*a,0,(.2+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.4*a,b,(.3+x)*a,(.5+E)*b,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-E)*b,.4*a,0,(.3+x)*a)),y.spot1=new go.Spot(0,.4),y.spot2=new go.Spot(1,.9),y}),go.Shape.defineFigureGenerator("DataStorage",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.75*b,a,b,0,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*b,.9*a,.25*b,.1*a).close()),y.spot1=new go.Spot(.226,0),y.spot2=new go.Spot(.81,1),y}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,b,a){var y=new go.Geometry,E=me*.5,x=me*.1,z=new go.PathFigure(b,.1*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,(.9+x)*a,(.5+E)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-E)*b,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,0,(.1-x)*a,(.5-E)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.1*a,(.5+E)*b,0,b,(.1-x)*a));var ee=new go.PathFigure(b,.1*a,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.2*a,b,(.1+x)*a,(.5+E)*b,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-E)*b,.2*a,0,(.1+x)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.3*a,b,(.2+x)*a,(.5+E)*b,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-E)*b,.3*a,0,(.2+x)*a)),y.spot1=new go.Spot(0,.3),y.spot2=new go.Spot(1,.9),y}),go.Shape.defineFigureGenerator("Display",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.25*b,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.75*b,a,b,0,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.25*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),y.spot1=new go.Spot(.25,0),y.spot2=new go.Spot(.75,1),y}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.15&&(E=.15);var x=me*.2,z=new go.PathFigure(0,.2*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*b,0,0,(.2-x)*a,(.2-x)*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.2*a,(.8+x)*b,0,b,(.2-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,a,b,(.8+x)*a,(.8+x)*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-x)*b,a,0,(.8+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var ee=new go.PathFigure(0,E*a,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b,E*a)),y}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;(isNaN(E)||E<.1)&&(E=.1);var x=new go.PathFigure(0,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,E*a,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,E*a)),y}),go.Shape.defineFigureGenerator("Document",function(ne,b,a){var y=new go.Geometry;a=a/.8;var E=new go.PathFigure(0,.7*a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.7*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*b,.4*a,.5*b,a).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(1,.6),y}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;(isNaN(E)||E<.2)&&(E=.2);var x=new go.PathFigure(0,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(E*b,0,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E*a)),z.add(new go.PathSegment(go.PathSegment.Move,b,E*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*b,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E*b,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-E)*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,(1-E)*a)),y}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.5*b,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(.1*b,.4*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.9*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.6*b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*b,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*b,.9*a)),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("File",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.75*b,0,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*b,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),y.spot1=new go.Spot(0,.25),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Interrupt",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b,.5*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a));var x=new go.PathFigure(b,.5*a,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,a));var z=new go.PathFigure(b,.5*a,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,0)),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(.5,.75),y}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(E)&&(E=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,0)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(E*b,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*b,a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),ee.add(new go.PathSegment(go.PathSegment.Line,b,x*a)),y}),go.Shape.defineFigureGenerator("Junction",function(ne,b,a){var y=new go.Geometry,E=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(b,ee*a,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*b,a,b,(ee+z)*a,(ee+z)*b,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*a,(ee-z)*b,a,0,(ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*b,0,0,(ee-z)*a,(ee-z)*b,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,ee*a,(ee+z)*b,0,b,(ee-z)*a));var ae=new go.PathFigure((x+E)*b,(x+E)*a,!1);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,x*b,x*a)),ae.add(new go.PathSegment(go.PathSegment.Move,x*b,(x+E)*a)),ae.add(new go.PathSegment(go.PathSegment.Line,(x+E)*b,x*a)),y}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,b,a){var y=new go.Geometry;a=a/.8;var E=new go.PathFigure(0,.7*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.7*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*b,.4*a,.5*b,a).close());var x=new go.PathFigure(.1*b,0,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*b,.75*a)),y.spot1=new go.Spot(.1,0),y.spot2=new go.Spot(1,.6),y}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,.25*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a).close()),y.spot1=new go.Spot(0,.25),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,b,a){var y=new go.Geometry,E=me*.5,x=.5,z=new go.PathFigure(.5*b,a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-E)*b,a,0,(x+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*b,0,0,(x-E)*a,(x-E)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,x*a,(x+E)*b,0,b,(x-E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*b,.9*a,b,(x+E)*a,(x+E)*b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),y.spot1=new go.Spot(.15,.15),y.spot2=new go.Spot(.85,.8),y}),go.Shape.defineFigureGenerator("ManualInput",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),y.spot1=new go.Spot(0,.25),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.spot1=go.Spot.TopLeft,y}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.25);var x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.15*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.85*a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,.75*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(1,.75),y}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,b,a){var y=new go.Geometry;a=a/.8;var E=new go.PathFigure(b,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*b,.44*a,.96*b,.47*a,.93*b,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.54*a,.86*b,.57*a,.83*b,.55*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,.7*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*b,.4*a,.4*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*b,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*b,0).close());var x=new go.PathFigure(.1*b,.2*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,.44*a)),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(.8,.77),y}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.1*b,.1*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.2*b,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*b,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,.2*a).close());var x=new go.PathFigure(.2*b,.1*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*b,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*b,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.9*a)),y.spot1=new go.Spot(0,.2),y.spot2=new go.Spot(.8,1),y}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var x=1-E,z=new go.PathFigure(0,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,a).close());var ee=new go.PathFigure(.5*E*b,E*a,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*E)*b,E*a)),y}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(.75,1),y}),go.Shape.defineFigureGenerator("Or",function(ne,b,a){var y=new go.Geometry,E=me*.5,x=.5,z=new go.PathFigure(b,x*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*b,a,b,(x+E)*a,(x+E)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-E)*b,a,0,(x+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*b,0,0,(x-E)*a,(x-E)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,x*a,(x+E)*b,0,b,(x-E)*a));var ee=new go.PathFigure(b,.5*a,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),y}),go.Shape.defineFigureGenerator("PaperTape",function(ne,b,a){var y=new go.Geometry;a=a/.8;var E=new go.PathFigure(0,.7*a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,b,.3*a,.5*b,.6*a,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.7*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*b,.4*a,.5*b,a).close()),y.spot1=new go.Spot(0,.49),y.spot2=new go.Spot(1,.75),y}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(E)&&(E=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*b,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(E)&&(E=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y}),go.Shape.defineFigureGenerator("Procedure",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var x=new go.PathFigure(0,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-E)*b,0,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*b,a)),z.add(new go.PathSegment(go.PathSegment.Move,E*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,E*b,a)),y}),go.Shape.defineFigureGenerator("Process",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var x=new go.PathFigure(0,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(E*b,0,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*b,a)),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Sort",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.5*b,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(0,.5*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.5),y}),go.Shape.defineFigureGenerator("Start",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.25);var x=new go.PathFigure(E*b,0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*b,.5*a,.25*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*b,.5*a,.25*b,.5*a));var z=new go.PathFigure(E*b,0,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*b,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-E)*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*b,a)),y.spot1=new go.Spot(E,0),y.spot2=new go.Spot(1-E,1),y}),go.Shape.defineFigureGenerator("Terminator",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.25*b,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*b,.5*a,.25*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*b,.5*a,.25*b,.5*a)),y.spot1=new go.Spot(.23,0),y.spot2=new go.Spot(.77,1),y}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,b,a){var y=new go.Geometry,E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*b,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a).close()),y.spot1=go.Spot.TopLeft,y}),go.Shape.defineFigureGenerator("AndGate",function(ne,b,a){var y=new go.Geometry,E=me*.5,x=new go.PathFigure(0,0,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,(.5+E)*b,0,b,(.5-E)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,(.5+E)*a,(.5+E)*b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(.55,1),y}),go.Shape.defineFigureGenerator("Buffer",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(.5,.75),y}),go.Shape.defineFigureGenerator("Clock",function(ne,b,a){var y=new go.Geometry,E=me*.5,x=.5,z=new go.PathFigure(b,x*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*b,a,b,(x+E)*a,(x+E)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-E)*b,a,0,(x+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*b,0,0,(x-E)*a,(x-E)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,x*a,(x+E)*b,0,b,(x-E)*a));var ee=new go.PathFigure(b,x*a,!1);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b,x*a));var te=new go.PathFigure(.8*b,.75*a,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*b,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*b,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*b,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*b,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*b,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*b,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*b,.75*a)),y}),go.Shape.defineFigureGenerator("Ground",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.5*b,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.4*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Move,.3*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.7*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Move,.4*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*b,a)),y}),go.Shape.defineFigureGenerator("Inverter",function(ne,b,a){var y=new go.Geometry,E=me*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*b,.5*a,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*b,.5*a));var ae=new go.PathFigure((z+x)*b,ee*a,!0);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z+x)*b,(ee+E)*a,(z+E)*b,(ee+x)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-E)*b,(ee+x)*a,(z-x)*b,(ee+E)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z-x)*b,(ee-E)*a,(z-E)*b,(ee-x)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,(z+E)*b,(ee-x)*a,(z+x)*b,(ee-E)*a)),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(.4,.75),y}),go.Shape.defineFigureGenerator("NandGate",function(ne,b,a){var y=new go.Geometry,E=me*.5,x=me*.4,z=me*.1,ee=.1,te=.9,ae=.5,oe=new go.PathFigure(.8*b,.5*a,!0);y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.4*b,a,.8*b,(.5+x)*a,(.4+E)*b,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*b,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.5*a,(.4+E)*b,0,.8*b,(.5-x)*a));var ie=new go.PathFigure((te+ee)*b,ae*a,!0);return y.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae+ee)*a,(te+ee)*b,(ae+z)*a,(te+z)*b,(ae+ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*b,ae*a,(te-z)*b,(ae+ee)*a,(te-ee)*b,(ae+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae-ee)*a,(te-ee)*b,(ae-z)*a,(te-z)*b,(ae-ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*b,ae*a,(te+z)*b,(ae-ee)*a,(te+ee)*b,(ae-z)*a)),y.spot1=new go.Spot(0,.05),y.spot2=new go.Spot(.55,.95),y}),go.Shape.defineFigureGenerator("NorGate",function(ne,b,a){var y=new go.Geometry,E=.5,x=me*E,z=0,ee=.5,te=new go.PathFigure(.8*b,.5*a,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*b,.75*a,.25*b,.25*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.5*a,(z+x)*b,(ee-E)*a,.7*b,(ee-x)*a)),E=.1,x=me*.1,z=.9,ee=.5;var ae=new go.PathFigure((z-E)*b,ee*a,!0);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-E)*a,(z-E)*b,(ee-x)*a,(z-x)*b,(ee-E)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*b,ee*a,(z+x)*b,(ee-E)*a,(z+E)*b,(ee-x)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+E)*a,(z+E)*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*b,ee*a,(z-x)*b,(ee+E)*a,(z-E)*b,(ee+x)*a)),y.spot1=new go.Spot(.2,.25),y.spot2=new go.Spot(.6,.75),y}),go.Shape.defineFigureGenerator("OrGate",function(ne,b,a){var y=new go.Geometry,E=.5,x=me*E,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,(z+x+x)*b,(ee-E)*a,.8*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*b,(ee+x)*a,(z+x+x)*b,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*b,.75*a,.25*b,.25*a).close()),y.spot1=new go.Spot(.2,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("XnorGate",function(ne,b,a){var y=new go.Geometry,E=.5,x=me*E,z=.2,ee=.5,te=new go.PathFigure(.1*b,0,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*b,a,.35*b,.25*a,.35*b,.75*a));var ae=new go.PathFigure(.8*b,.5*a,!0);y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*b,a,.7*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*b,0,.45*b,.75*a,.45*b,.25*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.5*a,(z+x)*b,(ee-E)*a,.7*b,(ee-x)*a)),E=.1,x=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-E)*b,ee*a,!0);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-E)*a,(z-E)*b,(ee-x)*a,(z-x)*b,(ee-E)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*b,ee*a,(z+x)*b,(ee-E)*a,(z+E)*b,(ee-x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+E)*a,(z+E)*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*b,ee*a,(z-x)*b,(ee+E)*a,(z-E)*b,(ee+x)*a)),y.spot1=new go.Spot(.4,.25),y.spot2=new go.Spot(.65,.75),y}),go.Shape.defineFigureGenerator("XorGate",function(ne,b,a){var y=new go.Geometry,E=.5,x=me*E,z=.2,ee=.5,te=new go.PathFigure(.1*b,0,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*b,a,.35*b,.25*a,.35*b,.75*a));var ae=new go.PathFigure(.2*b,0,!0);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,(z+x)*b,(ee-E)*a,.9*b,(ee-x)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*b,a,.9*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*b,0,.45*b,.75*a,.45*b,.25*a).close()),y.spot1=new go.Spot(.4,.25),y.spot2=new go.Spot(.8,.75),y}),go.Shape.defineFigureGenerator("Capacitor",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Move,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),y}),go.Shape.defineFigureGenerator("Resistor",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.5*a,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.3*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.4*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.7*b,.5*a)),y}),go.Shape.defineFigureGenerator("Inductor",function(ne,b,a){var y=new go.Geometry,E=me*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-E*.5)*b,a,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,0,(z-E)*b,a,(z-x)*b,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,a,(z+x)*b,0,(z+E)*b,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,0,(z-E)*b,a,(z-x)*b,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,a,(z+x)*b,0,(z+E)*b,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,0,(z-E)*b,a,(z-x)*b,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,a,(z+x)*b,0,(z+E)*b,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,0,(z-E)*b,a,(z-x)*b,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E*.5)*b,a,(z+x)*b,0,(z+E)*b,a)),y}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,b,a){var y=new go.Geometry,E=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*b,ee*a,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-x)*a,(z-x)*b,(ee-E)*a,(z-E)*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,(z+E)*b,(ee-x)*a,(z+x)*b,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z+x)*b,(ee+E)*a,(z+E)*b,(ee+x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-E)*b,(ee+x)*a,(z-x)*b,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*b,ee*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*b,ee*a,z*b,(ee-x)*a,z*b,(ee+x)*a)),y}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.75*a,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E.add(new go.PathSegment(go.PathSegment.Move,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),y}),go.Shape.defineFigureGenerator("Diode",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),y.spot1=new go.Spot(0,.25),y.spot2=new go.Spot(.5,.75),y}),go.Shape.defineFigureGenerator("Wifi",function(ne,b,a){var y=new go.Geometry,E=b,x=a;b=b*.38,a=a*.6;var z=me*.8,ee=.8,te=0,ae=.5,oe=(E-b)/2,ie=(x-a)/2,Se=new go.PathFigure(te*b+oe,(ae+ee)*a+ie,!0);y.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*b+oe,ae*a+ie,(te-z)*b+oe,(ae+ee)*a+ie,(te-ee)*b+oe,(ae+z)*a+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*b+oe,(ae-ee)*a+ie,(te-ee)*b+oe,(ae-z)*a+ie,(te-z)*b+oe,(ae-ee)*a+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*b+oe,ae*a+ie,te*b+oe,(ae-ee)*a+ie,(te-ee+z*.5)*b+oe,(ae-z)*a+ie)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*b+oe,(ae+ee)*a+ie,(te-ee+z*.5)*b+oe,(ae+z)*a+ie,te*b+oe,(ae+ee)*a+ie).close()),z=me*.4,ee=.4,te=.2,ae=.5;var se=new go.PathFigure(te*b+oe,(ae+ee)*a+ie,!0);y.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*b+oe,ae*a+ie,(te-z)*b+oe,(ae+ee)*a+ie,(te-ee)*b+oe,(ae+z)*a+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*b+oe,(ae-ee)*a+ie,(te-ee)*b+oe,(ae-z)*a+ie,(te-z)*b+oe,(ae-ee)*a+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*b+oe,ae*a+ie,te*b+oe,(ae-ee)*a+ie,(te-ee+z*.5)*b+oe,(ae-z)*a+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*b+oe,(ae+ee)*a+ie,(te-ee+z*.5)*b+oe,(ae+z)*a+ie,te*b+oe,(ae+ee)*a+ie).close()),z=me*.2,ee=.2,te=.5,ae=.5;var be=new go.PathFigure((te-ee)*b+oe,ae*a+ie,!0);y.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,te*b+oe,(ae-ee)*a+ie,(te-ee)*b+oe,(ae-z)*a+ie,(te-z)*b+oe,(ae-ee)*a+ie)),be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*b+oe,ae*a+ie,(te+z)*b+oe,(ae-ee)*a+ie,(te+ee)*b+oe,(ae-z)*a+ie)),be.add(new go.PathSegment(go.PathSegment.Bezier,te*b+oe,(ae+ee)*a+ie,(te+ee)*b+oe,(ae+z)*a+ie,(te+z)*b+oe,(ae+ee)*a+ie)),be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*b+oe,ae*a+ie,(te-z)*b+oe,(ae+ee)*a+ie,(te-ee)*b+oe,(ae+z)*a+ie)),z=me*.4,ee=.4,te=.8,ae=.5;var we=new go.PathFigure(te*b+oe,(ae-ee)*a+ie,!0);y.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*b+oe,ae*a+ie,(te+z)*b+oe,(ae-ee)*a+ie,(te+ee)*b+oe,(ae-z)*a+ie)),we.add(new go.PathSegment(go.PathSegment.Bezier,te*b+oe,(ae+ee)*a+ie,(te+ee)*b+oe,(ae+z)*a+ie,(te+z)*b+oe,(ae+ee)*a+ie)),we.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*b+oe,ae*a+ie,te*b+oe,(ae+ee)*a+ie,(te+ee-z*.5)*b+oe,(ae+z)*a+ie)),we.add(new go.PathSegment(go.PathSegment.Bezier,te*b+oe,(ae-ee)*a+ie,(te+ee-z*.5)*b+oe,(ae-z)*a+ie,te*b+oe,(ae-ee)*a+ie).close()),z=me*.8,ee=.8,te=1,ae=.5;var Te=new go.PathFigure(te*b+oe,(ae-ee)*a+ie,!0);return y.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*b+oe,ae*a+ie,(te+z)*b+oe,(ae-ee)*a+ie,(te+ee)*b+oe,(ae-z)*a+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,te*b+oe,(ae+ee)*a+ie,(te+ee)*b+oe,(ae+z)*a+ie,(te+z)*b+oe,(ae+ee)*a+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*b+oe,ae*a+ie,te*b+oe,(ae+ee)*a+ie,(te+ee-z*.5)*b+oe,(ae+z)*a+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,te*b+oe,(ae-ee)*a+ie,(te+ee-z*.5)*b+oe,(ae-z)*a+ie,te*b+oe,(ae-ee)*a+ie).close()),y}),go.Shape.defineFigureGenerator("Email",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*b,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*b,.54*a)),y}),go.Shape.defineFigureGenerator("Ethernet",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.35*b,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.65*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*b,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.35*b,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.35*b,0).close());var x=new go.PathFigure(.1*b,a,!0,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*b,a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*b,a).close());var z=new go.PathFigure(.6*b,a,!0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*b,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*b,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*b,a).close());var ee=new go.PathFigure(0,.5*a,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*b,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*b,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*b,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*b,.6*a)),y}),go.Shape.defineFigureGenerator("Power",function(ne,b,a){var y=new go.Geometry,E=me*.4,x=.4,z=.5,ee=.5,te=re(),ae=re(),oe=re(),ie=re();et(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.5,te,te,ae,oe,ie);var Se=ge(ae.x,ae.y),se=new go.PathFigure(ae.x*b,ae.y*a,!0);y.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,oe.x*b,oe.y*a,ie.x*b,ie.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z+x)*b,(ee+E)*a,(z+E)*b,(ee+x)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,(z-E)*b,(ee+x)*a,(z-x)*b,(ee+E)*a)),et(z-x,ee,z-x,ee-E,z-E,ee-x,z,ee-x,.5,oe,ie,ae,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*b,ae.y*a,oe.x*b,oe.y*a,ie.x*b,ie.y*a)),E=me*.3,x=.3,et(z-x,ee,z-x,ee-E,z-E,ee-x,z,ee-x,.5,oe,ie,ae,te,te),se.add(new go.PathSegment(go.PathSegment.Line,ae.x*b,ae.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*b,ee*a,ie.x*b,ie.y*a,oe.x*b,oe.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+x)*a,(z-x)*b,(ee+E)*a,(z-E)*b,(ee+x)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*b,ee*a,(z+E)*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),et(z,ee-x,z+E,ee-x,z+x,ee-E,z+x,ee,.5,te,te,ae,oe,ie),se.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*b,ae.y*a,ie.x*b,ie.y*a,oe.x*b,oe.y*a).close());var se=new go.PathFigure(.45*b,0,!0);return y.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*b,.5*a)),se.add(new go.PathSegment(go.PathSegment.Line,.55*b,.5*a)),se.add(new go.PathSegment(go.PathSegment.Line,.55*b,0).close()),ue(te),ue(ae),ue(oe),ue(ie),ue(Se),y.spot1=new go.Spot(.25,.45),y.spot2=new go.Spot(.75,.8),y}),go.Shape.defineFigureGenerator("Fallout",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,a/2,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,180,360,b/2,a/2,b/2,a/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*b,(.8+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*b,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*b,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*b,(.8+te)*a).close())}return x(E,0,0),x(E,.4,0),x(E,.2,-.3),y}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.2*b,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.7*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.3*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),y.spot1=new go.Spot(.3,.3),y.spot2=new go.Spot(.7,.7),y}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.37*b,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.11*a)),E.add(new go.PathSegment(go.PathSegment.Line,.77*b,.04*a)),E.add(new go.PathSegment(go.PathSegment.Line,.33*b,.49*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.37*a)),E.add(new go.PathSegment(go.PathSegment.Line,.63*b,.86*a)),E.add(new go.PathSegment(go.PathSegment.Line,.77*b,.91*a)),E.add(new go.PathSegment(go.PathSegment.Line,.34*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.34*b,.78*a)),E.add(new go.PathSegment(go.PathSegment.Line,.44*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.65*b,.56*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),y}),go.Shape.defineFigureGenerator("FireHazard",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.1*b,a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.29*b,0,-.25*b,.63*a,.45*b,.44*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.51*b,.42*a,.48*b,.17*a,.54*b,.35*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.59*b,.18*a,.59*b,.29*a,.58*b,.28*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.75*b,.6*a,.8*b,.34*a,.88*b,.43*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.88*b,.31*a,.87*b,.48*a,.88*b,.43*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*b,a,1.17*b,.76*a,.82*b,.8*a).close()),y.spot1=new go.Spot(.07,.445),y.spot2=new go.Spot(.884,.958),y}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,b,a){var y=new go.Geometry,E=.5,x=0,z=0,ee=E*me,te=.4*Math.SQRT2/2+.5,ae=.5-.5*Math.SQRT2/2,oe=1,ie=.5,Se=.5,se=0,be=new go.PathFigure(te*b,(1-ae)*a,!1);return y.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,oe*b,ie*a,oe*b,.7*a,oe*b,ie*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+x)*b,(se+x)*a,(.5+E+x)*b,(.5-ee+x)*a,(.5+ee+x)*b,(.5-E+x)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+x)*b,(.5+z)*a,(.5-ee+x)*b,(.5-E+z)*a,(.5-E+x)*b,(.5-ee+z)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*b,.9*a,(.5-E+x)*b,(.5+ee+z)*a,(.5-ee+x)*b,.9*a)),be.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*b,.8*a)),be.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*b,.9*a)),be.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*b,.95*a)),y}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Move,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),y}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Move,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),y}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);y.add(E);var x=new go.PathFigure(b,a,!1);y.add(x);var z=new go.PathFigure(0,.5*a,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.5*a,.2*b,.35*a,.3*b,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,.7*b,.65*a,.8*b,.65*a)),y}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.5*a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a).close()),y}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.2*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var E=new go.PathFigure(0,.2*a,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.2*a)),y}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.7*b,a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.3*b,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*b,0,.6*b,.5*a,0,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.7*b,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.7*b,a,.4*b,.5*a,b,.5*a).close());var x=new go.PathFigure(.45*b,.73*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*b,.73*a)),x.add(new go.PathSegment(go.PathSegment.Move,.38*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.31*b,.27*a)),x.add(new go.PathSegment(go.PathSegment.Line,.56*b,.27*a)),y}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);y.add(E);var x=new go.PathFigure(.335*b,(1-.555)*a,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*b,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*b,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*b,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,b,.68*a,(1-.12)*b,.46*a,(1-.02)*b,.54*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*b,(1-.555)*a,.02*b,.54*a,.12*b,.46*a)),x.add(new go.PathSegment(go.PathSegment.Line,.365*b,(1-.595)*a));var z=.5-.285,ee=.5,te=z,ae=Math.PI/4,oe=4*(1-Math.cos(ae))/(3*Math.sin(ae)),ie=oe*.5,Se=z,se=z,be=oe*Se,we=oe*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*b,te*a,(ee-(be+Se)/2)*b,(te+(se+we)/2)*a,(ee-Se)*b,(te+we)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*b,(te-se)*a,(ee-Se)*b,(te-we)*a,(ee-be)*b,(te-se)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*b,te*a,(ee+be)*b,(te-se)*a,(ee+Se)*b,(te-we)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*b,(1-.595)*a,(ee+Se)*b,(te+we)*a,(ee+(be+Se)/2)*b,(te+(se+we)/2)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*b,(1-.595)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*b,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*b,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,.335*b,(1-.405)*a));var Te=new go.PathFigure(.2*b,a,!1);y.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.2*b,.8*a));var tt=new go.PathFigure(.8*b,a,!1);return y.add(tt),tt.add(new go.PathSegment(go.PathSegment.Line,.8*b,.8*a)),y}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.1*b,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.9*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,a).close());var x=new go.PathFigure(.2*b,.2*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.8*a)),y}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.33*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.66*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.66*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.33*b,.5*a).close()),y}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);y.add(E);var x=new go.PathFigure(b,a,!1);y.add(x);var z=new go.PathFigure(.1*b,a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a).close()),y}),go.Shape.defineFigureGenerator("Caution",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.05*b,a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.1*b,.8*a,0,a,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.45*b,.1*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.55*b,.1*a,.5*b,0,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.95*b,.9*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*b,a,b,a,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.05*b,a));var x=.05;return E.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*b,.875*a)),E.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*b,.875*a,x*b,x*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*b,.75*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.325*a,.575*b,.725*a,.625*b,.375*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.75*a,.375*b,.375*a,.425*b,.725*a)),y}),go.Shape.defineFigureGenerator("Recycle",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.45*b,.95*a,!1);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.2*b,.95*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.185*b,.85*a,.17*b,.95*a,.15*b,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.235*b,.75*a)),E.add(new go.PathSegment(go.PathSegment.Line,.3*b,.625*a)),E.add(new go.PathSegment(go.PathSegment.Line,.35*b,.65*a)),E.add(new go.PathSegment(go.PathSegment.Line,.275*b,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.05*b,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.05*b,.575*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.1875*b,.95*a,0,.675*a,0,.7*a)),E.add(new go.PathSegment(go.PathSegment.Move,.45*b,.95*a)),E.add(new go.PathSegment(go.PathSegment.Line,.45*b,.775*a)),E.add(new go.PathSegment(go.PathSegment.Line,.22*b,.775*a));var x=new go.PathFigure(.475*b,.2*a,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.225*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*b,.175*a)),x.add(new go.PathSegment(go.PathSegment.Line,.325*b,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*b,.05*a,.35*b,0,.375*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*b,.375*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*b,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*b,.315*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.32*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*b,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*b,0,.65*b,.05*a,.625*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*b,.0105*a));var z=new go.PathFigure(.675*b,.575*a,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*b,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*b,.95*a,b,.8*a,b,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*b,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*b,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*b,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*b,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*b,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,b,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*b,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*b,.775*a)),y}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,b,a){var y=new go.Geometry,E=.5,x=me*.5,z=new go.PathFigure(b,E*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*b,a,b,(E+x)*a,(E+x)*b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*a,(E-x)*b,a,0,(E+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*b,0,0,(E-x)*a,(E-x)*b,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,E*a,(E+x)*b,0,b,(E-x)*a));var ee=new go.PathFigure(E*b,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*b,.15*a)),ee.add(new go.PathSegment(go.PathSegment.Move,E*b,a)),ee.add(new go.PathSegment(go.PathSegment.Line,E*b,.85*a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*b,E*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b,E*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*b,E*a)),ee.add(new go.PathSegment(go.PathSegment.Move,E*b,E*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*b,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Move,E*b,E*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*b,.54*a)),y}),go.Shape.defineFigureGenerator("Package",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.15*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,.15*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,.15*a,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*b,.15*a).close()),y.spot1=new go.Spot(0,.1),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Class",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,.5*a).close()),y}),go.Shape.defineFigureGenerator("Component",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b,a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.15*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.15*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a).close());var x=new go.PathFigure(0,.2*a,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*b,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*b,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*b,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),y}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.15*b,.6*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.15*b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.15*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.85*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.85*b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.15*b,.6*a));var x=new go.PathFigure(.15*b,.6*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*b,.6*a)),y}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b,a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.66*b,.33*a)),E.add(new go.PathSegment(go.PathSegment.Line,.66*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.33*b,.33*a)),E.add(new go.PathSegment(go.PathSegment.Line,.33*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a).close()),y}),go.Shape.defineFigureGenerator("Workcell",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.65*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.65*b,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.35*b,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.35*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y}),go.Shape.defineFigureGenerator("Supermarket",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.33*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),E.add(new go.PathSegment(go.PathSegment.Move,b,.33*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.66*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),E.add(new go.PathSegment(go.PathSegment.Move,b,.66*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),y}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.6*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(b,.8*a,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*b,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*b,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.8*a).close());var z=.1,ee=me*.1,te=.2,ae=.9,oe=new go.PathFigure((te-z)*b,ae*a,!0);y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae-z)*a,(te-z)*b,(ae-ee)*a,(te-ee)*b,(ae-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*b,ae*a,(te+ee)*b,(ae-z)*a,(te+z)*b,(ae-ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae+z)*a,(te+z)*b,(ae+ee)*a,(te+ee)*b,(ae+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*b,ae*a,(te-ee)*b,(ae+z)*a,(te-z)*b,(ae+ee)*a).close()),z=.1,ee=me*.1,te=.8,ae=.9;var ie=new go.PathFigure((te-z)*b,ae*a,!0);return y.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae-z)*a,(te-z)*b,(ae-ee)*a,(te-ee)*b,(ae-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*b,ae*a,(te+ee)*b,(ae-z)*a,(te+z)*b,(ae-ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*b,(ae+z)*a,(te+z)*b,(ae+ee)*a,(te+ee)*b,(ae+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*b,ae*a,(te-ee)*b,(ae+z)*a,(te-z)*b,(ae+ee)*a).close()),y}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.2*b,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.2*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,0)),E.add(new go.PathSegment(go.PathSegment.Move,.5*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*b,a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,a)),y}),go.Shape.defineFigureGenerator("Forklift",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*a,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*b,.8*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*b,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*b,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*b,.8*a));var ee=new go.PathFigure(.5*b,.7*a,!1);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b,.7*a));var te=.1,ae=me*.1,oe=.1,ie=.9,Se=new go.PathFigure((oe-te)*b,ie*a,!0);y.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe*b,(ie-te)*a,(oe-te)*b,(ie-ae)*a,(oe-ae)*b,(ie-te)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*b,ie*a,(oe+ae)*b,(ie-te)*a,(oe+te)*b,(ie-ae)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,oe*b,(ie+te)*a,(oe+te)*b,(ie+ae)*a,(oe+ae)*b,(ie+te)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*b,ie*a,(oe-ae)*b,(ie+te)*a,(oe-te)*b,(ie+ae)*a)),te=.1,ae=me*.1,oe=.4,ie=.9;var se=new go.PathFigure((oe-te)*b,ie*a,!0);return y.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,oe*b,(ie-te)*a,(oe-te)*b,(ie-ae)*a,(oe-ae)*b,(ie-te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*b,ie*a,(oe+ae)*b,(ie-te)*a,(oe+te)*b,(ie-ae)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,oe*b,(ie+te)*a,(oe+te)*b,(ie+ae)*a,(oe+ae)*b,(ie+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*b,ie*a,(oe-ae)*b,(ie+te)*a,(oe-te)*b,(ie+ae)*a)),y}),go.Shape.defineFigureGenerator("RailShipment",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.1*b,.4*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*b,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.45*b,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,.4*a).close());var x=new go.PathFigure(.45*b,.7*a,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*b,.7*a));var z=new go.PathFigure(.55*b,.4*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*b,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*b,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*b,.4*a).close());var oe=.05,ie=me*.05,Se=.175,se=.95,ee=new go.PathFigure((Se-oe)*b,se*a,!0);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*b,(se-oe)*a,(Se-oe)*b,(se-ie)*a,(Se-ie)*b,(se-oe)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*b,se*a,(Se+ie)*b,(se-oe)*a,(Se+oe)*b,(se-ie)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*b,(se+oe)*a,(Se+oe)*b,(se+ie)*a,(Se+ie)*b,(se+oe)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*b,se*a,(Se-ie)*b,(se+oe)*a,(Se-oe)*b,(se+ie)*a));var oe=.05,ie=me*.05,Se=.375,se=.95,te=new go.PathFigure((Se-oe)*b,se*a,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*b,(se-oe)*a,(Se-oe)*b,(se-ie)*a,(Se-ie)*b,(se-oe)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*b,se*a,(Se+ie)*b,(se-oe)*a,(Se+oe)*b,(se-ie)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,Se*b,(se+oe)*a,(Se+oe)*b,(se+ie)*a,(Se+ie)*b,(se+oe)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*b,se*a,(Se-ie)*b,(se+oe)*a,(Se-oe)*b,(se+ie)*a));var oe=.05,ie=me*.05,Se=.625,se=.95,ae=new go.PathFigure((Se-oe)*b,se*a,!0);y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*b,(se-oe)*a,(Se-oe)*b,(se-ie)*a,(Se-ie)*b,(se-oe)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*b,se*a,(Se+ie)*b,(se-oe)*a,(Se+oe)*b,(se-ie)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*b,(se+oe)*a,(Se+oe)*b,(se+ie)*a,(Se+ie)*b,(se+oe)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*b,se*a,(Se-ie)*b,(se+oe)*a,(Se-oe)*b,(se+ie)*a));var oe=.05,ie=me*.05,Se=.825,se=.95,be=new go.PathFigure((Se-oe)*b,se*a,!0);y.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Se*b,(se-oe)*a,(Se-oe)*b,(se-ie)*a,(Se-ie)*b,(se-oe)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+oe)*b,se*a,(Se+ie)*b,(se-oe)*a,(Se+oe)*b,(se-ie)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,Se*b,(se+oe)*a,(Se+oe)*b,(se+ie)*a,(Se+ie)*b,(se+oe)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-oe)*b,se*a,(Se-ie)*b,(se+oe)*a,(Se-oe)*b,(se+ie)*a).close());var we=new go.PathFigure(0,a,!1);return y.add(we),we.add(new go.PathSegment(go.PathSegment.Line,b,a).close()),y}),go.Shape.defineFigureGenerator("Warehouse",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,.2*a).close());var z=new go.PathFigure(.15*b,a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*b,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*b,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*b,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*b,a).close());var ee=.05,te=me*.05,ae=.35,oe=.775,ie=new go.PathFigure((ae-ee)*b,oe*a,!0);return y.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*b,(oe-ee)*a,(ae-ee)*b,(oe-te)*a,(ae-te)*b,(oe-ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*b,oe*a,(ae+te)*b,(oe-ee)*a,(ae+ee)*b,(oe-te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*b,(oe+ee)*a,(ae+ee)*b,(oe+te)*a,(ae+te)*b,(oe+ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*b,oe*a,(ae-te)*b,(oe+ee)*a,(ae-ee)*b,(oe+te)*a).close()),y}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.9*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.9*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Move,.1*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*b,.8*a).close()),y}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.75*a,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.75*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y}),go.Shape.defineFigureGenerator("Bookmark",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Move,.2*b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*b,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,.4*a)),y}),go.Shape.defineFigureGenerator("Bookmark",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Move,.2*b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*b,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*b,.4*a)),y}),go.Shape.defineFigureGenerator("Globe",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.5*b,0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*b,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,b,.5*a,.75*b,0,b,.25*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,b,.75*a,.75*b,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*b,a,0,.75*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,0,.25*a,.25*b,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,a,.15*b,.25*a,.15*b,.75*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,.85*b,.75*a,.85*b,.25*a)),E.add(new go.PathSegment(go.PathSegment.Move,.1675*b,.15*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8325*b,.15*a,.35*b,.3*a,.65*b,.3*a)),E.add(new go.PathSegment(go.PathSegment.Move,.1675*b,.85*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8325*b,.85*a,.35*b,.7*a,.65*b,.7*a)),y}),go.Shape.defineFigureGenerator("Wave",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.25*a,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*b,.25*a,.1*b,0,.2*b,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.7*b,.25*a,.425*b,.5*a,.575*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,b,.25*a,.8*b,0,.9*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.75*a)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*b,.75*a,.1*b,.5*a,.2*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.7*b,.75*a,.425*b,a,.575*b,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,b,.75*a,.8*b,.5*a,.9*b,.5*a)),y}),go.Shape.defineFigureGenerator("Operator",function(ne,b,a){var y=new go.Geometry,E=.3,x=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-E)*b,ee*a,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-E)*a,(z-E)*b,(ee-x)*a,(z-x)*b,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*b,ee*a,(z+x)*b,(ee-E)*a,(z+E)*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+E)*a,(z+E)*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*b,ee*a,(z-x)*b,(ee+E)*a,(z-E)*b,(ee+x)*a));var ae=new go.PathFigure(0,.7*a,!1);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,b,.7*a,0,0,b,0)),y}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.5*b,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.65*a,.65*b,.3*a,.65*b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,.35*b,.5*a,.35*b,.3*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*b,.65*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*b,.6*a,.1*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.65*a,.2*b,a,.35*b,.95*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*b,.65*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,b,a,.7*b,.6*a,.9*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.65*a,.8*b,a,.65*b,.95*a)),y}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*b,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*b,a,0,a,.4*b,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.4*a,.8*b,a,.85*b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,0)),y}),go.Shape.defineFigureGenerator("Battery",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Move,.4*b,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*b,.1*a));var x=new go.PathFigure(0,.6*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,b,.4*a)),y}),go.Shape.defineFigureGenerator("Delete",function(ne,b,a){var y=new go.Geometry,E=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*b,ee*a,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-E)*a,(z-E)*b,(ee-x)*a,(z-x)*b,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*b,ee*a,(z+x)*b,(ee-E)*a,(z+E)*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+E)*a,(z+E)*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*b,ee*a,(z-x)*b,(ee+E)*a,(z-E)*b,(ee+x)*a));var ae=new go.PathFigure(.15*b,.5*a,!1);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.85*b,.5*a)),y}),go.Shape.defineFigureGenerator("Flag",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.1*a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.1*a,.15*b,0,.35*b,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,b,.1*a,.65*b,.2*a,.85*b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.5*a,.85*b,.6*a,.65*b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*b,.4*a,.15*b,.4*a).close()),y}),go.Shape.defineFigureGenerator("Help",function(ne,b,a){var y=new go.Geometry,E=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*b,ee*a,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-E)*a,(z-E)*b,(ee-x)*a,(z-x)*b,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*b,ee*a,(z+x)*b,(ee-E)*a,(z+E)*b,(ee-x)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+E)*a,(z+E)*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*b,ee*a,(z-x)*b,(ee+E)*a,(z-E)*b,(ee+x)*a).close()),E=.05,x=me*.05,z=.5,ee=.8;var ae=new go.PathFigure((z-E)*b,ee*a,!1);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee-E)*a,(z-E)*b,(ee-x)*a,(z-x)*b,(ee-E)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*b,ee*a,(z+x)*b,(ee-E)*a,(z+E)*b,(ee-x)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*b,(ee+E)*a,(z+E)*b,(ee+x)*a,(z+x)*b,(ee+E)*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*b,ee*a,(z-x)*b,(ee+E)*a,(z-E)*b,(ee+x)*a).close()),ae.add(new go.PathSegment(go.PathSegment.Move,.5*b,.7*a)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*b,.5*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*b,.2*a,.75*b,.475*a,.75*b,.225*a)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.3*b,.35*a,.4*b,.2*a,.3*b,.25*a)),y}),go.Shape.defineFigureGenerator("Location",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(.5*b,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*b,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*b,0,.975*b,.025*a,.5*b,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*b,.5*a,.5*b,0,.025*b,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*b,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*b,.3*a,.1*b,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.5*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*b,.5*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.3*a,.25*b,0,.75*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.3*a)),y}),go.Shape.defineFigureGenerator("Unlocked",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.5*a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*b,.5*a,!1);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*b,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*b,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*b,.3*a,.25*b,0,.75*b,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*b,.35*a)),y}),go.Shape.defineFigureGenerator("Gear",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(.9375*b,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*b,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*b,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*b,.3316875*a,.79840625*b,.39915625*a,.7834375*b,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*b,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*b,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*b,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*b,.19378125*a,.64228125*b,.2188125*a,.603875*b,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*b,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*b,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*b,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*b,.239375*a,.39759375*b,.20190625*a,.36053125*b,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*b,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*b,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*b,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*b,.4375*a,.21765625*b,.36059375*a,.201875*b,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*b,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*b,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*b,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*b,.67596875*a,.20221875*b,.603875*a,.21884375*b,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*b,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*b,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*b,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*b,.80621875*a,.36353125*b,.78340625*a,.3991875*b,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*b,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*b,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*b,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*b,.760625*a,.602375*b,.79809375*a,.63946875*b,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*b,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*b,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*b,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*b,.56246875*a,.78234375*b,.63940625*a,.798125*b,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*b,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*b,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*b,.5*a,.1*b,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.5*a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.1*b,.3*a,0,.375*a,.05*b,.325*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.45*b,.075*a,.3*b,.225*a,.4*b,.175*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.525*b,.075*a,.46*b,.05*a,.525*b,.05*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*b,.4*a,.525*b,.275*a,.475*b,.325*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*b,.4*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*b,.55*a,b,.4*a,b,.55*a)),E.add(new go.PathSegment(go.PathSegment.Line,.425*b,.55*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*b,.55*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.6*b,.7*a,.675*b,.55*a,.675*b,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*b,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,.575*b,.7*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*b,.85*a,.65*b,.7*a,.65*b,.85*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*b,.85*a)),E.add(new go.PathSegment(go.PathSegment.Line,.525*b,.85*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.535*b,a,.61*b,.85*a,.61*b,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*b,a,0,a).close()),y}),go.Shape.defineFigureGenerator("Map",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,.2*a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Line,.25*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.add(new go.PathSegment(go.PathSegment.Move,.25*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.25*b,.8*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*b,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a)),E.add(new go.PathSegment(go.PathSegment.Move,.75*b,0)),E.add(new go.PathSegment(go.PathSegment.Line,.75*b,.8*a)),y}),go.Shape.defineFigureGenerator("Eject",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,a,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b,a)),E.add(new go.PathSegment(go.PathSegment.Line,b,a*.7)),E.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var x=new go.PathFigure(0,a*.6,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*b,0).close()),y}),go.Shape.defineFigureGenerator("Pencil",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*b,.1*a)).add(new go.PathSegment(go.PathSegment.Line,b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*b,a)).add(new go.PathSegment(go.PathSegment.Line,.1*b,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*1,a*1,!1);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),E.add(new go.PathSegment(go.PathSegment.Line,.046*b,a*.85)),E.add(new go.PathSegment(go.PathSegment.Line,.046*b,a*.45)),E.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),E.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),E.add(new go.PathSegment(go.PathSegment.Line,.046*b,a*.3)),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*b,a*.3)),E.add(new go.PathSegment(go.PathSegment.Line,b,a*.3)),E.add(new go.PathSegment(go.PathSegment.Line,b,a*.45)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*b,a*.45)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*b,a*.85)),E.add(new go.PathSegment(go.PathSegment.Line,b,a*.85).close());var x=new go.PathFigure(.126*b,.85*a,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*b,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*b,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*b,.85*a).close());var z=new go.PathFigure(.402*b,.85*a,!1);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*b,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*b,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*b,.85*a).close());var ee=new go.PathFigure(.678*b,.85*a,!1);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*b,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*b,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*b,.85*a).close());var te=new go.PathFigure(.5*b,.1*a,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*b,.3*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*b,.3*a).close()),y}),go.Shape.defineFigureGenerator("Staircase",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,a*1,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b*.2,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.2,a*.8)),E.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.8)),E.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.6)),E.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.6)),E.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.4)),E.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*.4)),E.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*.2)),E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.2)),E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.15)),E.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.15)),E.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.35)),E.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.35)),E.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,b*.35,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,b*.35,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.15,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.15,a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),y}),go.Shape.defineFigureGenerator("5Bars",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,a*1,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b*.184,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.184,a*(1-.184)).close());var x=new go.PathFigure(b*.204,a,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*.204,a*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,b*.388,a*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,b*.388,a*1).close());var z=new go.PathFigure(b*.408,a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,b*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,b*.592,a*1).close());var ee=new go.PathFigure(b*.612,a,!0);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*.612,a*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,b*.796,a*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,b*.796,a*1).close());var te=new go.PathFigure(b*.816,a,!0);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*.816,a*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,b*1,a*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1).close()),y}),go.Shape.defineFigureGenerator("PC",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.3,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.3,0).close());var x=new go.PathFigure(b*.055,.07*a,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.07)),x.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,b*.055,a*.1).close());var z=new go.PathFigure(b*.055,.13*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,b*.055,a*.16).close());var ee=new go.PathFigure(b*.055,.18*a,!0);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.245,a*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.055,a*.21).close());var te=new go.PathFigure(b*1,0,!0);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.65)),te.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.65).close()),y}),go.Shape.defineFigureGenerator("Plane",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(.55*b,a,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*b,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*b,.475*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.35*b,.525*a,0,.4*a,.225*b,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*b,.475*a)),E.add(new go.PathSegment(go.PathSegment.Line,.15*b,.35*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*b,.325*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*b,.325*a)),E.add(new go.PathSegment(go.PathSegment.Line,.85*b,.1*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*b,.2*a,.975*b,0,b,.08*a)),E.add(new go.PathSegment(go.PathSegment.Line,.7*b,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*b,.95*a)),E.add(new go.PathSegment(go.PathSegment.Line,.55*b,a).close()),y}),go.Shape.defineFigureGenerator("Key",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*1,a*.5,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b*.9,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.5,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.5,.35*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.45,.35*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.3,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.15,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.15,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.3,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.45,.65*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.5,.65*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.5,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.6,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.65,.55*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.7,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.75,.55*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.8,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.85,.575*a)),E.add(new go.PathSegment(go.PathSegment.Line,b*.9,.6*a).close()),E.add(new go.PathSegment(go.PathSegment.Move,.17*b,.425*a)),E.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*b,.5*a,.075*b,.075*a).close()),y}),go.Shape.defineFigureGenerator("FilmTape",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(0,0,!1);y.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,b*0,b*.3,b*.055)),E.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.08,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.08,a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*1),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*1),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*2),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*2),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*3),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*3),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*4),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*4),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*5),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*5),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*6),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*6),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*7),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*7),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*8),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*8),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*9),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*9),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*10),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*10),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*11),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*11),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*12),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*12),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*13),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*13),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*14),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*14),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*15),a*.95)),E.add(new go.PathSegment(go.PathSegment.Line,b*(.08+.056*15),a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1));var x=new go.PathFigure(0,0,!1);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*1,a*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,b*1,b*.3,b*.055)),x.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1));var z=new go.PathFigure(b*.11,a*.1,!1);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,b*.11,a*.8).close());var ee=new go.PathFigure(b*(.11+.24133333*1+.028*1),a*.1,!1);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*2+.028*1),a*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*2+.028*1),a*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*1+.028*1),a*.8).close());var te=new go.PathFigure(b*(.11+.24133333*2+.028*2),a*.1,!1);return y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*3+.028*2),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*3+.028*2),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,b*(.11+.24133333*2+.028*2),a*.8).close()),y}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,b,a){var y=new go.Geometry,E=8,x=E*me,z=new go.PathFigure(E,0,!1);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,b,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,b-E,a,b,a-x,b-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,x,x,0).close());var ee=new go.PathFigure(b*.83,0,!1);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*.83,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.17,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.17,a*0).close());var te=new go.PathFigure(b*.83,a*1,!1);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*.83,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,b*.17,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,b*.17,a*1).close());var ae=new go.PathFigure(b*.78,a*.05,!1);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*.05)),ae.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*.25)),ae.add(new go.PathSegment(go.PathSegment.Line,b*.78,a*.25).close()),y}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,b,a){var y=ne?ne.parameter1:NaN;(isNaN(y)||y<0)&&(y=15),y=Math.min(y,b/3),y=Math.min(y,a/3);var E=y*me,x=a*.8,z=new go.Geometry,ee=new go.PathFigure(y,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b-y,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b,y,b-E,0,b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,b,x-y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b-y,x,b,x-E,b-E,x)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.7,a)),ee.add(new go.PathSegment(go.PathSegment.Line,b*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,y,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-y,E,x,0,x-E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,E,E,0).close()),E>1?(z.spot1=new go.Spot(0,0,E,E),z.spot2=new go.Spot(1,.8,-E,-E)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*0,a*.45,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b*.25,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.45)),E.add(new go.PathSegment(go.PathSegment.Line,b*.3,a*.45)),E.add(new go.PathSegment(go.PathSegment.Line,b*.3,a*.9)),E.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.9)),E.add(new go.PathSegment(go.PathSegment.Line,b*.65,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.2,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.2,a*.45).close());var x=new go.PathFigure(b*1,a*.55,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,b*.7,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,b*.7,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,b*.35,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*.55).close()),y}),go.Shape.defineFigureGenerator("Windows",function(ne,b,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,b,0)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*b,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*b,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*b,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*b,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*b,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*b,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*b,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*b,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*b,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*b,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*b,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*0,a*.1,!1);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.1)),E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.9)),E.add(new go.PathSegment(go.PathSegment.Line,b*0,a*.9).close());var x=new go.PathFigure(b*.1,a*.2,!0);y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*.1,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,b*.22,a*.285)),x.add(new go.PathSegment(go.PathSegment.Line,b*.1,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,b*.1,a*.37)),x.add(new go.PathSegment(go.PathSegment.Line,b*.275,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,b*.275,a*.25).close());var z=new go.PathFigure(b*.28,a*.37,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,b*.28,a*.41).close()),y}),go.Shape.defineFigureGenerator("Beaker",function(ne,b,a){var y=new go.Geometry,E=15,x=E*me,z=new go.PathFigure(b*.62,a*.475,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,b-E,a,b,a-x,b-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,b*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,b*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,b*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,b*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,b*.62,a*.03).close()),x>1?(y.spot1=new go.Spot(0,0,x,x),y.spot2=new go.Spot(1,1,-x,-x)):(y.spot1=go.Spot.TopLeft,y.spot2=go.Spot.BottomRight),y}),go.Shape.defineFigureGenerator("Download",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*0,a*1,!0);y.add(E);var x=.1/.3;E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*.755,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*.93,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.64,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.61,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.39,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.36,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.07,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.755),a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.8),a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*0,a*(1-x)).close());var z=new go.PathFigure(b*.4,a*0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,b*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,b*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*0).close()),y}),go.Shape.defineFigureGenerator("Bin",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*0,a*1,!0);y.add(E);var x=.1/.3;return E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*.755,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*.93,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.64,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.61,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.39,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.36,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.07,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.755),a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.8),a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*0,a*(1-x)).close()),y}),go.Shape.defineFigureGenerator("Upload",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*0,a*1,!0);y.add(E);var x=.1/.3;E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.8,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*.66,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*.755,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*.93,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.64,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.61,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.39,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.36,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*.07,a*(1-x))),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.755),a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.66),a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*(1-.8),a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*0,a*(1-x)).close());var z=new go.PathFigure(b*.5,a*0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,b*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,b*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,b*.74,a*.25).close()),y}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*.15,a*0,!1);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b*.85,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*.7,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.3,a*1).close()),y}),go.Shape.defineFigureGenerator("Drink",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*.15,a*0,!1);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b*.85,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,b*.7,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.3,a*1).close());var x=new go.PathFigure(b*.235,a*.28,!0);return y.add(x),x.add(new go.PathSegment(go.PathSegment.Line,b*.765,a*.28)),x.add(new go.PathSegment(go.PathSegment.Line,b*.655,a*.97)),x.add(new go.PathSegment(go.PathSegment.Line,b*.345,a*.97).close()),y}),go.Shape.defineFigureGenerator("4Arrows",function(ne,b,a){var y=new go.Geometry,E=new go.PathFigure(b*.5,a*0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,b*.65,a*.25)),E.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.25)),E.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.45)),E.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.45)),E.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.35)),E.add(new go.PathSegment(go.PathSegment.Line,b*1,a*.5)),E.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.65)),E.add(new go.PathSegment(go.PathSegment.Line,b*.75,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,b*.55,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.65,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.5,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,b*.35,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.75)),E.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,b*.25,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,b*.25,a*.65)),E.add(new go.PathSegment(go.PathSegment.Line,b*0,a*.5)),E.add(new go.PathSegment(go.PathSegment.Line,b*.25,a*.35)),E.add(new go.PathSegment(go.PathSegment.Line,b*.25,a*.45)),E.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.45)),E.add(new go.PathSegment(go.PathSegment.Line,b*.45,a*.25)),E.add(new go.PathSegment(go.PathSegment.Line,b*.35,a*.25).close()),y}),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")},44764: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 xe={},ot="5.0",ge={},re=null,ue=!1,$e=!1,et=null,he=!1,ye=null,me=null,Ie=0;Ie<arguments.length;Ie++){var ze=arguments[Ie];if(ze!==null)switch(typeof ze){case"number":ot=ze.toFixed(1);break;case"string":ze.match(new RegExp("^[0-9]\\.[0-9]+$"))?ot=ze:et=ze;break;case"object":typeof ze.is3D!="undefined"?re=ze:ge=ze;break;case"boolean":ue=ze,$e=!0;break}}re===null&&(re={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!$e&&(ue=!0)),et!==null&&ge.id===void 0&&(ge.id=et);var Ce="",Ne="",Be=!1,Le=null,ne=null,b=null,a=!1,y=null,E=null,x=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(Fe){return parseFloat(Fe)>4?parseFloat(Fe):5};xe.setHTML5Codebase=function(Fe,Ae){me=Fe,Et(Fe,Ae)},xe.setJavaCodebase=xe.setJavaCodebaseVersion=xe.isCompiledInstalled=xe.setPreCompiledScriptPath=xe.setPreCompiledResourcePath=function(){},xe.setHTML5CodebaseVersion=function(Fe,Ae){var Xe=parseFloat(Fe);if(Xe!==NaN&&Xe<5){console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead.");return}ye=Fe,Lt(Fe,Ae)},xe.getHTML5CodebaseVersion=function(){return ne},xe.getParameters=function(){return ge},xe.setFontsCSSURL=function(Fe){z=Fe},xe.setGiacJSURL=function(Fe){},xe.setJNLPFile=function(Fe){Ce=Fe},xe.setJNLPBaseDir=function(Fe){},xe.inject=function(){function Fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ae="auto",Xe=ge.id,ht,Qe=!1,ct=0;ct<arguments.length;ct++){var de=arguments[ct];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ae=de:Xe=arguments[ct]):typeof de=="boolean"?Qe=de:de instanceof HTMLElement&&(ht=de)}Ue();function Ue(){if(!he){setTimeout(Ue,200);return}Ae=Ge(Ae);var Dt=ht||document.getElementById(Xe);if(!Dt){console.log("possibly bug on ajax loading? ");return}if(xe.removeExistingApplet(Dt,!1),ge.width===void 0&&Dt.clientWidth&&(ge.width=Dt.clientWidth),ge.height===void 0&&Dt.clientHeight&&(ge.height=Dt.clientHeight),!(ge.width&&ge.height)&&Ae==="html5"&&(delete ge.width,delete ge.height),Le=Ae,Ae==="screenshot")tt(Dt,ge);else{var Nt=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?Nt=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(Nt=(!ae()||Fe())&&oe()),Nt?(Le="screenshot",fe(Dt,ge,Qe,Ae)):Te(Dt,ge,Qe)}}};function ae(){try{return window.self!==window.top}catch(Fe){return!0}}function oe(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}xe.getViews=function(){return re},xe.isJavaInstalled=function(){return!1};var ie=function(Fe){var Ae=function(ct){var de=JSON.parse(ct),Ue=function(At){return At.type=="G"||At.type=="E"},Dt=de.elements?de.elements.filter(Ue)[0]:de;if(!Dt||!Dt.url){Xe();return}ge.fileName=Dt.url,Se(Dt.settings||{}),re.is3D=!0;var Nt="https://www.geogebra.org/images/";xe.setPreviewImage(y||Dt.previewUrl,Nt+"GeoGebra_loading.png",Nt+"applet_play.png"),Fe()},Xe=function(){ge.onError&&ge.onError(),bt("Error: Fetching material (id "+ge.material_id+") failed.",ge)},ht=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+ge.material_id+"?scope=basic";se("https://"+ht+"/api/proxy.php?path="+encodeURIComponent(Qe),Ae,Xe)};function Se(Fe){var Ae=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Xe){Fe[Xe]=!!Fe[Xe]}),Ae.forEach(function(Xe){ge[Xe]===void 0&&Fe[Xe]!==void 0&&(ge[Xe]=Fe[Xe])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function se(Fe,Ae,Xe){var ht=new XMLHttpRequest;ht.open("GET",Fe),ht.onload=function(){Ae(ht.responseText)},ht.onerror=Xe,ht.send()}xe.isHTML5Installed=function(){return!0},xe.getLoadedAppletType=function(){return Le},xe.setPreviewImage=function(Fe,Ae,Xe){y=Fe,E=Ae,x=Xe},xe.removeExistingApplet=function(Fe,Ae){var Xe;typeof Fe=="string"&&(Fe=document.getElementById(Fe)),Le=null;var ht=null;for(Xe=0;Xe<Fe.childNodes.length;Xe++){var Qe=Fe.childNodes[Xe],ct=Qe.className;ct==="applet_screenshot"?Ae?(Qe.style.display="block",Le="screenshot"):Qe.style.display="none":ct!=="applet_scaler prerender"&&(Fe.removeChild(Qe),ht=ct&&ct.indexOf("appletParameters")!=-1?Qe.id:null,Xe--)}var de=ge.id!==void 0?ge.id:ht,Ue=window[de];Ue&&typeof Ue.getBase64=="function"&&(Ue.remove(),window[de]=null)},xe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Fe=xe.getAppletObject();return Fe&&typeof Fe.recalculateEnvironments=="function"?(Fe.recalculateEnvironments(),!0):!1},xe.startAnimation=function(){var Fe=xe.getAppletObject();return Fe&&typeof Fe.startAnimation=="function"?(Fe.startAnimation(),!0):!1},xe.stopAnimation=function(){var Fe=xe.getAppletObject();return Fe&&typeof Fe.stopAnimation=="function"?(Fe.stopAnimation(),!0):!1},xe.getAppletObject=function(){var Fe=ge.id!==void 0?ge.id:"ggbApplet";return window[Fe]},xe.resize=function(){};var be=function(Fe,Ae,Xe){var ht=document.createElement("param");ht.setAttribute("name",Ae),ht.setAttribute("value",Xe),Fe.appendChild(ht)},we=function(Fe){return Fe&&Fe!=="false"},Te=function(Fe,Ae,Xe){te(ne)<=4.2&&(Xe=!0);var ht=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(ht=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var ct=Ae.width,de=Ae.height;if(Ae.disableAutoScale=Ae.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ae.disableAutoScale,Ae.width!==void 0)if(te(ne)<=4.4)we(Ae.showToolBar)&&(Ae.height-=7),we(Ae.showAlgebraInput)&&(Ae.height-=37),Ae.width<605&&we(Ae.showToolBar)&&(Ae.width=605,ct=605);else{var Ue=100;(we(Ae.showToolBar)||we(Ae.showMenuBar))&&(Ae.hasOwnProperty("customToolBar")&&(Ae.customToolbar=Ae.customToolBar),Ue=we(Ae.showMenuBar)?245:155),ct<Ue&&(Ae.width=Ue,ct=Ue)}Qe.style.border="none",Qe.style.display="inline-block";for(var Dt in Ae)Ae.hasOwnProperty(Dt)&&Dt!=="appletOnLoad"&&Qe.setAttribute("data-param-"+Dt,Ae[Dt]);z&&Qe.setAttribute("data-param-fontscssurl",z),xe.resize=function(){GGBAppletUtils.responsiveResize(Fe,Ae)},window.addEventListener("resize",function(ft){xe.resize()});var Nt=typeof Ae.appletOnLoad=="function"?Ae.appletOnLoad:function(){};if(!Xe&&Ae.width!==void 0){Ae.hasOwnProperty("showSplash")||Qe.setAttribute("data-param-showSplash","false");var At=Fe.querySelector(".applet_scaler.prerender"),De=At!==null;if(De)var Ee=At.querySelector(".ggb_preview");else{var Ee=_e(ct,de,Ae.borderColor,!1);At=document.createElement("div"),At.className="applet_scaler",At.style.position="relative",At.style.display="block",At.style.width=ct+"px",At.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(At,"66%"),te(ne)>=5?(Ae.appletOnLoad=function(ft){var Ot=Fe.querySelector(".ggb_preview");Ot&&Ot.parentNode.removeChild(Ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(At),window.GGBT_wsf_view&&$(window).trigger("resize"),Nt(ft)},De||At.appendChild(Ee)):Qe.appendChild(Ee),At.appendChild(Qe),De||Fe.appendChild(At),setTimeout(function(){xe.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(Qe),Fe.appendChild(ve),Ae.appletOnLoad=function(ft){xe.resize(),Nt(ft)}}function Re(ft,Ot){Ot&&typeof Ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ft,Ot.appletOnLoad):renderGGBElement(ft),bt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ot)}function Ve(ft,Ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ft,params:Ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ut){Re(Ut.article,Ut.params)}),html5AppletsToProcess=null)},te(ne)<5&&(ft.className+=" geogebraweb")):Re(ft,Ot)}if(ht){scriptLoadStarted=!0;for(var ut=0;ut<Qe.childNodes.length;ut++){var vt=Qe.childNodes[ut].tagName;vt==="TABLE"&&(Qe.removeChild(Qe.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var Ct=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ct!=null&&Ct.parentNode.removeChild(Ct)}var xt=document.createElement("script"),zt=function(){Ve(Qe,Ae)};xt.src=Ne+b,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=xt.src,bt("GeoGebra HTML5 codebase loaded: '"+Ne+"'.",Ae),!me&&(!ye||ye=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),zt()):Ne.requirejs?__webpack_require__.e(6892).then(function(){var ft=[__webpack_require__(6892)];zt.apply(null,ft)}.bind(this)).catch(__webpack_require__.oe):(xt.onload=zt,Fe.appendChild(xt))}else Ve(Qe,Ae);Ae.height=de,Ae.width=ct},tt=function(Fe,Ae,Xe){var ht=_e(Ae.width,Ae.height,Ae.borderColor,Xe),Qe=document.createElement("div");Qe.style.position="relative",Qe.style.display="block",Qe.style.width=Ae.width+"px",Qe.style.height=Ae.height+"px",Qe.className="applet_screenshot applet_scaler"+(Xe?" applet_screenshot_play":""),Qe.appendChild(ht);var ct=GGBAppletUtils.getScale(Ae,Fe,Xe);Xe?(Fe.appendChild(ke()),window.GGBT_wsf_view||(Fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),Fe.appendChild(Qe),ct!==1&&!isNaN(ct)&&(GGBAppletUtils.scaleElement(Qe,ct),Qe.style.width=Ae.width+"px",Qe.style.height=Ae.height+"px",Qe.parentNode.style.width=Ae.width*ct+"px",Qe.parentNode.style.height=Ae.height*ct+"px"),xe.resize=function(){Je(Fe,ht,Qe,Xe)},window.addEventListener("resize",function(de){xe.resize()}),xe.resize()};function Je(Fe,Ae,Xe,ht){if(Fe.contains(Ae)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Fe)}var Qe=GGBAppletUtils.getScale(ge,Fe,ht);Xe.parentNode!==null&&(!isNaN(Qe)&&Qe!==1?(GGBAppletUtils.scaleElement(Xe,Qe),Xe.parentNode.style.width=ge.width*Qe+"px",Xe.parentNode.style.height=ge.height*Qe+"px"):(GGBAppletUtils.scaleElement(Xe,1),Xe.parentNode.style.width=ge.width+"px",Xe.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}xe.onExitFullscreen=function(Fe,Ae){Ae.appendChild(Fe)};var fe=function(Fe,Ae,Xe,ht){tt(Fe,Ae,!0);for(var Qe=function(){var Ue=[];for(de=0;de<Fe.childNodes.length;de++)Ue.push(Fe.childNodes[de]);if(window.GGBT_wsf_view){var Dt=window.GGBT_wsf_view.renderFullScreen(Fe,Ae.id),Nt=document.getElementById("fullscreencontainer"),At=jQuery(Fe).find(".fullscreencontent");At.length>0?(Dt.remove(),At.attr("id","fullscreencontent").show(),jQuery(Nt).append(At),window.dispatchEvent(new Event("resize"))):Te(Dt,Ae,!1),window.GGBT_wsf_view.launchFullScreen(Nt)}else Le=ht,Te(Fe,Ae,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ue.length;de++)Fe.removeChild(Ue[de])},ct=Fe.getElementsByClassName("ggb_preview_play"),de=0;de<ct.length;de++)ct[de].addEventListener("click",Qe,!1),ct[de].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Fe),oe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ke=function(){var Fe=document.createElement("div");if(Fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ae='.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");}',Xe=document.createElement("style");Xe.styleSheet?Xe.styleSheet.cssText=Ae:Xe.appendChild(document.createTextNode(Ae)),document.getElementsByTagName("head")[0].appendChild(Xe)}return Fe},_e=function(Fe,Ae,Xe,ht){var Qe=document.createElement("div");Qe.className="ggb_preview",Qe.style.position="absolute",Qe.style.zIndex="90",Qe.style.width=Fe-2+"px",Qe.style.height=Ae-2+"px",Qe.style.top="0px",Qe.style.left="0px",Qe.style.overflow="hidden",Qe.style.backgroundColor="white";var ct="lightgrey";Xe!==void 0&&(Xe==="none"?ct="transparent":ct=Xe),Qe.style.border="1px solid "+ct;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",y!==null&&de.setAttribute("src",y),de.style.opacity=.7,E!==null){var Ue,Dt,Nt;if(!ht){Ue=document.createElement("img"),Ue.style.position="absolute",Ue.style.zIndex="1001",Ue.style.opacity=1,de.style.opacity=.3,Dt=360,Dt>Fe/4*3&&(Dt=Fe/4*3),Nt=Dt/5.8,Ue.setAttribute("src",E),Ue.setAttribute("width",Dt),Ue.setAttribute("height",Nt);var At=(Fe-Dt)/2,De=(Ae-Nt)/2;Ue.style.left=At+"px",Ue.style.top=De+"px",Qe.appendChild(Ue)}}return Qe.appendChild(de),Qe},Ge=function(Fe){return Fe=Fe.toLowerCase(),Fe==="html5"||Fe==="screenshot"?Fe:"html5"},je=["web","webSimple","web3d","tablet","tablet3d","phone"],Lt=function(Fe,Ae){if(ne=Fe,Ae){Et(ne,!0);return}var Xe=!ue;if(Xe){var ht=te(ne);!isNaN(ht)&&ht<4.4&&(Xe=!1)}var Qe,ct;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var de=ne.indexOf("//");de>0?ct=ne:de===0?ct=Qe+ne:ct="https://www.geogebra.org/apps/5.2.814.0/";for(var Ue in je)if(ne.slice(je[Ue].length*-1)===je[Ue]||ne.slice((je[Ue].length+1)*-1)===je[Ue]+"/"){Et(ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Xe&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!we(ge.showToolBar)&&!we(ge.showMenuBar)&&!we(ge.showAlgebraInput)&&!we(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?ct+="webSimple/":ct+="web3d/",Et(ct,!1)},Et=function(Fe,Ae){if(Fe.requirejs){Ne=Fe;return}Fe.slice(-1)!=="/"&&(Fe+="/"),Ne=Fe,Ae===null&&(Ae=Fe.indexOf("http")===-1),Be=Ae,b="web.nocache.js",a=!1;var Xe=Ne.split("/");Xe.length>1&&(!Ae&&Xe[Xe.length-2]==="webSimple"?(b="webSimple.nocache.js",a=!0):je.indexOf(Xe[Xe.length-2])>=0&&(b=Xe[Xe.length-2]+".nocache.js")),Xe=Fe.split("/"),ne=Xe[Xe.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var ht=parseFloat(ne);ht!==NaN&&ht<5&&Fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ht+" is deprecated. Using version latest instead."),Lt("5.0",Ae))},bt=function(Fe,Ae){window.console&&window.console.log&&(!Ae||typeof Ae.showLogging=="undefined"||Ae.showLogging&&Ae.showLogging!=="false")&&console.log(Fe)};ge.material_id!==void 0?ie(jt):jt();function jt(){var Fe=ot;ye!==null?Fe=ye:parseFloat(Fe)<5&&(Fe="5.0"),Lt(Fe,!1),me!==null&&Et(me,Be),he=!0}return xe},GGBAppletUtils=function(){"use strict";function xe(){return window.GGBT_wsf_edit!==void 0}function ot(he,ye){ye!=1?(he.style.transformOrigin="0% 0% 0px",he.style.webkitTransformOrigin="0% 0% 0px",he.style.transform="scale("+ye+","+ye+")",he.style.webkitTransform="scale("+ye+","+ye+")",he.style.maxWidth="initial",he.querySelector(".ggb_preview")!==null&&(he.querySelector(".ggb_preview").style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[0]!==void 0&&(he.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[1]!==void 0&&(he.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(he.style.transform="none",he.style.webkitTransform="none")}function ge(he,ye,me,Ie,ze,Ce){var Ne=null;if(Ce!=null&&Ce!="")for(var Be=he.parentNode;Be!=null;)if((" "+Be.className+" ").indexOf(" "+Ce+" ")>-1){Ne=Be;break}else Be=Be.parentNode;var Le=0,ne=0,b=0,a=0,y=0,E=0,x=0;if(Ne)Le=Ne.offsetWidth,ne=Math.max(Ie?Ne.offsetWidth:0,Ne.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Le=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),b=Le):(Le=window.innerWidth,ne=window.innerHeight,b=window.innerWidth),he){var z=he.getBoundingClientRect();z.left>0&&z.left<=Le&&(ze===void 0||!ze)&&(document.dir==="rtl"?(y=Le-z.width-z.left,E=b<=480?10:30):(E=z.left,y=b<=480?10:30),a=E+y)}if(he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=he.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return he&&((me===void 0||!me)&&ye>0&&ye+a<Le?Le=ye:Le-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=x)),{width:Le,height:ne}}function re(he,ye,me,Ie,ze){if(he.isScreenshoGenerator)return 1;var Ce=Ie!==void 0&&Ie,Ne=he.noScaleMargin!=null&&he.noScaleMargin,Be=function(ee){return ee&&ee!=="false"},Le=Be(he.autoHeight),ne=ge(ye,he.width,me,Le,Ce&&window.GGBT_wsf_view||Ne,ze),b=parseInt(ne.width),a=he.width,y=he.height;if(a===void 0){var E=ye.querySelector(".appletParameters");E&&(a=E.offsetWidth,y=E.offsetHeight)}var x=b/a,z=Ce?1:ne.height/y;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ue(he,ye,me){var Ie=1,ze,Ce=!1;if(he.hasOwnProperty("allowUpscale")&&(Ce=he.allowUpscale),he.hasOwnProperty("scale")&&(Ie=parseFloat(he.scale),(isNaN(Ie)||Ie===null||Ie===0)&&(Ie=1),Ie>1&&(Ce=!0)),ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce=!0),!(he.hasOwnProperty("disableAutoScale")&&he.disableAutoScale))ze=re(he,ye,Ce,me,he.scaleContainerClass);else return Ie;return Ce&&(!he.hasOwnProperty("scale")||Ie===1)?ze:Math.min(Ie,ze)}function $e(he){var ye=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Ie=he.getBoundingClientRect(),ze=(ye-Ie.width)/2,Ce=(me-Ie.height)/2;Ce<0&&(Ce=0),he.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ze<40?he.style.left="40px":he.style.left=ze+"px",he.style.top=Ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce<40?he.style.top="40px":he.style.top=Ce+"px",he.style.left=ze+"px")}function et(he,ye){var me=he.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(he)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Ie=ue(ye,he);xe()&&me.setAttribute("data-param-scale",Ie);for(var ze=null,Ce=0;Ce<he.childNodes.length;Ce++)if(he.childNodes[Ce].className!==void 0&&he.childNodes[Ce].className.match(/^applet_scaler/)){ze=he.childNodes[Ce];break}if(ze!==null&&ze.querySelector(".noscale")!==null)return;var Ne=ye.id!==void 0?ye.id:"ggbApplet",Be=window[Ne];(Be==null||!Be.recalculateEnvironments)&&ze!==null&&!ze.className.match(/fullscreen/)&&(ze.parentNode.style.transform="",!isNaN(Ie)&&Ie!==1?(ze.parentNode.style.width=ye.width*Ie+"px",ze.parentNode.style.height=ye.height*Ie+"px",ot(ze,Ie)):(ot(ze,1),ze.parentNode.style.width=ye.width+"px",ze.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&$e(he),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:et,isFlexibleWorksheetEditor:xe,positionCenter:$e,getScale:ue,scaleElement:ot}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var xe=n.location.search;return xe.indexOf(J)!=-1||xe.indexOf(K)!=-1}function q(xe,ot){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(xe){var ot=s[L].bindings;s[L].bindings=function(){for(var ge=ot?ot():{},re=xe[webModule.__softPermutationId],ue=O;ue<re.length;ue++){var $e=re[ue];ge[$e[O]]=$e[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var xe=o.createElement(Q);if(xe.id=L,xe.style.cssText=R+S,xe.tabIndex=-1,o.body.appendChild(xe),t=xe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ot=document.compatMode==U?V:W;t.write(ot+X),t.close()}}}function w(xe){function ot(re){function ue(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var $e=ue();if($e){re();return}function et(){if(!$e){if(!ue())return;$e=!0,re(),o.removeEventListener&&o.removeEventListener(Z,et,!1),he&&clearInterval(he)}}o.addEventListener&&o.addEventListener(Z,et,!1);var he=setInterval(function(){et()},$)}function ge(re){var ue=u(),$e=ue.body,et=ue.createElement(_);et.language=ab,et.crossOrigin=W,et.src=re,webModule.__errFn&&(et.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),$e.appendChild(et)}ot(function(){ge(xe)})}webModule.__startLoadingFragment=function(xe){return C(xe)},webModule.__installRunAsyncCode=function(xe){var ot=u(),ge=ot.body,re=ot.createElement(_);re.language=ab,re.text=xe,ge.appendChild(re),ge.removeChild(re)};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(xe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(xe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(xe){var ot=c[xe];return ot==null?null:ot},r=d,webModule.__errFn=e}function B(){function xe(he){var ye=he.lastIndexOf(rb);ye==-1&&(ye=he.length);var me=he.indexOf(sb);me==-1&&(me=he.length);var Ie=he.lastIndexOf(tb,Math.min(me,ye));return Ie>=O?he.substring(O,Ie+P):W}function ot(he){if(!he.match(/^\w+:\/\//)){var ye=o.createElement(ub);ye.src=he+vb,he=xe(ye.src)}return he}function ge(){var he=__gwt_getMetaProperty(wb);return he!=null?he:W}function re(){for(var he=o.getElementsByTagName(_),ye=O;ye<he.length;++ye)if(he[ye].src.indexOf(xb)!=-1)return xe(he[ye].src);return W}function ue(){var he=o.getElementsByTagName(yb);return he.length>O?he[he.length-P].href:W}function $e(){var he=o.location;return he.href==he.protocol+zb+he.host+he.pathname+he.search+he.hash}var et=ge();return et==W&&(et=re()),et==W&&(et=ue()),et==W&&$e()&&(et=xe(o.location.href)),et=ot(et),et}function C(xe){return xe.match(/^\//)||xe.match(/^[a-zA-Z]+:\/\//)?xe:webModule.__moduleBase+xe}function D(){var xe=[],ot=O,ge=[],re=[];function ue(he){var ye=re[he](),me=ge[he];if(ye in me)return ye;var Ie=[];for(var ze in me)Ie[me[ze]]=ze;throw r&&r(he,Ie,ye),null}if(__gwt_isKnownPropertyValue=function(he,ye){return ye in ge[he]},webModule.__getPropMap=function(){var he={};for(var ye in ge)ge.hasOwnProperty(ye)&&(he[ye]=ue(ye));return he},webModule.__computePropValue=ue,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var $e;try{$e=Cb;var et=$e.indexOf(Db);et!=-1&&(ot=parseInt($e.substring(et+P),$),$e=$e.substring(O,et))}catch(he){}return webModule.__softPermutationId=ot,C($e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},92746:function(xe,ot,ge){"use strict";ge.d(ot,{Ax:function(){return et},Ds:function(){return he},KI:function(){return me},SI:function(){return $e},f1:function(){return ue}});var re=ge(35545);function ue(Ie){let ze=!0;if(Ie.length>0){for(let Ce=0;Ce<Ie.length;Ce++)if(Ie[Ce].compile_success==0||!Ie[Ce].compile_success){ze=!1;break}}else ze=!1;return ze}function $e(Ie,ze=""){let Ce=[];for(let Ne=0;Ne<Ie.length;Ne++){let Be=Ie[Ne],Le=ze?`${ze}/${Be.name}`:`${Be.name}`;Ce.push({title:Be.name,type:Be.type,isLeaf:Be.type!=="tree",key:Le})}return Ce}function et(Ie,ze,Ce){for(let Ne=0;Ne<Ie.length;Ne++){let Be=Ie[Ne];if(Be.key===ze){Be.children=Ce;break}Be.children&&et(Be.children,ze,Ce)}return Ie}function he(Ie,ze,Ce){let Ne;return function(){let Be=this,Le=arguments,ne=function(){Ne=null,Ce||Ie.apply(Be,Le)},b=Ce&&!Ne;clearTimeout(Ne),Ne=setTimeout(ne,ze),b&&Ie.apply(Be,Le)}}const ye=!0,me=re.Z.API_SERVER},12338:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return Be}});var re=ge(59301),ue={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},$e=ge(92310),et=ge.n($e),he=ge(71418),ye=ge(2859),me=ge(79884),Ie=ge(19694),ze=ge(75759),Ce=(Le,ne,b)=>new Promise((a,y)=>{var E=ee=>{try{z(b.next(ee))}catch(te){y(te)}},x=ee=>{try{z(b.throw(ee))}catch(te){y(te)}},z=ee=>ee.done?a(ee.value):Promise.resolve(ee.value).then(E,x);z((b=b.apply(Le,ne)).next())}),Be=({data:Le,className:ne,fullWidth:b,style:a={},onClose:y,onOk:E,showFullTools:x,noAssociationId:z})=>{const ee=(0,ze.useIntl)(),te=(0,re.useRef)(null),ae=(0,re.useRef)(null),oe=(0,re.useRef)(null),ie=(0,re.useRef)(null),[Se,se]=(0,re.useState)(!1),[be,we]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>{oe.current||(oe.current=document.createElement("style"),document.head.appendChild(oe.current)),Le!=null&&Le.visible?(document.body.setAttribute("data-custom","y-hidden"),oe.current.innerHTML=" html { overflow-y: hidden; }",Le!=null&&Le.src&&Te()):(document.body.removeAttribute("data-custom"),oe.current&&(document.head.removeChild(oe.current),oe.current=null))},[Le==null?void 0:Le.visible]);const Te=()=>Ce(void 0,null,function*(){se(!0),we("\u6B63\u5728\u52A0\u8F7D\u4E2D");const _e=yield(0,Ie.ZJ)(Le==null?void 0:Le.src);te.current.src="",te.current.src=_e,te.current.onload=function(){ke()},se(!1),we("")}),tt=()=>{document.body.removeAttribute("data-custom"),oe.current.innerHTML=" ",y()},Je=_e=>Ce(void 0,null,function*(){se(!0),we("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ge=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Le.title,file:_e.dataUrl}});Ge!=null&&Ge.id&&!z?(yield(0,me.ZP)(`/api/attachments/${Le.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ge==null?void 0:Ge.id,settings:JSON.stringify(_e.state)}})).status===0&&E():Ge!=null&&Ge.id&&E(Ge),document.body.removeAttribute("data-custom"),oe.current.innerHTML=" ",se(!1),we("")}),fe=()=>{const _e=document.querySelector('a[href="https://markerjs.com/"]');_e&&_e.parentNode&&(_e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:ee.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(je=>{const Lt=document.querySelector(je.name);Lt&&Lt.setAttribute("title",je.title)})},ke=()=>{ae.current=new ye.hP(te.current),ae.current.targetRoot=ie.current,ae.current.addEventListener("render",Je),ae.current.addEventListener("beforeclose",tt),x&&(ae.current.availableMarkerTypes=ae.current.ALL_MARKER_TYPES,ae.current.uiStyleSettings.redoButtonVisible=!0,ae.current.uiStyleSettings.notesButtonVisible=!0,ae.current.uiStyleSettings.zoomButtonVisible=!0,ae.current.uiStyleSettings.zoomOutButtonVisible=!0,ae.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ae.current.uiStyleSettings,ae.current.show(),Le!=null&&Le.snapshotData&&ae.current.restoreState(Le.snapshotData),setTimeout(()=>{window.scrollTo(0,0),fe()},300)};return re.createElement(re.Fragment,null,(Le==null?void 0:Le.visible)&&re.createElement(he.Z,{spinning:Se,tip:be,style:{position:"absolute"}},re.createElement("div",{ref:ie,className:et()(ue.imageDimensions,ne,b?ue.fullWidth:""),style:a},re.createElement("img",{className:ue.img,ref:te}))))}},12051:function(xe,ot,ge){"use strict";var re=ge(59301),ue=ge(95237),$e=ge(43604),et=ge(99313),he=ge(3113),ye=ge(52628),me=ge(81230),Ie=ge(48136),ze=ge(75759),Ce=ge(59301);const Ne=(0,re.forwardRef)(({callback:Be,showSaveButton:Le,value:ne=""},b)=>{const a=(0,re.useRef)(),y=(0,ze.useIntl)(),E=[{name:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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:y.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=ae=>{a.current.setValue(a.current.getValue()+" "+ae.value+" ")},ee=[{key:"1",label:y.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Ce.createElement(ue.Z,{className:me.Z.lists,gutter:[10,10]},E.map((ae,oe)=>Ce.createElement($e.Z,{flex:"110px",className:me.Z.item},Ce.createElement("div",null,Ce.createElement(ye.Z,{value:`$$${ae.value}$$`}),ae.name),Ce.createElement("div",{className:me.Z.children},ae.children.map((ie,Se)=>Ce.createElement("div",{key:Se},Ce.createElement("h1",null,ie.name),Ce.createElement(ue.Z,{gutter:[10,10]},ie.data.map((se,be)=>Ce.createElement($e.Z,{key:be,onClick:()=>z(se),className:me.Z.diamond},Ce.createElement(ye.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:y.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Ce.createElement(ue.Z,{className:me.Z.lists,gutter:[10,10]},x.map((ae,oe)=>Ce.createElement($e.Z,{flex:"110px",className:me.Z.item},Ce.createElement("div",null,Ce.createElement(ye.Z,{value:"`$$"+ae.value+"$$`"}),ae.name),Ce.createElement("div",{className:me.Z.children},ae.children.map((ie,Se)=>Ce.createElement("div",{key:Se},ie.name&&Ce.createElement("h1",null,ie.name),Ce.createElement(ue.Z,{gutter:[10,10]},ie.data.map((se,be)=>Ce.createElement($e.Z,{key:be,onClick:()=>z(se),className:me.Z.diamond},Ce.createElement(ye.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],te=()=>{var ae=document.createElement("div");ae.innerHTML=a.current.getValue();var oe=ae.innerText;return Be&&Be(oe),oe};return(0,re.useImperativeHandle)(b,()=>({getData:te})),Ce.createElement("div",{className:me.Z.mathWrap},Ce.createElement(et.default,{defaultActiveKey:"1",items:ee}),Ce.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:y.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:a,style:{width:800,marginTop:30,fontSize:18}},ne||""),Le&&Ce.createElement("div",{className:me.Z.button},Ce.createElement(he.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},y.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});ot.Z=Ne},9218:function(xe,ot,ge){"use strict";ge.d(ot,{h:function(){return te}});var re=ge(59301),ue=ge(57809),$e=ge(78241),et=ge(3113),he=ge(89780),ye=ge.n(he),me=ge(10658),Ie=ge(89274),ze=ge(75759),Ce=Object.defineProperty,Ne=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,a=(ae,oe,ie)=>oe in ae?Ce(ae,oe,{enumerable:!0,configurable:!0,writable:!0,value:ie}):ae[oe]=ie,y=(ae,oe)=>{for(var ie in oe||(oe={}))ne.call(oe,ie)&&a(ae,ie,oe[ie]);if(Le)for(var ie of Le(oe))b.call(oe,ie)&&a(ae,ie,oe[ie]);return ae},E=(ae,oe)=>Ne(ae,Be(oe));const x=ue.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"]};ot.Z=({callback:ae,onCancel:oe})=>{const[ie,Se]=(0,re.useState)("python");function se(Te){Se(ee[Te][1])}function be(Te){ae(Te)}const we=(0,ze.useIntl)();return re.createElement($e.default,E(y({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:be,style:{width:500}}),re.createElement($e.default.Item,{label:we.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},re.createElement(ue.default,{getPopupContainer:Te=>Te.parentNode,onChange:se},Object.keys(ee).map(Te=>re.createElement(x,{key:Te,value:Te},ee[Te][0])))),re.createElement($e.default.Item,{label:we.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(te,{mode:ie})),re.createElement("div",{className:"flex-container flex-end"},re.createElement(et.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},we.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),re.createElement(et.ZP,{type:"ghost",onClick:oe},we.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function te({value:ae,onChange:oe,mode:ie,options:Se={}}){const se=(0,re.useRef)(),[be,we]=(0,re.useState)();return(0,re.useEffect)(()=>{if(be){let Te=function(tt){const Je=tt.getValue();oe&&oe(Je)};return be.on("change",Te),()=>{be.off("change",Te)}}},[be,oe]),(0,re.useEffect)(()=>{be&&be.setOption("mode",ie)},[be,ie]),(0,re.useEffect)(()=>{be&&(ae!==be.getValue()||ae==="")&&setTimeout(()=>{be.setValue(ae||"")},300)},[be,ae]),(0,re.useEffect)(()=>{if(se.current&&!be){const Te=ye().fromTextArea(se.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Se));we(Te)}},[se.current,be]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:se}))}},30741:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return pt}});var re=ge(59301),ue=ge(89780),$e=ge.n(ue),et=ge(76374),he=ge(10658),ye=ge(6313),me=ge(25717),Ie=ge(99498),ze=ge(25419),Ce=ge(67549),Ne=ge(52628),Be=({value:le="",className:Pe,showTextOnly:ce,showLines:Me,style:at={}})=>{const qe=(0,re.useMemo)(()=>"",[le]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:qe}}))},Le=ge(75759),ne=ge(59301),b=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(le,Pe,ce)=>Pe in le?b(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):le[Pe]=ce,te=(le,Pe)=>{for(var ce in Pe||(Pe={}))x.call(Pe,ce)&&ee(le,ce,Pe[ce]);if(E)for(var ce of E(Pe))z.call(Pe,ce)&&ee(le,ce,Pe[ce]);return le},ae=(le,Pe)=>a(le,y(Pe));function oe({onActionCallback:le,title:Pe,icon:ce,actionName:Me,className:at="",children:qe}){function yt(){le(Me)}return ne.createElement("a",{title:Pe,className:at,onClick:yt},ne.createElement("i",{className:`${ce}`}),qe)}var ie=({watch:le,showNullButton:Pe,showNullProgramButton:ce,onActionCallback:Me,fullScreen:at,insertTemp:qe,hidetoolBar:yt,extraUse:St})=>{const gt=(0,Le.useIntl)(),Gt=[...[{title:gt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:gt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:gt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:gt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:gt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:gt.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:gt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:gt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:gt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:gt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:gt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:gt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:gt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:gt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:gt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:gt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${le?gt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):gt.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ne.createElement("ul",{className:"markdown-toolbar-container"},!yt&&Gt.map((Rt,He)=>ne.createElement("li",{key:He},Rt.actionName?ne.createElement(oe,ae(te({},Rt),{onActionCallback:Me})):ne.createElement("span",{className:"v-line"}))),Pe?ne.createElement("li",null,ne.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Me},ne.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?ne.createElement(ne.Fragment,null,ne.createElement("li",null,ne.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Me},ne.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ne.createElement("li",null,ne.createElement(oe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Me},ne.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,qe&&ne.createElement("li",null,ne.createElement(oe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${qe}`,onActionCallback:Me},ne.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),St&&ne.createElement("li",null,St),ne.createElement("li",{className:"btn-full-screen"},ne.createElement(oe,{icon:`${at?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:at?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Me})))},Se=ge(89147),se=ge(78241),be=ge(92832),we=ge(3113),Te=Object.defineProperty,tt=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Ge=(le,Pe,ce)=>Pe in le?Te(le,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):le[Pe]=ce,je=(le,Pe)=>{for(var ce in Pe||(Pe={}))ke.call(Pe,ce)&&Ge(le,ce,Pe[ce]);if(fe)for(var ce of fe(Pe))_e.call(Pe,ce)&&Ge(le,ce,Pe[ce]);return le},Lt=(le,Pe)=>tt(le,Je(Pe));const Et={labelCol:{span:4},wrapperCol:{span:20}};var bt=({callback:le,onCancel:Pe})=>{function ce(at){le(at)}const Me=(0,Le.useIntl)();return re.createElement(se.default,Lt(je({},Et),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),re.createElement(se.default.Item,{label:Me.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(be.default,null)),re.createElement(se.default.Item,{label:Me.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(be.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Me.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),re.createElement(we.ZP,{type:"ghost",onClick:Pe},Me.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},jt=ge(9218),Fe=ge(94491),Ae=ge(43418),Xe=ge(95237),ht=ge(12338),Qe=ge(59301),ct=({callback:le,onCancel:Pe})=>{const ce=document.createElement("canvas"),Me=ce.getContext("2d");ce.width=1e3,ce.height=800,Me.fillStyle="#ffffff",Me.fillRect(0,0,ce.width,ce.height);const at=ce.toDataURL("image/png");return Qe.createElement(Ae.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(Xe.Z,{style:{height:"100vh"}},Qe.createElement(ht.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:at,visible:!0,title:String(Date.now())},onOk:qe=>{le({src:qe.url})},onClose:Pe})))},de=ge(12378);function Ue(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ue,go.CommandHandler),Ue.prototype.canAlignSelection=function(){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<2)},Ue.prototype.alignLeft=function(){var le=this.diagram;le.startTransaction("aligning left");var Pe=1/0;le.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.x,Pe))}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe,ce.position.y))}),le.commitTransaction("aligning left")},Ue.prototype.alignRight=function(){var le=this.diagram;le.startTransaction("aligning right");var Pe=-1/0;le.selection.each(function(ce){if(!(ce instanceof go.Link)){var Me=ce.actualBounds.x+ce.actualBounds.width;Pe=Math.max(Me,Pe)}}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(Pe-ce.actualBounds.width,ce.position.y))}),le.commitTransaction("aligning right")},Ue.prototype.alignTop=function(){var le=this.diagram;le.startTransaction("alignTop");var Pe=1/0;le.selection.each(function(ce){ce instanceof go.Link||(Pe=Math.min(ce.position.y,Pe))}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,Pe))}),le.commitTransaction("alignTop")},Ue.prototype.alignBottom=function(){var le=this.diagram;le.startTransaction("aligning bottom");var Pe=-1/0;le.selection.each(function(ce){if(!(ce instanceof go.Link)){var Me=ce.actualBounds.y+ce.actualBounds.height;Pe=Math.max(Me,Pe)}}),le.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,Pe-ce.actualBounds.height))}),le.commitTransaction("aligning bottom")},Ue.prototype.alignCenterX=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center X");var ce=Pe.actualBounds.x+Pe.actualBounds.width/2;le.selection.each(function(Me){Me instanceof go.Link||Me.move(new go.Point(ce-Me.actualBounds.width/2,Me.actualBounds.y))}),le.commitTransaction("aligning Center X")}},Ue.prototype.alignCenterY=function(){var le=this.diagram,Pe=le.selection.first();if(Pe){le.startTransaction("aligning Center Y");var ce=Pe.actualBounds.y+Pe.actualBounds.height/2;le.selection.each(function(Me){Me instanceof go.Link||Me.move(new go.Point(Me.actualBounds.x,ce-Me.actualBounds.height/2))}),le.commitTransaction("aligning Center Y")}},Ue.prototype.alignColumn=function(le){var Pe=this.diagram;Pe.startTransaction("align Column"),le===void 0&&(le=0),le=parseFloat(le);var ce=new Array;Pe.selection.each(function(St){St instanceof go.Link||ce.push(St)});for(var Me=0;Me<ce.length-1;Me++){var at=ce[Me],qe=at.actualBounds.y+at.actualBounds.height+le,yt=ce[Me+1];yt.move(new go.Point(at.actualBounds.x,qe))}Pe.commitTransaction("align Column")},Ue.prototype.alignRow=function(le){le===void 0&&(le=0),le=parseFloat(le);var Pe=this.diagram;Pe.startTransaction("align Row");var ce=new Array;Pe.selection.each(function(St){St instanceof go.Link||ce.push(St)});for(var Me=0;Me<ce.length-1;Me++){var at=ce[Me],qe=at.actualBounds.x+at.actualBounds.width+le,yt=ce[Me+1];yt.move(new go.Point(qe,at.actualBounds.y))}Pe.commitTransaction("align Row")},Ue.prototype.canRotate=function(le){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Ue.prototype.rotate=function(le){le===void 0&&(le=90);var Pe=this.diagram;Pe.startTransaction("rotate "+le.toString());var Pe=this.diagram;Pe.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=le)}),Pe.commitTransaction("rotate "+le.toString())},Ue.prototype.pullToFront=function(){var le=this.diagram;le.startTransaction("pullToFront");var Pe=new go.Map;le.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Me=0;ce.parts.each(function(at){if(!at.isSelected){var qe=at.zOrder;isNaN(qe)?at.zOrder=0:Me=Math.max(Me,qe)}}),Pe.set(ce,Me)}),le.selection.each(function(ce){Ue._assignZOrder(ce,Pe.get(ce.layer)+1)}),le.commitTransaction("pullToFront")},Ue.prototype.pushToBack=function(){var le=this.diagram;le.startTransaction("pushToBack");var Pe=new go.Map;le.selection.each(function(ce){Pe.set(ce.layer,0)}),Pe.iteratorKeys.each(function(ce){var Me=0;ce.parts.each(function(at){if(!at.isSelected){var qe=at.zOrder;isNaN(qe)?at.zOrder=0:Me=Math.min(Me,qe)}}),Pe.set(ce,Me)}),le.selection.each(function(ce){Ue._assignZOrder(ce,Pe.get(ce.layer)-1-Ue._findGroupDepth(ce))}),le.commitTransaction("pushToBack")},Ue._assignZOrder=function(le,Pe,ce){ce===void 0&&(ce=le),le.layer===ce.layer&&(le.zOrder=Pe),le instanceof go.Group&&le.memberParts.each(function(Me){Ue._assignZOrder(Me,Pe+1,ce)})},Ue._findGroupDepth=function(le){if(le instanceof go.Group){var Pe=0;return le.memberParts.each(function(ce){Pe=Math.max(Pe,Ue._findGroupDepth(ce))}),Pe+1}else return 0},Ue.prototype.doKeyDown=function(){var le=this.diagram;if(le!==null){var Pe=le.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ue.prototype._getAllParts=function(){var le=new Array;return this.diagram.nodes.each(function(Pe){le.push(Pe)}),this.diagram.parts.each(function(Pe){le.push(Pe)}),le},Ue.prototype._arrowKeyMove=function(){var le=this.diagram,Pe=le.lastInput,ce=0,Me=0;if(Pe.control||Pe.meta)ce=1,Me=1;else if(le.grid!==null){var at=le.grid.gridCellSize;Me=at.width,ce=at.height}le.startTransaction("arrowKeyMove"),le.selection.each(function(qe){Pe.key==="Up"?qe.move(new go.Point(qe.actualBounds.x,qe.actualBounds.y-ce)):Pe.key==="Down"?qe.move(new go.Point(qe.actualBounds.x,qe.actualBounds.y+ce)):Pe.key==="Left"?qe.move(new go.Point(qe.actualBounds.x-Me,qe.actualBounds.y)):Pe.key==="Right"&&qe.move(new go.Point(qe.actualBounds.x+Me,qe.actualBounds.y))}),le.commitTransaction("arrowKeyMove")},Ue.prototype._arrowKeySelect=function(){var le=this.diagram,Pe=le.lastInput,ce=null;Pe.key==="Up"?ce=this._findNearestPartTowards(270):Pe.key==="Down"?ce=this._findNearestPartTowards(90):Pe.key==="Left"?ce=this._findNearestPartTowards(180):Pe.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(Pe.shift?ce.isSelected=!0:Pe.control||Pe.meta?ce.isSelected=!ce.isSelected:le.select(ce))},Ue.prototype._findNearestPartTowards=function(le){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var ce=Pe.actualBounds.center,Me=this._getAllParts(),at=1/0,qe=Pe,yt=0;yt<Me.length;yt++){var St=Me[yt];if(St!==Pe&&St.canSelect()){var gt=St.actualBounds.center,Ft=ce.directionPoint(gt),Gt=this._angleCloseness(Ft,le);if(Gt<=45){var Rt=ce.distanceSquaredPoint(gt);Rt*=1+Math.sin(Gt*Math.PI/180),Rt<at&&(at=Rt,qe=St)}}}return qe},Ue.prototype._angleCloseness=function(le,Pe){return Math.min(Math.abs(Pe-le),Math.min(Math.abs(Pe+360-le),Math.abs(Pe-360-le)))},Ue.prototype._arrowKeyTree=function(){var le=this.diagram,Pe=le.selection.first();if(Pe instanceof go.Node){var ce=le.lastInput;if(ce.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)le.commandHandler.canExpandTree(Pe)&&le.commandHandler.expandTree(Pe);else{var Me=this._sortTreeChildrenByY(Pe).first();Me!==null&&le.select(Me)}}else if(ce.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)le.commandHandler.canCollapseTree(Pe)&&le.commandHandler.collapseTree(Pe);else{var at=Pe.findTreeParentNode();at!==null&&le.select(at)}else if(ce.key==="Up"){var at=Pe.findTreeParentNode();if(at!==null){var qe=this._sortTreeChildrenByY(at),yt=qe.indexOf(Pe);if(yt>0){for(var St=qe.elt(yt-1);St!==null&&St.isTreeExpanded&&!St.isTreeLeaf;){var gt=this._sortTreeChildrenByY(St);St=gt.last()}St!==null&&le.select(St)}else le.select(at)}}else if(ce.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Me=this._sortTreeChildrenByY(Pe).first();Me!==null&&le.select(Me)}else for(;Pe!==null;){var at=Pe.findTreeParentNode();if(at===null)break;var qe=this._sortTreeChildrenByY(at),yt=qe.indexOf(Pe);if(yt<qe.length-1){le.select(qe.elt(yt+1));break}else Pe=at}var Ft=le.selection.first();Ft!==null&&le.scrollToRect(Ft.actualBounds)}},Ue.prototype._sortTreeChildrenByY=function(le){var Pe=new go.List().addAll(le.findTreeChildrenNodes());return Pe.sort(function(ce,Me){var at=ce.location,qe=Me.location;return at.y<qe.y?-1:at.y>qe.y?1:at.x<qe.x?-1:at.x>qe.x?1:0}),Pe},Ue.prototype.copyToClipboard=function(le){go.CommandHandler.prototype.copyToClipboard.call(this,le),this._lastPasteOffset.set(this.pasteOffset)},Ue.prototype.pasteFromClipboard=function(){var le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),le},Object.defineProperty(Ue.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(le){if(le!=="move"&&le!=="select"&&le!=="scroll"&&le!=="tree"&&le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+le);this._arrowKeyBehavior=le}}),Object.defineProperty(Ue.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(le){if(!(le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+le);this._pasteOffset.set(le)}});var Dt=Ue,Nt=ge(77319),At=ge(43604),De=ge(79884),Ee={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ve=ge(59301),Re=(le,Pe,ce)=>new Promise((Me,at)=>{var qe=gt=>{try{St(ce.next(gt))}catch(Ft){at(Ft)}},yt=gt=>{try{St(ce.throw(gt))}catch(Ft){at(Ft)}},St=gt=>gt.done?Me(gt.value):Promise.resolve(gt.value).then(qe,yt);St((ce=ce.apply(le,Pe)).next())});function Ve({onCancel:le,callback:Pe}){let ce=(0,re.useRef)(),Me=(0,re.useRef)(),at=(0,re.useRef)(),qe=(0,re.useRef)(!1);const yt=(0,re.useRef)(!1),[St,gt]=(0,re.useState)(0);function Ft(){const He=de.bx.make,Bt={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"};ce.current=new de.S0(Me.current,{padding:20,grid:He(de.s_,"Grid",He(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),He(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:We=>{var Pt=We.diagram.commandHandler.addTopLevelParts(We.diagram.selection,!0);Pt||We.diagram.currentTool.doCancel()},commandHandler:He(Dt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:We=>{var Pt=We.subject;Pt.location=Pt.location.copy().snapToGridPoint(We.diagram.grid.gridOrigin,We.diagram.grid.gridCellSize),setTimeout(()=>{We.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:We=>{var Pt=We.subject;setTimeout(()=>{We.diagram.commandHandler.editTextBlock()})},LinkRelinked:We=>{var Pt=We.parameter.part;Pt.invalidateConnectedLinks();var st=We.subject;We.diagram.toolManager.linkingTool.isForwards?st.toNode.invalidateConnectedLinks():st.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.current.nodeTemplate=He(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),He(de.bn,{name:"SHAPE",fill:Bt.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")),He(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),He(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.nodeTemplate.toolTip=He("ToolTip",He(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},He(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),He(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function kt(We,Pt){var st=(dt,It)=>{dt.handled=!0,dt.diagram.model.commit(qt=>{var vn=It.part.adornedPart,Xt=new de.E9().setRectSpot(vn.actualBounds,We);Xt.subtract(vn.location),Xt.scale(2,2),Xt.x+=Math.sign(Xt.x)*130,Xt.y+=Math.sign(Xt.y)*130,Xt.add(vn.location),Xt.snapToGridPoint(dt.diagram.grid.gridOrigin,dt.diagram.grid.gridCellSize);var pn=qt.copyNodeData(vn.data);qt.setGroupKeyForNodeData(pn,qt.getGroupKeyForNodeData(vn.data)),qt.addNodeData(pn);var An={from:vn.key,to:qt.getKeyForNodeData(pn)};qt.addLinkData(An);var $n=dt.diagram.findNodeForData(pn);$n.location=Xt,dt.diagram.select($n),setTimeout(()=>{dt.diagram.commandHandler.editTextBlock()},20)})};return He(de.bn,{figure:Pt,alignment:We,alignmentFocus:We.opposite(),width:We.equals(de.z6.Top)||We.equals(de.z6.Bottom)?25:18,height:We.equals(de.z6.Top)||We.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Bt.white,strokeWidth:4,mouseEnter:(dt,It)=>It.fill="dodgerblue",mouseLeave:(dt,It)=>It.fill="orange",isActionable:!0,click:st,contextClick:st})}function Jt(We){return He(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:(Pt,st)=>st.fill="dodgerblue",mouseLeave:(Pt,st)=>st.fill="orange",click:(Pt,st)=>{Pt.diagram.commandHandler.showContextMenu(st.part.adornedPart)}},We||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=He(de.uz,"Spot",He(de.Vm,{padding:10}),kt(de.z6.Top,"TriangleUp"),kt(de.z6.Left,"TriangleLeft"),kt(de.z6.Right,"TriangleRight"),kt(de.z6.Bottom,"TriangleDown"),Jt({alignment:new de.z6(.75,0)}));function Tt(We,Pt){return(st,dt)=>{st.handled=!0,st.diagram.model.commit(It=>{It.set(dt.part.adornedPart.data,We,Pt)})}}function Mt(We,Pt){return Pt||(Pt="color"),He(de.bn,{width:16,height:16,stroke:"lightgray",fill:We,margin:1,background:"transparent",mouseEnter:(st,dt)=>dt.stroke="dodgerblue",mouseLeave:(st,dt)=>dt.stroke="lightgray",click:Tt(Pt,We),contextClick:Tt(Pt,We)})}function Qt(){return[He("ContextMenuButton",He(de.s_,"Horizontal",Mt(Bt.white,"fill"),Mt(Bt.beige,"fill"),Mt(Bt.extralightblue,"fill"),Mt(Bt.extralightred,"fill"))),He("ContextMenuButton",He(de.s_,"Horizontal",Mt(Bt.lightgray,"fill"),Mt(Bt.lightgreen,"fill"),Mt(Bt.lightblue,"fill"),Mt(Bt.lightred,"fill")))]}function wt(){return[He("ContextMenuButton",He(de.s_,"Horizontal",Mt(Bt.black),Mt(Bt.green),Mt(Bt.blue),Mt(Bt.red))),He("ContextMenuButton",He(de.s_,"Horizontal",Mt(Bt.white),Mt(Bt.magenta),Mt(Bt.purple),Mt(Bt.orange)))]}function Wt(We,Pt){return Pt||(Pt="thickness"),He(de.bn,"LineH",{width:16,height:16,strokeWidth:We,margin:1,background:"transparent",mouseEnter:(st,dt)=>dt.background="dodgerblue",mouseLeave:(st,dt)=>dt.background="transparent",click:Tt(Pt,We),contextClick:Tt(Pt,We)})}function _t(We,Pt){return Pt||(Pt="dash"),He(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:We,margin:1,background:"transparent",mouseEnter:(st,dt)=>dt.background="dodgerblue",mouseLeave:(st,dt)=>dt.background="transparent",click:Tt(Pt,We),contextClick:Tt(Pt,We)})}function an(){return[He("ContextMenuButton",He(de.s_,"Horizontal",Wt(1),Wt(2),Wt(3),Wt(4))),He("ContextMenuButton",He(de.s_,"Horizontal",_t(null),_t([2,4]),_t([4,4])))]}function Zt(We,Pt){return Pt||(Pt="figure"),He(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:We,margin:1,background:"transparent",mouseEnter:(st,dt)=>dt.fill="dodgerblue",mouseLeave:(st,dt)=>dt.fill="lightgray",click:Tt(Pt,We),contextClick:Tt(Pt,We)})}ce.current.nodeTemplate.contextMenu=He("ContextMenu",He("ContextMenuButton",He(de.s_,"Horizontal",Zt("Rectangle"),Zt("RoundedRectangle"),Zt("Ellipse"),Zt("Diamond"))),He("ContextMenuButton",He(de.s_,"Horizontal",Zt("Parallelogram2"),Zt("ManualOperation"),Zt("Procedure"),Zt("Cylinder1"))),He("ContextMenuButton",He(de.s_,"Horizontal",Zt("Terminator"),Zt("CreateRequest"),Zt("Document"),Zt("TriangleDown"))),Qt(),wt(),an()),ce.current.groupTemplate=He(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(We,Pt)=>{var st=Pt.addMembers(Pt.diagram.selection,!0);st||Pt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),He(de.s_,"Auto",{name:"BODY"},He(de.bn,{parameter1:10,fill:Bt.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")),He(de.Vm,{background:"transparent",margin:20})),He(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"))),ce.current.groupTemplate.selectionAdornmentTemplate=He(de.uz,"Spot",He(de.s_,"Auto",He(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),He(de.Vm,{margin:1.5})),Jt({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=He("ContextMenu",Qt(),wt(),an()),ce.current.linkTemplate=He(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",We=>We>=1?10:0),new de.KX("toShortLength","dir",We=>We>=1?10:0),new de.KX("points").makeTwoWay(),He(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),He(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",We=>We===1)),He(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",We=>We>=1),new de.KX("width","thickness",We=>7+3*We),new de.KX("height","thickness",We=>7+3*We),new de.KX("segmentOffset","thickness",We=>new de.E9(-15,4+1.5*We))),He(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",We=>We===2),new de.KX("width","thickness",We=>7+3*We),new de.KX("height","thickness",We=>7+3*We),new de.KX("segmentOffset","thickness",We=>new de.E9(-15,4+1.5*We))),He(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=He(de.uz,He(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:rn(2)},new de.KX("pathPattern","thickness",rn)),Jt({alignmentFocus:new de.z6(0,0,-6,-4)}));function rn(We){return He(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(We+4).toString()+" H3"})}function Yt(We){var Pt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return We===0?Pt="M0 0 M16 16 M0 8 L16 8":We===2&&(Pt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),He(de.bn,{geometryString:Pt,margin:2,background:"transparent",mouseEnter:(st,dt)=>dt.background="dodgerblue",mouseLeave:(st,dt)=>dt.background="transparent",click:Tt("dir",We),contextClick:Tt("dir",We)})}function Oe(We){var Pt=(st,dt)=>{st.handled=!0,st.diagram.model.commit(It=>{var qt=dt.part.adornedPart;It.set(qt.data,We?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(We?qt.toNode:qt.fromNode).invalidateConnectedLinks()})};return He(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(st,dt)=>dt.background="dodgerblue",mouseLeave:(st,dt)=>dt.background="transparent",click:Pt,contextClick:Pt})}function un(We,Pt){var st=0,dt=de.z6.RightSide;We.equals(de.z6.Top)?(st=270,dt=de.z6.TopSide):We.equals(de.z6.Left)?(st=180,dt=de.z6.LeftSide):We.equals(de.z6.Bottom)&&(st=90,dt=de.z6.BottomSide),Pt||(st-=180);var It=(qt,vn)=>{qt.handled=!0,qt.diagram.model.commit(Xt=>{var pn=vn.part.adornedPart;Xt.set(pn.data,Pt?"toSpot":"fromSpot",de.z6.stringify(dt)),(Pt?pn.toNode:pn.fromNode).invalidateConnectedLinks()})};return He(de.bn,{alignment:We,alignmentFocus:We.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:st,background:"transparent",mouseEnter:(qt,vn)=>vn.background="dodgerblue",mouseLeave:(qt,vn)=>vn.background="transparent",click:It,contextClick:It})}ce.current.linkTemplate.contextMenu=He("ContextMenu",wt(),an(),He("ContextMenuButton",He(de.s_,"Horizontal",Yt(0),Yt(1),Yt(2))),He("ContextMenuButton",He(de.s_,"Horizontal",He(de.s_,"Spot",Oe(!1),un(de.z6.Top,!1),un(de.z6.Left,!1),un(de.z6.Right,!1),un(de.z6.Bottom,!1)),He(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Oe(!0),un(de.z6.Top,!0),un(de.z6.Left,!0),un(de.z6.Right,!0),un(de.z6.Bottom,!0)))));const cn=`{ "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 En=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Sn(We){return console.log("shapeName:",We),En.indexOf(We)>=0}var Vt=new de.YI(at.current,{maxSelectionCount:1,linkTemplate:He(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:He(de.uz,"Link",{locationSpot:de.z6.Center},He(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),He(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),He(de.bn,{isPanelMain:!0,strokeWidth:2}),He(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(We=>({text:"\u672A\u547D\u540D",size:"100 100",figure:We.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(We){var Pt;const st=We.subject.part;var dt=(Pt=document.activeElement)==null?void 0:Pt.value;typeof dt=="string"&&dt.trim()===""&&ce.current.model.commit(function(It){It.set(st.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),Vt.nodeTemplate=He(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),He(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")),He(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(()=>{ce.current.grid=He(de.s_,"Grid",He(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),He(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const Gt=()=>Re(this,null,function*(){var He=ce.current.makeImage();const Bt=yield(0,De.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:He.src}});Pe({src:Bt.url})});(0,re.useEffect)(()=>(setTimeout(()=>{Ft()},500),gt(St+1),()=>{ce.current=null}),[]);const Rt=(0,Le.useIntl)();return ve.createElement("div",{ref:yt,className:qe.current?`${Ee.maxH60} body-overflow-initial`:"body-overflow-initial"},ve.createElement(Ae.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!St,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ve.createElement(Xe.Z,null,ve.createElement(At.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ve.createElement(At.Z,{onClick:()=>{var He,Bt,kt=ce.current.selection.first();if(qe.current=!qe.current,document.activeElement&&kt){let Jt=(Bt=(He=document.activeElement)==null?void 0:He.value)==null?void 0:Bt.trim();typeof Jt=="string"&&ce.current.model.commit(function(Tt){Tt.set(kt.data,"text",Jt||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}gt(St+1)}},ve.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",Rt.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:le},ve.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ee.flowChartWrp},ve.createElement("div",{style:{display:"flex",height:"100%"}},ve.createElement("div",{style:{width:"300px",height:"100%"}},ve.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ve.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ee.myPaletteDiv,ref:at})),ve.createElement("div",{style:{flex:1,position:"relative"}},ve.createElement("div",{ref:Me,style:{height:"80vh"}}))),ve.createElement("div",{className:"tr"},ve.createElement(we.ZP,{size:"large",onClick:Gt,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},Rt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var ut=Ve,vt=ge(5112),Ct=ge(5871);const xt=vt.ZP.Group,zt={margin:"0 8px"};var ft=({callback:le,onCancel:Pe})=>{function ce(at){le(at)}const Me=(0,Le.useIntl)();return re.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:zt},Me.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),re.createElement("span",{style:zt},Me.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),re.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(Ct.Z,null)),re.createElement("span",{style:zt},Me.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),re.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(Ct.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:zt},Me.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),re.createElement(se.default.Item,{name:"align"},re.createElement(xt,null,re.createElement(vt.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(vt.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(vt.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(vt.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Me.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),re.createElement(we.ZP,{type:"ghost",onClick:Pe},Me.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Ot=ge(78673),Ut=ge(44764),sn=ge.n(Ut),Kt=(0,re.forwardRef)(({use3d:le,width:Pe,height:ce,callback:Me,showSaveButton:at},qe)=>{const yt=(0,re.useRef)(),St=(0,re.useRef)(),gt=(0,Le.useIntl)(),[Ft,Gt]=(0,re.useState)(!1),Rt=(0,re.useRef)({id:yt,appName:"graphing",width:Pe||1e3,height:ce||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,re.useEffect)(()=>{St.current=new(sn())(Rt.current,!0),window.onload=function(){St.current.inject("applet_container")}},[]);const He=()=>{var Bt=window.ggbApplet.getPNGBase64(1,!0,72);return Me&&Me(Bt),Bt};return(0,re.useEffect)(()=>{Rt.current.appName=Ft?"3D":"graphing",St.current.inject("applet_container")},[Ft]),(0,re.useEffect)(()=>{Gt(le)},[le]),(0,re.useImperativeHandle)(qe,()=>({getImgData:He})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:yt}),re.createElement(Xe.Z,{align:"middle"},re.createElement(At.Z,{flex:1},re.createElement(Ot.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:gt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:Ft,onChange:Bt=>Gt(Bt)})),re.createElement(At.Z,null,re.createElement(we.ZP,{size:"large",onClick:He,style:{zIndex:8,marginTop:10},type:"primary"},gt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),tn=ge(12051),nn=ge(1012),fn=ge(8591);const Ln="link",wn="upload-image",Dn="add-flowchart",yn="draw-image",zn="add-flowchart",on="code-block",xn="add-table",kn="------------",Zn={default:kn,left:`:${kn}`,center:`:${kn}:`,right:`${kn}:`};var ea=ge(40835),Jn=(le,Pe,ce)=>new Promise((Me,at)=>{var qe=gt=>{try{St(ce.next(gt))}catch(Ft){at(Ft)}},yt=gt=>{try{St(ce.throw(gt))}catch(Ft){at(Ft)}},St=gt=>gt.done?Me(gt.value):Promise.resolve(gt.value).then(qe,yt);St((ce=ce.apply(le,Pe)).next())});function Qn(){}let oa=0;const Vn=1e4,ta="\u2581",Gn="@\u2581\u2581@",ra="@\u2581@",ua=`
**\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`,pe=["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 Ke(le){return/^\d+$/.test(le)?`${le}px`:le}const rt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",mt={[rt+"-B"]:"bold",[rt+"-I"]:"italic"};var pt=({defaultValue:le="",onChange:Pe,width:ce="100%",height:Me=400,miniToolbar:at=!1,isFocus:qe=!1,watch:yt,insertTemp:St,mode:gt="markdown",id:Ft="markdown-editor-id",showResizeBar:Gt=!1,noStorage:Rt=!1,showNullButton:He=!1,showNullProgramButton:Bt=!1,hidetoolBar:kt=!1,fullScreen:Jt=!1,onBlur:Tt,onCMBeforeChange:Mt,onFullScreen:Qt,className:wt="",disablePaste:Wt=!1,disabled:_t=!1,disabledFill:an=!1,placeholder:Zt="",values:rn="",extraUse:Yt})=>{const[Oe,un]=(0,re.useState)(null),[cn,En]=(0,re.useState)(le),[Sn,Vt]=(0,re.useState)(yt),[We,Pt]=(0,re.useState)(Jt),[st,dt]=(0,re.useState)(""),[It,qt]=(0,re.useState)(0),[vn,Xt]=(0,re.useState)(Me),[pn,An]=(0,re.useState)(!1),$n=(0,re.useRef)((0,nn.Z)()),na=(0,re.useRef)(!1),ln=(0,re.useRef)(),[Ht,gn]=(0,re.useState)(0),[mn,Cn]=(0,re.useState)(0),Fn=(0,re.useRef)(),_n=(0,re.useRef)(),Rn=(0,re.useRef)(),Tn=(0,re.useRef)(),Wn=()=>Jn(void 0,null,function*(){var it;const Ze=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:$n.current}});(it=Ze==null?void 0:Ze.attachments)!=null&&it.length&&(console.log("cm:",Oe,Fn),Ze.attachments.map(nt=>{nt.content_type.indexOf("image")>-1?Oe.replaceSelection(`![,](/api/attachments/${nt.id}?type=${nt.content_type})`):nt.content_type.indexOf("video")>-1?Oe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):nt.content_type.indexOf("pdf")>-1?Oe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${nt.id}?type=${nt.content_type}&disposition=inline" target="_blank">${nt.name}</a>`):Oe.replaceSelection(`[${nt.name}](${ENV.API_SERVER}/api/attachments/${nt.id}?type=${nt.content_type})`)}))});(0,re.useEffect)(()=>{const it=window.scrollY||window.pageYOffset;En(rn),Oe==null||Oe.setValue(rn),window.scrollTo(0,it)},[rn]),(0,re.useEffect)(()=>{Qt==null||Qt(We)},[We]),(0,re.useEffect)(()=>{if(Fn.current){let it=function(nt,lt){var $t;if(Wt){lt.preventDefault();return}const en=lt.clipboardData;if(en){const Pn=en.types.toString(),hn=en.items;if(Pn==="Files"||en.types.indexOf("Files")>-1){if(lt.preventDefault(),gt=="stex")return;try{let bn=hn[1];(($t=hn[0])==null?void 0:$t.kind)==="file"&&(bn=hn[0]);const Bn=bn.getAsFile(),jn=Bn.name.split(".").pop();(0,Fe.I)(Bn,On=>{var ga,ia,Un;On.id?((ga=Bn==null?void 0:Bn.type)==null?void 0:ga.indexOf("image"))>-1?Ze.replaceSelection(`<img width="100%" src="/api/attachments/${On.id}?type=${On.content_type})" alt="" />`):((ia=Bn==null?void 0:Bn.type)==null?void 0:ia.indexOf("video"))>-1?Ze.replaceSelection(`<video width="100%" controls src="/api/attachments/${On.id}"></video>`):((Un=Bn==null?void 0:Bn.type)==null?void 0:Un.indexOf("pdf"))>-1?Ze.replaceSelection(`<a href="/api/attachments/${On.id}?type=${Bn.type}&disposition=inline" target="_blank">${Bn.name}</a>`):pe.includes(jn)?Ze.replaceSelection(`<a href="/api/attachments/${On.id}?type=office&disposition=inline" target="_blank">${Bn.name}</a>`):Ze.replaceSelection(`[${Bn.name}](/api/attachments/${On.id}?type=${On.content_type})`):(On==null?void 0:On.status)===401&&(fn.ZP.warning((On==null?void 0:On.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(bn){fn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ze=$e().fromTextArea(Fn.current,{mode:gt,lineNumbers:!at,lineWrapping:!0,value:le,autoCloseTags:!Bt,autoCloseBrackets:!0});return Ze.on("keyup",function(nt,lt){lt.keyCode===8&&(nt.getValue()==""?Ze.setOption("placeholder",Zt):Ze.setOption("placeholder",null))}),Ze.on("keydown",function(nt,lt){if(lt.keyCode===8){var $t=Xn(nt);$t&&lt.preventDefault()}}),qe&&Ze.focus(),Ze.on("paste",it),Ze.on("dragleave",function(nt,lt){_n.current.classList.remove("mouse-hover-md")}),_t&&Ze.on("beforeChange",function(nt,lt){(lt.origin==="paste"||lt.origin==="+input")&&lt.cancel()}),un(Ze),()=>{Ze.off("paste",it)}}},[]);const qn=(0,re.useCallback)(()=>{if(_n.current)try{}catch(it){console.log(it,"---- to set md editor body height")}},[vn,_n,We]);(0,re.useEffect)(()=>{function it(){let Ze=new et.Z(nt=>{for(let lt of nt)(lt.target.offsetHeight>0||lt.target.offsetWidth>0)&&(qn(),Oe.setSize("100%","100%"),Oe.refresh())});return Ze.observe(Fn.current.parentElement),Ze}if(Oe){const Ze=it();return()=>{var nt,lt;(nt=Fn.current)!=null&&nt.parentElement&&Ze.unobserve((lt=Fn.current)==null?void 0:lt.parentElement)}}},[Oe,qn]),(0,re.useEffect)(()=>{if(Oe){let it=[];for(const[Ze,nt]of Object.entries(mt)){let lt={[Ze]:()=>{Kn(nt)}};it.push(lt),Oe.addKeyMap(lt)}return ln.current=setInterval(()=>{na.current&&Wn()},4e3),()=>{clearInterval(ln.current);for(let Ze of it)Oe.removeKeyMap(Ze)}}},[Oe]),(0,re.useEffect)(()=>{Jt!==We&&Pt(Jt)},[Jt]),(0,ea.Z)(()=>{if(!Rt&&It>0){let it=new Date().getTime(),Ze=window.sessionStorage.getItem(Ft);it>=It+Vn&&(!Ze||Ze!==cn)&&(window.sessionStorage.setItem(Ft,cn),An(!0))}},Vn),(0,re.useEffect)(()=>{Vt(yt)},[Oe,yt]),(0,re.useEffect)(()=>{Oe&&qe&&Oe.focus()},[Oe,qe]),(0,re.useEffect)(()=>{if(Sn&&Oe){let it=function(nt){let lt=nt.target;if(Tn.current){let $t=lt.scrollTop/lt.scrollHeight;Tn.current.scrollTop=Tn.current.scrollHeight*$t}};const Ze=Oe.getScrollerElement();return Ze.addEventListener("scroll",it),()=>{Ze.removeEventListener("scroll",it)}}},[Oe,Sn]),(0,re.useEffect)(()=>{if(Oe&&Mt){let it=function(Ze,nt){Mt(Ze,nt)};return Oe.on("beforeChange",it),()=>{Oe.off("beforeChange",it)}}},[Oe,Mt]),(0,re.useEffect)(()=>{if(Oe&&Tt){let it=function(){Tt(Oe.getValue())};return Oe.on("blur",it),()=>{Oe.off("blur",it)}}},[Oe,Tt]);function Xn(it,Ze){var nt=it.getDoc(),lt=nt.getCursor(),$t=nt.getLine(lt.line),en=$t.charAt(lt.ch-1),Pn=$t.lastIndexOf("@\u2581@",lt.ch),hn=$t.lastIndexOf("@\u2581\u2581@",lt.ch),bn=Pn>hn?Pn:hn,Bn=Pn>hn?3:4;if(Gn.indexOf(en)===-1)return null;if(console.log("change1:",Ze,it,$t,lt,bn,Pn,hn,en),bn>=0&&lt.ch-bn<5){var jn=bn+Bn;return nt.replaceRange("",{line:lt.line,ch:bn},{line:lt.line,ch:jn}),{line:lt.line,ch:jn}}return null}(0,re.useEffect)(()=>{if(Oe){let it=function(Ze,nt){const lt=Ze.getValue();En(lt),qt(new Date().getTime()),Ze.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Bt?Pe(lt,Pa(lt)):Pe(lt))};return Oe.on("change",it),()=>{Oe.off("change",it)}}},[Oe,Pe]),(0,re.useEffect)(()=>{if(Oe)if(le==null)Oe.setValue(""),En("");else{const it=window.scrollY||window.pageYOffset;le!==Oe.getValue()&&(Oe.setValue(le),En(le),Oe.setCursor(_t?1:Oe.lineCount(),0),window.scrollTo(0,it))}},[Oe,le]);const Kn=(0,re.useCallback)(it=>{const Ze=Oe.getCursor(),nt=Oe.getSelection();let lt=nt.split(`
`);switch(it){case"bold":return Oe.replaceSelection("**"+nt+"**"),nt===""&&Oe.setCursor(Ze.line,Ze.ch+2),Oe.focus();case"italic":return Oe.replaceSelection("*"+nt+"*"),nt===""&&Oe.setCursor(Ze.line,Ze.ch+1),Oe.focus();case"code":return Oe.replaceSelection("`"+nt+"`"),nt===""&&Oe.setCursor(Ze.line,Ze.ch+1),Oe.focus();case"inline-latex":return dt("inline-latex"),Oe.focus();case"latex":return Oe.replaceSelection("```latex\n"+nt+"\n```"),Oe.setCursor(Ze.line+1,nt.length+1),Oe.focus();case"line-break":return Oe.replaceSelection(`<br/>
`),Oe.focus();case"list-ul":return nt===""?Oe.replaceSelection("- "+nt):Oe.replaceSelection(lt.map($t=>$t===""?"":`- ${$t}`).join(`
`)),Oe.focus();case"list-ol":return nt===""?Oe.replaceSelection("1. "+nt):Oe.replaceSelection(lt.map(($t,en)=>$t===""?"":`${en+1}. ${$t}`).join(`
`)),Oe.focus();case"add-null-ch":return nt===""&&Oe.setCursor(Ze.line,Ze.ch),Oe.replaceSelection(ta),Oe.focus();case"add-signal":return nt===""&&Oe.setCursor(Ze.line,Ze.ch),Oe.replaceSelection(ra),Oe.focus();case"add-multiple":return nt===""&&Oe.setCursor(Ze.line,Ze.ch),Oe.replaceSelection(Gn),Oe.focus();case"inster-template-1":return nt===""&&Oe.setCursor(Ze.line,Ze.ch),Oe.replaceSelection(ua),Oe.focus();case"eraser":return Oe.setValue(""),Oe.focus();case"trigger-watch":return Vt(!Sn),Oe.focus();case"trigger-full-screen":return Pt(!We),Oe.focus();case Ln:dt(Ln);return;case on:dt(on);return;case wn:dt(wn);return;case yn:dt(yn);return;case"maths-latex":dt("maths-latex");return;case Dn:dt(Dn);return;case xn:dt(xn);return;default:throw new Error}},[Oe,Sn,We]),Nn=(0,re.useCallback)((it,Ze)=>{var nt,lt,$t,en,Pn,hn;switch(dt(""),st){case Ln:const{title:ga,link:ia}=it;return Oe.replaceSelection(`[${ga}](${ia})`),Oe.focus();case on:const{language:Un,content:Ba}=it;return Oe.replaceSelection(["```"+Un,Ba,"```"].join(`
`)),Oe.focus();case"maths-latex":for(var bn=atob(it),Bn=new Uint8Array(bn.length),jn=0;jn<bn.length;jn++)Bn[jn]=bn.charCodeAt(jn);var On=new Blob([Bn],{type:"image/png"});(0,Fe.I)(On,Yn=>{Yn.id?Oe.replaceSelection(`![,](/api/attachments/${Yn.id}?type=${Yn.content_type})`):(Yn==null?void 0:Yn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Oe.replaceSelection("`$$"+it+"$$`");break;case wn:case yn:case zn:const{src:da,alt:La}=it,Mn=Ze,wa=($t=(lt=(nt=Mn==null?void 0:Mn.name)==null?void 0:nt.split("."))==null?void 0:lt.pop)==null?void 0:$t.call(lt);return((en=Mn==null?void 0:Mn.type)==null?void 0:en.indexOf("image"))>-1||!(Mn!=null&&Mn.type)?Mn.align||Mn.width?Oe.replaceSelection(`<p style="text-align:${Mn.align||"initial"}"><img width="${Mn.width?Mn.width+"%":"initial"}" src="${da}" alt="${La||""}" /></p>`):Oe.replaceSelection(`<img width="100%" src="${da}" alt="${La||""}" />`):((Pn=Mn==null?void 0:Mn.type)==null?void 0:Pn.indexOf("video"))>-1?Oe.replaceSelection(`<video width="100%" controls src="${da}"></video>`):((hn=Mn==null?void 0:Mn.type)==null?void 0:hn.indexOf("pdf"))>-1?Oe.replaceSelection(`<a href="${da}?type=${Mn.type}&disposition=inline" target="_blank">${Mn.name}</a>`):pe.includes(wa)?Oe.replaceSelection(`<a href="${da}?type=office&disposition=inline" target="_blank">${Mn.name}</a>`):Oe.replaceSelection(`[${Mn.name}](${da})`),Oe.focus();case xn:const{row:Da,col:Ea,align:xa}=it;let fa=`
`;for(let Yn=0;Yn<Da;Yn++){let ya=[],Ca=[];for(let Fa=0;Fa<Ea;Fa++)Yn===1&&Ca.push(Zn[xa]),ya.push(" ");Yn===1&&(fa+=`| ${Ca.join(" | ")} |
`),fa+=`| ${ya.join(Ea===1?"":" | ")} |
`}return Oe.replaceSelection(fa+`
`),Oe.focus();default:throw new Error}},[Oe,st]),Hn=(0,re.useMemo)(()=>{switch(st){case Ln:return re.createElement(bt,{callback:Nn,onCancel:In});case on:return re.createElement(jt.Z,{callback:Nn,onCancel:In});case wn:return re.createElement(Fe.Z,{callback:Nn,onCancel:In});case Dn:return re.createElement(ut,{callback:Nn,onCancel:In});case xn:return re.createElement(ft,{callback:Nn,onCancel:In});case"maths-latex":return re.createElement(Kt,{showSaveButton:!0,callback:Nn});case"inline-latex":return re.createElement(tn.Z,{showSaveButton:!0,callback:Nn});default:return null}},[st]);function In(){dt("")}(0,re.useEffect)(()=>{if(Rn.current){let it=function(Pn){$t=!0,en=Pn.pageY},Ze=function(){$t=!1},nt=function(Pn){if($t){let hn=Pn.pageY-en;hn<0&&(hn=0),hn>300&&(hn=300);let bn=Me+hn+"px";Xt(bn)}},lt=Rn.current,$t=!1,en=0;return lt.addEventListener("mousedown",it),document.addEventListener("mousemove",nt),document.addEventListener("mouseup",Ze),()=>{lt.removeEventListener("mousedown",it),document.removeEventListener("mousemove",nt),document.removeEventListener("mouseup",Ze)}}},[Oe,Rn]),(0,re.useEffect)(()=>{Xt(Me)},[Me]);const Sa=Ke(ce),la=Ke(vn),ma={width:Sa,height:la},va=(0,re.useMemo)(()=>{if(It){let it=new Date(It),Ze=it.getHours(),nt=it.getMinutes(),lt=it.getSeconds();return Ze=Ze<10?"0"+Ze:Ze,nt=nt<10?"0"+nt:nt,lt=lt<10?"0"+lt:lt,`${Ze}:${nt}:${lt}`}return 0},[It]),Pa=it=>{const Ze=[];if(Bt){let nt=-1;it=it.replace(/(@▁▁@|@▁@)/g,function(lt,$t,en){Ze.push({multiLine:lt!==ra})})}return Ze};function pa(){window.sessionStorage.removeItem(Ft),An(!1),qt(0)}function ba(){An(!1),qt(0),Oe.setValue(window.sessionStorage.getItem(Ft))}const aa=(0,Le.useIntl)(),sa={[Ln]:"\u6DFB\u52A0\u94FE\u63A5",[on]:aa.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[wn]:aa.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[yn]:"\u6DFB\u52A0\u753B\u56FE",[Dn]:aa.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[xn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":aa.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":aa.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,re.useEffect)(()=>{sa[st]&&st!==yn&&st!==Dn&&setTimeout(()=>{const it=document.getElementsByClassName("markdown-popup-form")[0],Ze=window.innerWidth/2-it.offsetWidth/2,nt=window.innerHeight/2-it.offsetHeight/2;gn(Ze),Cn(nt)},0)},[st]);const ca=it=>{it.preventDefault();const Ze=it.clientX-Ht,nt=it.clientY-mn;document.body.onmousemove=lt=>{let $t=lt.clientX-Ze,en=lt.clientY-nt;const Pn=document.getElementsByClassName("markdown-popup-form")[0],hn=window.innerWidth-Pn.offsetWidth,bn=window.innerHeight-Pn.offsetHeight;$t=Math.max(0,Math.min($t,hn)),en=Math.max(0,Math.min(en,bn)),ha(lt.clientX,lt.clientY,Ze,nt)&&(gn($t),Cn(en))},document.body.onmouseup=function(){document.body.onmousemove=null}},ha=(it,Ze,nt,lt)=>{const $t=document.body.clientHeight,en=document.body.clientWidth;return it<20&&nt>it||it>en-20&&nt<it||Ze<20&&lt>Ze||Ze>$t-20&&lt<Ze?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:_n},re.createElement("div",{className:`markdown-editor-container ${wt} ${Sn?"on-preview":""} ${at?"mini":""} ${We?"full-screen":""}`,style:ma},re.createElement(ie,{insertTemp:St,watch:Sn,fullScreen:We,showNullButton:He,showNullProgramButton:Bt,onActionCallback:Kn,hidetoolBar:kt,extraUse:Yt}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:Fn,placeholder:Zt})),Sn?re.createElement("div",{ref:Tn,className:"preview-container"},gt==="stex"&&re.createElement(Be,{value:cn}),gt!=="stex"&&re.createElement(Ne.Z,{disabledFill:an,showProgramFill:Bt,value:cn})):null))),Gt?re.createElement("a",{ref:Rn,className:"editor-resize"}):null,st===yn&&re.createElement(ct,{callback:Nn,onCancel:In}),st===Dn&&re.createElement(ut,{callback:Nn,onCancel:In}),re.createElement(Se.Z,null,sa[st]&&st!==yn&&st!==Dn?re.createElement(Ae.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ht,top:mn},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:ca},sa[st]),open:!0,onCancel:In,footer:null,destroyOnClose:!0,width:st===Dn?"1200px":null,height:st===Dn?"80vh":null,className:"markdown-popup-form"},Hn):null))}},94491:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return ie},I:function(){return se}});var re=ge(78241),ue=ge(8591),$e=ge(92832),et=ge(81327),he=ge(5871),ye=ge(5112),me=ge(3113),Ie=ge(92746),ze=ge(59301),Ce=ge(96141),Ne=ge(75759),Be=ge(59301),Le=Object.defineProperty,ne=Object.defineProperties,b=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,x=(be,we,Te)=>we in be?Le(be,we,{enumerable:!0,configurable:!0,writable:!0,value:Te}):be[we]=Te,z=(be,we)=>{for(var Te in we||(we={}))y.call(we,Te)&&x(be,Te,we[Te]);if(a)for(var Te of a(we))E.call(we,Te)&&x(be,Te,we[Te]);return be},ee=(be,we)=>ne(be,b(we));const{useForm:te}=re.default,ae={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:be,onCancel:we})=>{const[Te]=te();let tt=(0,ze.useRef)();const Je=(0,Ne.useIntl)();function fe(Ge){tt.current.width=Te.getFieldValue("width"),tt.current.align=Te.getFieldValue("align"),be(Ge,tt.current)}function ke(Ge,je){if(Ge.status===-1){ue.ZP.error(Ge.message);return}Te.setFieldsValue({src:`/api/attachments/${Ge.id}`,type:je.type})}function _e(Ge){let je=Ge.target.files[0];tt.current=je,se(je,ke)}return Be.createElement(re.default,ee(z({form:Te},oe),{className:"upload-image-panel",onFinish:fe,style:{width:470,overflow:"hidden"}}),Be.createElement(re.default.Item,{label:Je.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Be.createElement("div",{className:"flex-container"},Be.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Be.createElement($e.default,{style:ae})),Be.createElement(Se,{onFileChange:_e}))),Be.createElement(re.default.Item,{label:Je.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Be.createElement($e.default,{style:{width:264}})),Be.createElement(re.default.Item,{label:Je.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Be.createElement(et.Z,null,Be.createElement(re.default.Item,{name:"width",style:{margin:0}},Be.createElement(he.Z,{style:{width:264}})),Be.createElement("span",{className:"ml8"},"%"))),Be.createElement(re.default.Item,{label:Je.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Be.createElement(ye.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:Je.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:Je.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:Je.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Be.createElement("aside",null,Be.createElement(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Be.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Je.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Be.createElement(me.ZP,{type:"default",onClick:we},Je.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function Se({onFileChange:be}){return Be.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Be.createElement("input",{type:"file",onChange:be}))}function se(be,we){if(!be)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ce.bg)())throw ue.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Te=new FormData;Te.append("editormd-image-file",be),Te.append("file_param_name","editormd-image-file"),Te.append("byxhr","true");var tt=new window.XMLHttpRequest;tt.withCredentials=!0,tt.addEventListener("load",function(Je){we(JSON.parse(Je.target.responseText),be)},!1),tt.addEventListener("error",function(Je){console.error(Je)},!1),tt.open("POST",`${Ie.KI}/api/attachments.json`),tt.send(Te)}},89147:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return $e}});var re=ge(59301),ue=ge(4676);class $e extends re.Component{constructor(he){super(he);const ye=window.document;this.node=ye.createElement("div"),ye.body.appendChild(this.node)}render(){const{children:he}=this.props;return(0,ue.createPortal)(he,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},40835:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return ue}});var re=ge(59301);function ue($e,et){const he=(0,re.useRef)();(0,re.useEffect)(()=>{he.current=$e}),(0,re.useEffect)(()=>{function ye(){he.current()}if(et!==null){let me=setInterval(ye,et);return()=>clearInterval(me)}},[et])}},36845:function(xe,ot,ge){"use strict";ge.r(ot),ge.d(ot,{default:function(){return Te}});var re=ge(59301),ue=ge(30741),$e=ge(75759),et=ge(20834),he=ge(44e3),ye=ge(78241),me=ge(8591),Ie=ge(66104),ze=ge(95237),Ce=ge(43604),Ne=ge(57809),Be=ge(92832),Le=ge(28103),ne=ge(19842),b=ge(3113),a=ge(82329),y={flex_box_center:"flex_box_center___JefHi",flex_space_between:"flex_space_between___N1h0l",flex_box_vertical_center:"flex_box_vertical_center___Mtb4t",flex_box_center_end:"flex_box_center_end___F6G6K",flex_box_column:"flex_box_column___JldFX",bg:"bg___Hgook",title:"title____XaYs",titleLeft:"titleLeft___xe0PB",titleRight:"titleRight___wML5g",btns:"btns___l22_n"},E=Object.defineProperty,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(tt,Je,fe)=>Je in tt?E(tt,Je,{enumerable:!0,configurable:!0,writable:!0,value:fe}):tt[Je]=fe,ae=(tt,Je)=>{for(var fe in Je||(Je={}))z.call(Je,fe)&&te(tt,fe,Je[fe]);if(x)for(var fe of x(Je))ee.call(Je,fe)&&te(tt,fe,Je[fe]);return tt},oe=(tt,Je)=>{var fe={};for(var ke in tt)z.call(tt,ke)&&Je.indexOf(ke)<0&&(fe[ke]=tt[ke]);if(tt!=null&&x)for(var ke of x(tt))Je.indexOf(ke)<0&&ee.call(tt,ke)&&(fe[ke]=tt[ke]);return fe},ie=(tt,Je,fe)=>new Promise((ke,_e)=>{var Ge=Et=>{try{Lt(fe.next(Et))}catch(bt){_e(bt)}},je=Et=>{try{Lt(fe.throw(Et))}catch(bt){_e(bt)}},Lt=Et=>Et.done?ke(Et.value):Promise.resolve(Et.value).then(Ge,je);Lt((fe=fe.apply(tt,Je)).next())});const{SubMenu:Se}=et.default,{Content:se,Sider:be}=he.default,we=tt=>{var Je=tt,{graduation:fe,globalSetting:ke,loading:_e,user:Ge,dispatch:je}=Je,Lt=oe(Je,["graduation","globalSetting","loading","user","dispatch"]),Et,bt,jt,Fe,Ae,Xe,ht;const Qe=(0,$e.useIntl)(),ct=(0,$e.useParams)(),de=(0,$e.useLocation)(),{userInfo:Ue}=Ge,[Dt]=ye.default.useForm(),{addTopicData:Nt}=fe,At=()=>ie(void 0,null,function*(){const De=Dt.getFieldsValue(),Ee=ae({},De);Ee.city&&(Ee.province=Ee.city[0],Ee.city=Ee.city[1]);const ve=yield je({type:"graduation/addTopic",payload:{coursesId:ct.coursesId,attachment_ids:[],graduation_topic:Ee}});ve.status?me.ZP.error(ve.message):$e.history.push(`/classrooms/${ct.coursesId}/graduation_topics/${ct.categoryId}`)});return(0,re.useEffect)(()=>{je({type:"graduation/addTopicDefaultData",payload:ae({},ct)})},[ct.coursesId]),re.createElement("section",{className:"edu-container"},re.createElement("section",{className:"animated fadeIn"},re.createElement("aside",{className:"mt10"},Ue&&re.createElement(Ie.Z,{separator:">"},re.createElement(Ie.Z.Item,null,re.createElement($e.Link,{to:`${Ue.first_category_url}`},(Et=Ue==null?void 0:Ue.course)==null?void 0:Et.course_name)),re.createElement(Ie.Z.Item,null,re.createElement($e.Link,{to:`/classrooms/${ct.coursesId}/graduation_topics/${ct.categoryId}`},"\u6BD5\u8BBE\u9009\u9898")),re.createElement(Ie.Z.Item,null,Qe.formatMessage({id:"classrooms.createNew",defaultMessage:"\u65B0\u5EFA"})))),re.createElement("aside",{className:[y.title,"mt20"].join(" ")},re.createElement(ze.Z,{style:{width:"100%"}},re.createElement(Ce.Z,{flex:"1"},re.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u9009\u9898")),re.createElement(Ce.Z,null,re.createElement($e.Link,{className:"font16 c-light-black",to:`/classrooms/${ct.coursesId}/exercise`},Qe.formatMessage({id:"classroomGraphicGroupHomework.return",defaultMessage:"\u8FD4\u56DE"})))))),re.createElement("section",{className:[y.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},re.createElement(ye.default,{layout:"vertical",form:Dt,scrollToFirstError:!0,onFinish:De=>ie(void 0,null,function*(){At()})},re.createElement(ye.default.Item,{name:"tea_id",label:"\u6307\u5BFC\u8001\u5E08\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08",style:{width:200}},(bt=Nt.teacher_list)==null?void 0:bt.map(function(De,Ee){return re.createElement(Ne.default.Option,{value:De.id,key:Ee},De.name)}))),re.createElement(ye.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},re.createElement(Be.default,{size:"middle",placeholder:"\u8BD5\u5377\u6807\u9898"})),re.createElement(Le.Z,null),re.createElement(ye.default.Item,{label:"\u9009\u9898\u7B80\u4ECB",name:"description",rules:[{required:!0,message:Qe.formatMessage({id:"classrooms.enterContent",defaultMessage:"\u8BF7\u8F93\u5165\u5185\u5BB9"})}]},re.createElement(ue.Z,{watch:!0,placeholder:"\u8BF7\u7B80\u8981\u8BF4\u660E\u9009\u9898\u5185\u5BB9"})),re.createElement(ze.Z,{gutter:[20,0]},re.createElement(Ce.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_type"},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u7C7B\u578B"},(jt=Nt.topic_type)==null?void 0:jt.map(function(De,Ee){return re.createElement(Ne.default.Option,{value:De.id,key:Ee},De.name)})))),re.createElement(Ce.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_source"},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6765\u6E90"},(Fe=Nt.topic_source)==null?void 0:Fe.map(function(De,Ee){return re.createElement(Ne.default.Option,{value:De.id,key:Ee},De.name)})))),re.createElement(Ce.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_property_first"},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D281"},(Ae=Nt.topic_property_first)==null?void 0:Ae.map(function(De,Ee){return re.createElement(Ne.default.Option,{value:De.id,key:Ee},De.name)})))),re.createElement(Ce.Z,{flex:"1"},re.createElement(ye.default.Item,{name:"topic_property_second"},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u9009\u9898\u6027\u8D282"},(Xe=Nt.topic_property_second)==null?void 0:Xe.map(function(De,Ee){return re.createElement(Ne.default.Option,{value:De.id,key:Ee},De.name)})))),re.createElement(Ce.Z,{flex:"150px"})),re.createElement(Le.Z,null),re.createElement(ye.default.Item,{name:"source_unit",label:"\u9009\u9898\u6765\u6E90\u5355\u4F4D\uFF1A"},re.createElement(Be.default,{width:"200",size:"middle",style:{width:200},placeholder:"\u8BF7\u586B\u5199\u6765\u6E90\u5355\u4F4D"})),re.createElement(ye.default.Item,{name:"topic_repeat",label:"\u9009\u9898\u91CD\u590D\u60C5\u51B5\uFF1A"},re.createElement(Ne.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u91CD\u590D\u60C5\u51B5",style:{width:200}},(ht=Nt.topic_repeat)==null?void 0:ht.map(function(De,Ee){return re.createElement(Ne.default.Option,{value:De.id,key:Ee},De.name)}))),re.createElement(ye.default.Item,{name:"city",label:"\u8C03\u7814\u6216\u5B9E\u4E60\u5730\u70B9\uFF1A"},re.createElement(ne.Z,{size:"middle",style:{width:200},options:a.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"})))),re.createElement("aside",{className:y.btns},re.createElement(b.ZP,{type:"primary",onClick:()=>{Dt.submit()}},Qe.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})),re.createElement($e.Link,{to:`/classrooms/${ct.coursesId}/graduation_topics/${ct.categoryId}`},Qe.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}))))};var Te=(0,$e.connect)(({graduation:tt,loading:Je,user:fe,globalSetting:ke})=>({graduation:tt,globalSetting:ke,user:fe,loading:Je.effects}))(we)},82329:function(xe,ot,ge){"use strict";ge.d(ot,{P:function(){return re}});const re=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},66104:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return Je}});var re=ge(92310),ue=ge.n(re),$e=ge(11592),et=ge(26112),he=ge(59301),ye=ge(92343),me=ge(36355),Ie=ge(84105),ze=ge(91857);const Ce=fe=>{let{children:ke}=fe;const{getPrefixCls:_e}=he.useContext(me.E_),Ge=_e("breadcrumb");return he.createElement("li",{className:`${Ge}-separator`,"aria-hidden":"true"},ke===""?ke:ke||"/")};Ce.__ANT_BREADCRUMB_SEPARATOR=!0;var Ne=Ce,Be=function(fe,ke){var _e={};for(var Ge in fe)Object.prototype.hasOwnProperty.call(fe,Ge)&&ke.indexOf(Ge)<0&&(_e[Ge]=fe[Ge]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ge=Object.getOwnPropertySymbols(fe);je<Ge.length;je++)ke.indexOf(Ge[je])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ge[je])&&(_e[Ge[je]]=fe[Ge[je]]);return _e};function Le(fe,ke){if(fe.title===void 0||fe.title===null)return null;const _e=Object.keys(ke).join("|");return typeof fe.title=="object"?fe.title:String(fe.title).replace(new RegExp(`:(${_e})`,"g"),(Ge,je)=>ke[je]||Ge)}function ne(fe,ke,_e,Ge){if(_e==null)return null;const{className:je,onClick:Lt}=ke,Et=Be(ke,["className","onClick"]),bt=Object.assign(Object.assign({},(0,et.Z)(Et,{data:!0,aria:!0})),{onClick:Lt});return Ge!==void 0?he.createElement("a",Object.assign({},bt,{className:ue()(`${fe}-link`,je),href:Ge}),_e):he.createElement("span",Object.assign({},bt,{className:ue()(`${fe}-link`,je)}),_e)}function b(fe,ke){return(Ge,je,Lt,Et,bt)=>{if(ke)return ke(Ge,je,Lt,Et);const jt=Le(Ge,je);return ne(fe,Ge,jt,bt)}}var a=function(fe,ke){var _e={};for(var Ge in fe)Object.prototype.hasOwnProperty.call(fe,Ge)&&ke.indexOf(Ge)<0&&(_e[Ge]=fe[Ge]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ge=Object.getOwnPropertySymbols(fe);je<Ge.length;je++)ke.indexOf(Ge[je])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ge[je])&&(_e[Ge[je]]=fe[Ge[je]]);return _e};const y=fe=>{const{prefixCls:ke,separator:_e="/",children:Ge,menu:je,overlay:Lt,dropdownProps:Et,href:bt}=fe,Fe=(Ae=>{if(je||Lt){const Xe=Object.assign({},Et);if(je){const ht=je||{},{items:Qe}=ht,ct=a(ht,["items"]);Xe.menu=Object.assign(Object.assign({},ct),{items:Qe==null?void 0:Qe.map((de,Ue)=>{var{key:Dt,title:Nt,label:At,path:De}=de,Ee=a(de,["key","title","label","path"]);let ve=At!=null?At:Nt;return De&&(ve=he.createElement("a",{href:`${bt}${De}`},ve)),Object.assign(Object.assign({},Ee),{key:Dt!=null?Dt:Ue,label:ve})})})}else Lt&&(Xe.overlay=Lt);return he.createElement(ze.Z,Object.assign({placement:"bottom"},Xe),he.createElement("span",{className:`${ke}-overlay-link`},Ae,he.createElement(Ie.Z,null)))}return Ae})(Ge);return Fe!=null?he.createElement(he.Fragment,null,he.createElement("li",null,Fe),_e&&he.createElement(Ne,null,_e)):null},E=fe=>{const{prefixCls:ke,children:_e,href:Ge}=fe,je=a(fe,["prefixCls","children","href"]),{getPrefixCls:Lt}=he.useContext(me.E_),Et=Lt("breadcrumb",ke);return he.createElement(y,Object.assign({},je,{prefixCls:Et}),ne(Et,je,_e,Ge))};E.__ANT_BREADCRUMB_ITEM=!0;var x=E,z=ge(17313),ee=ge(83116),te=ge(37613);const ae=fe=>{const{componentCls:ke,iconCls:_e}=fe;return{[ke]:Object.assign(Object.assign({},(0,z.Wf)(fe)),{color:fe.itemColor,fontSize:fe.fontSize,[_e]:{fontSize:fe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:fe.linkColor,transition:`color ${fe.motionDurationMid}`,padding:`0 ${fe.paddingXXS}px`,borderRadius:fe.borderRadiusSM,height:fe.lineHeight*fe.fontSize,display:"inline-block",marginInline:-fe.marginXXS,"&:hover":{color:fe.linkHoverColor,backgroundColor:fe.colorBgTextHover}},(0,z.Qy)(fe)),"li:last-child":{color:fe.lastItemColor},[`${ke}-separator`]:{marginInline:fe.separatorMargin,color:fe.separatorColor},[`${ke}-link`]:{[`
> ${_e} + span,
> ${_e} + a
`]:{marginInlineStart:fe.marginXXS}},[`${ke}-overlay-link`]:{borderRadius:fe.borderRadiusSM,height:fe.lineHeight*fe.fontSize,display:"inline-block",padding:`0 ${fe.paddingXXS}px`,marginInline:-fe.marginXXS,[`> ${_e}`]:{marginInlineStart:fe.marginXXS,fontSize:fe.fontSizeIcon},"&:hover":{color:fe.linkHoverColor,backgroundColor:fe.colorBgTextHover,a:{color:fe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${fe.componentCls}-rtl`]:{direction:"rtl"}})}};var oe=(0,ee.Z)("Breadcrumb",fe=>{const ke=(0,te.TS)(fe,{});return[ae(ke)]},fe=>({itemColor:fe.colorTextDescription,lastItemColor:fe.colorText,iconFontSize:fe.fontSize,linkColor:fe.colorTextDescription,linkHoverColor:fe.colorText,separatorColor:fe.colorTextDescription,separatorMargin:fe.marginXS})),ie=function(fe,ke){var _e={};for(var Ge in fe)Object.prototype.hasOwnProperty.call(fe,Ge)&&ke.indexOf(Ge)<0&&(_e[Ge]=fe[Ge]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ge=Object.getOwnPropertySymbols(fe);je<Ge.length;je++)ke.indexOf(Ge[je])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ge[je])&&(_e[Ge[je]]=fe[Ge[je]]);return _e};function Se(fe){const{breadcrumbName:ke,children:_e}=fe,Ge=ie(fe,["breadcrumbName","children"]),je=Object.assign({title:ke},Ge);return _e&&(je.menu={items:_e.map(Lt=>{var{breadcrumbName:Et}=Lt,bt=ie(Lt,["breadcrumbName"]);return Object.assign(Object.assign({},bt),{title:Et})})}),je}function se(fe,ke){return(0,he.useMemo)(()=>fe||(ke?ke.map(Se):null),[fe,ke])}var be=function(fe,ke){var _e={};for(var Ge in fe)Object.prototype.hasOwnProperty.call(fe,Ge)&&ke.indexOf(Ge)<0&&(_e[Ge]=fe[Ge]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ge=Object.getOwnPropertySymbols(fe);je<Ge.length;je++)ke.indexOf(Ge[je])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ge[je])&&(_e[Ge[je]]=fe[Ge[je]]);return _e};const we=(fe,ke)=>{if(ke===void 0)return ke;let _e=(ke||"").replace(/^\//,"");return Object.keys(fe).forEach(Ge=>{_e=_e.replace(`:${Ge}`,fe[Ge])}),_e},Te=fe=>{const{prefixCls:ke,separator:_e="/",style:Ge,className:je,rootClassName:Lt,routes:Et,items:bt,children:jt,itemRender:Fe,params:Ae={}}=fe,Xe=be(fe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ht,direction:Qe,breadcrumb:ct}=he.useContext(me.E_);let de;const Ue=ht("breadcrumb",ke),[Dt,Nt]=oe(Ue),At=se(bt,Et),De=b(Ue,Fe);if(At&&At.length>0){const Re=[],Ve=bt||Et;de=At.map((ut,vt)=>{const{path:Ct,key:xt,type:zt,menu:ft,overlay:Ot,onClick:Ut,className:sn,separator:dn,dropdownProps:Kt}=ut,tn=we(Ae,Ct);tn!==void 0&&Re.push(tn);const nn=xt!=null?xt:vt;if(zt==="separator")return he.createElement(Ne,{key:nn},dn);const fn={},Ln=vt===At.length-1;ft?fn.menu=ft:Ot&&(fn.overlay=Ot);let{href:wn}=ut;return Re.length&&tn!==void 0&&(wn=`#/${Re.join("/")}`),he.createElement(y,Object.assign({key:nn},fn,(0,et.Z)(ut,{data:!0,aria:!0}),{className:sn,dropdownProps:Kt,href:wn,separator:Ln?"":_e,onClick:Ut,prefixCls:Ue}),De(ut,Ae,Ve,Re,wn))})}else if(jt){const Re=(0,$e.Z)(jt).length;de=(0,$e.Z)(jt).map((Ve,ut)=>{if(!Ve)return Ve;const vt=ut===Re-1;return(0,ye.Tm)(Ve,{separator:vt?"":_e,key:ut})})}const Ee=ue()(Ue,ct==null?void 0:ct.className,{[`${Ue}-rtl`]:Qe==="rtl"},je,Lt,Nt),ve=Object.assign(Object.assign({},ct==null?void 0:ct.style),Ge);return Dt(he.createElement("nav",Object.assign({className:Ee,style:ve},Xe),he.createElement("ol",null,de)))};Te.Item=x,Te.Separator=Ne;var tt=Te,Je=tt},19842:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return ua}});var re=ge(94480),ue=ge(59301),$e=ge(33853),et=ge(58617),he=ge(38819),ye=ge(92310),me=ge.n(ye),Ie=ge(54476),ze=ge(42978),Ce=ge(75931),Ne=ge(77861),Be=ge(17115),Le=ge(90782),ne=ge(6089),b=ge(18929),a=ue.createContext(null),y=a,E=ge(76190),x=ge(20068),z=ge(33885),ee="__rc_cascader_search_mark__",te=function(Ke,Ye,rt){var mt=rt.label;return Ye.some(function(pt){return String(pt[mt]).toLowerCase().includes(Ke.toLowerCase())})},ae=function(Ke,Ye,rt,mt){return Ye.map(function(pt){return pt[mt.label]}).join(" / ")},oe=function(pe,Ke,Ye,rt,mt,pt){var le=mt.filter,Pe=le===void 0?te:le,ce=mt.render,Me=ce===void 0?ae:ce,at=mt.limit,qe=at===void 0?50:at,yt=mt.sort;return ue.useMemo(function(){var St=[];if(!pe)return[];function gt(Ft,Gt){var Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ft.forEach(function(He){if(!(!yt&&qe!==!1&&qe>0&&St.length>=qe)){var Bt=[].concat((0,re.Z)(Gt),[He]),kt=He[Ye.children],Jt=Rt||He.disabled;if((!kt||kt.length===0||pt)&&Pe(pe,Bt,{label:Ye.label})){var Tt;St.push((0,z.Z)((0,z.Z)({},He),{},(Tt={disabled:Jt},(0,x.Z)(Tt,Ye.label,Me(pe,Bt,rt,Ye)),(0,x.Z)(Tt,ee,Bt),(0,x.Z)(Tt,Ye.children,void 0),Tt)))}kt&&gt(He[Ye.children],Bt,Jt)}})}return gt(Ke,[]),yt&&St.sort(function(Ft,Gt){return yt(Ft[ee],Gt[ee],pe,Ye)}),qe!==!1&&qe>0?St.slice(0,qe):St},[pe,Ke,Ye,rt,Me,pt,Pe,yt,qe])},ie="__RC_CASCADER_SPLIT__",Se="SHOW_PARENT",se="SHOW_CHILD";function be(pe){return pe.join(ie)}function we(pe){return pe.map(be)}function Te(pe){return pe.split(ie)}function tt(pe){var Ke=pe||{},Ye=Ke.label,rt=Ke.value,mt=Ke.children,pt=rt||"value";return{label:Ye||"label",value:pt,key:pt,children:mt||"children"}}function Je(pe,Ke){var Ye,rt;return(Ye=pe.isLeaf)!==null&&Ye!==void 0?Ye:!((rt=pe[Ke.children])!==null&&rt!==void 0&&rt.length)}function fe(pe){var Ke=pe.parentElement;if(Ke){var Ye=pe.offsetTop-Ke.offsetTop;Ye-Ke.scrollTop<0?Ke.scrollTo({top:Ye}):Ye+pe.offsetHeight-Ke.scrollTop>Ke.offsetHeight&&Ke.scrollTo({top:Ye+pe.offsetHeight-Ke.offsetHeight})}}function ke(pe,Ke){return pe.map(function(Ye){var rt;return(rt=Ye[ee])===null||rt===void 0?void 0:rt.map(function(mt){return mt[Ke.value]})})}function _e(pe,Ke,Ye){var rt=new Set(pe),mt=Ke();return pe.filter(function(pt){var le=mt[pt],Pe=le?le.parent:null,ce=le?le.children:null;return le&&le.node.disabled?!0:Ye===se?!(ce&&ce.some(function(Me){return Me.key&&rt.has(Me.key)})):!(Pe&&!Pe.node.disabled&&rt.has(Pe.key))})}function Ge(pe,Ke,Ye){for(var rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,mt=Ke,pt=[],le=function(){var Me,at,qe,yt=pe[Pe],St=(Me=mt)===null||Me===void 0?void 0:Me.findIndex(function(Ft){var Gt=Ft[Ye.value];return rt?String(Gt)===String(yt):Gt===yt}),gt=St!==-1?(at=mt)===null||at===void 0?void 0:at[St]:null;pt.push({value:(qe=gt==null?void 0:gt[Ye.value])!==null&&qe!==void 0?qe:yt,index:St,option:gt}),mt=gt==null?void 0:gt[Ye.children]},Pe=0;Pe<pe.length;Pe+=1)le();return pt}var je=function(pe,Ke,Ye,rt,mt){return ue.useMemo(function(){var pt=mt||function(le){var Pe=rt?le.slice(-1):le,ce=" / ";return Pe.every(function(Me){return["string","number"].includes((0,E.Z)(Me))})?Pe.join(ce):Pe.reduce(function(Me,at,qe){var yt=ue.isValidElement(at)?ue.cloneElement(at,{key:qe}):at;return qe===0?[yt]:[].concat((0,re.Z)(Me),[ce,yt])},[])};return pe.map(function(le){var Pe,ce,Me=Ge(le,Ke,Ye),at=pt(Me.map(function(yt){var St,gt=yt.option,Ft=yt.value;return(St=gt==null?void 0:gt[Ye.label])!==null&&St!==void 0?St:Ft}),Me.map(function(yt){var St=yt.option;return St})),qe=be(le);return{label:at,value:qe,key:qe,valueCells:le,disabled:(Pe=Me[Me.length-1])===null||Pe===void 0||(ce=Pe.option)===null||ce===void 0?void 0:ce.disabled}})},[pe,Ke,Ye,mt,rt])},Lt=ge(71430),Et=function(pe,Ke){var Ye=ue.useRef({options:null,info:null}),rt=ue.useCallback(function(){return Ye.current.options!==pe&&(Ye.current.options=pe,Ye.current.info=(0,Lt.I8)(pe,{fieldNames:Ke,initWrapper:function(pt){return(0,z.Z)((0,z.Z)({},pt),{},{pathKeyEntities:{}})},processEntity:function(pt,le){var Pe=pt.nodes.map(function(ce){return ce[Ke.value]}).join(ie);le.pathKeyEntities[Pe]=pt,pt.key=Pe}})),Ye.current.info.pathKeyEntities},[Ke,pe]);return rt},bt=function(pe,Ke){return ue.useCallback(function(Ye){var rt=[],mt=[];return Ye.forEach(function(pt){var le=Ge(pt,pe,Ke);le.every(function(Pe){return Pe.option})?mt.push(pt):rt.push(pt)}),[mt,rt]},[pe,Ke])},jt=ge(48736);function Fe(pe){return ue.useMemo(function(){if(!pe)return[!1,{}];var Ke={matchInputWidth:!0,limit:50};return pe&&(0,E.Z)(pe)==="object"&&(Ke=(0,z.Z)((0,z.Z)({},Ke),pe)),Ke.limit<=0&&delete Ke.limit,[!0,Ke]},[pe])}var Ae=ue.memo(function(pe){var Ke=pe.children;return Ke},function(pe,Ke){return!Ke.open}),Xe=Ae;function ht(pe){var Ke,Ye=pe.prefixCls,rt=pe.checked,mt=pe.halfChecked,pt=pe.disabled,le=pe.onClick,Pe=pe.disableCheckbox,ce=ue.useContext(y),Me=ce.checkable,at=typeof Me!="boolean"?Me:null;return ue.createElement("span",{className:me()("".concat(Ye),(Ke={},(0,x.Z)(Ke,"".concat(Ye,"-checked"),rt),(0,x.Z)(Ke,"".concat(Ye,"-indeterminate"),!rt&&mt),(0,x.Z)(Ke,"".concat(Ye,"-disabled"),pt||Pe),Ke)),onClick:le},at)}var Qe="__cascader_fix_label__";function ct(pe){var Ke=pe.prefixCls,Ye=pe.multiple,rt=pe.options,mt=pe.activeValue,pt=pe.prevValuePath,le=pe.onToggleOpen,Pe=pe.onSelect,ce=pe.onActive,Me=pe.checkedSet,at=pe.halfCheckedSet,qe=pe.loadingKeys,yt=pe.isSelectable,St=pe.searchValue,gt="".concat(Ke,"-menu"),Ft="".concat(Ke,"-menu-item"),Gt=ue.useContext(y),Rt=Gt.fieldNames,He=Gt.changeOnSelect,Bt=Gt.expandTrigger,kt=Gt.expandIcon,Jt=Gt.loadingIcon,Tt=Gt.dropdownMenuColumnStyle,Mt=Bt==="hover",Qt=ue.useMemo(function(){return rt.map(function(wt){var Wt,_t=wt.disabled,an=wt.disableCheckbox,Zt=wt[ee],rn=(Wt=wt[Qe])!==null&&Wt!==void 0?Wt:wt[Rt.label],Yt=wt[Rt.value],Oe=Je(wt,Rt),un=Zt?Zt.map(function(We){return We[Rt.value]}):[].concat((0,re.Z)(pt),[Yt]),cn=be(un),En=qe.includes(cn),Sn=Me.has(cn),Vt=at.has(cn);return{disabled:_t,label:rn,value:Yt,isLeaf:Oe,isLoading:En,checked:Sn,halfChecked:Vt,option:wt,disableCheckbox:an,fullPath:un,fullPathKey:cn}})},[rt,Me,Rt,at,qe,pt]);return ue.createElement("ul",{className:gt,role:"menu"},Qt.map(function(wt){var Wt,_t=wt.disabled,an=wt.label,Zt=wt.value,rn=wt.isLeaf,Yt=wt.isLoading,Oe=wt.checked,un=wt.halfChecked,cn=wt.option,En=wt.fullPath,Sn=wt.fullPathKey,Vt=wt.disableCheckbox,We=function(){if(!(_t||St)){var It=(0,re.Z)(En);Mt&&rn&&It.pop(),ce(It)}},Pt=function(){yt(cn)&&Pe(En,rn)},st;return typeof cn.title=="string"?st=cn.title:typeof an=="string"&&(st=an),ue.createElement("li",{key:Sn,className:me()(Ft,(Wt={},(0,x.Z)(Wt,"".concat(Ft,"-expand"),!rn),(0,x.Z)(Wt,"".concat(Ft,"-active"),mt===Zt||mt===Sn),(0,x.Z)(Wt,"".concat(Ft,"-disabled"),_t),(0,x.Z)(Wt,"".concat(Ft,"-loading"),Yt),Wt)),style:Tt,role:"menuitemcheckbox",title:st,"aria-checked":Oe,"data-path-key":Sn,onClick:function(){We(),!Vt&&(!Ye||rn)&&Pt()},onDoubleClick:function(){He&&le(!1)},onMouseEnter:function(){Mt&&We()},onMouseDown:function(It){It.preventDefault()}},Ye&&ue.createElement(ht,{prefixCls:"".concat(Ke,"-checkbox"),checked:Oe,halfChecked:un,disabled:_t||Vt,disableCheckbox:Vt,onClick:function(It){Vt||(It.stopPropagation(),Pt())}}),ue.createElement("div",{className:"".concat(Ft,"-content")},an),!Yt&&kt&&!rn&&ue.createElement("div",{className:"".concat(Ft,"-expand-icon")},kt),Yt&&Jt&&ue.createElement("div",{className:"".concat(Ft,"-loading-icon")},Jt))}))}var de=function(){var pe=(0,Ne.lk)(),Ke=pe.multiple,Ye=pe.open,rt=ue.useContext(y),mt=rt.values,pt=ue.useState([]),le=(0,ze.Z)(pt,2),Pe=le[0],ce=le[1];return ue.useEffect(function(){if(Ye&&!Ke){var Me=mt[0];ce(Me||[])}},[Ye]),[Pe,ce]},Ue=ge(10228),Dt=function(pe,Ke,Ye,rt,mt,pt){var le=(0,Ne.lk)(),Pe=le.direction,ce=le.searchValue,Me=le.toggleOpen,at=le.open,qe=Pe==="rtl",yt=ue.useMemo(function(){for(var Tt=-1,Mt=Ke,Qt=[],wt=[],Wt=rt.length,_t=ke(Ke,Ye),an=function(cn){var En=Mt.findIndex(function(Sn,Vt){return(_t[Vt]?be(_t[Vt]):Sn[Ye.value])===rt[cn]});if(En===-1)return"break";Tt=En,Qt.push(Tt),wt.push(rt[cn]),Mt=Mt[Tt][Ye.children]},Zt=0;Zt<Wt&&Mt;Zt+=1){var rn=an(Zt);if(rn==="break")break}for(var Yt=Ke,Oe=0;Oe<Qt.length-1;Oe+=1)Yt=Yt[Qt[Oe]][Ye.children];return[wt,Tt,Yt,_t]},[rt,Ye,Ke]),St=(0,ze.Z)(yt,4),gt=St[0],Ft=St[1],Gt=St[2],Rt=St[3],He=function(Mt){mt(Mt)},Bt=function(Mt){var Qt=Gt.length,wt=Ft;wt===-1&&Mt<0&&(wt=Qt);for(var Wt=0;Wt<Qt;Wt+=1){wt=(wt+Mt+Qt)%Qt;var _t=Gt[wt];if(_t&&!_t.disabled){var an=gt.slice(0,-1).concat(Rt[wt]?be(Rt[wt]):_t[Ye.value]);He(an);return}}},kt=function(){if(gt.length>1){var Mt=gt.slice(0,-1);He(Mt)}else Me(!1)},Jt=function(){var Mt,Qt=((Mt=Gt[Ft])===null||Mt===void 0?void 0:Mt[Ye.children])||[],wt=Qt.find(function(_t){return!_t.disabled});if(wt){var Wt=[].concat((0,re.Z)(gt),[wt[Ye.value]]);He(Wt)}};ue.useImperativeHandle(pe,function(){return{onKeyDown:function(Mt){var Qt=Mt.which;switch(Qt){case Ue.Z.UP:case Ue.Z.DOWN:{var wt=0;Qt===Ue.Z.UP?wt=-1:Qt===Ue.Z.DOWN&&(wt=1),wt!==0&&Bt(wt);break}case Ue.Z.LEFT:{if(ce)break;qe?Jt():kt();break}case Ue.Z.RIGHT:{if(ce)break;qe?kt():Jt();break}case Ue.Z.BACKSPACE:{ce||kt();break}case Ue.Z.ENTER:{if(gt.length){var Wt=Gt[Ft],_t=(Wt==null?void 0:Wt[ee])||[];_t.length?pt(_t.map(function(an){return an[Ye.value]}),_t[_t.length-1]):pt(gt,Gt[Ft])}break}case Ue.Z.ESC:Me(!1),at&&Mt.stopPropagation()}},onKeyUp:function(){}}})},Nt=ue.forwardRef(function(pe,Ke){var Ye,rt,mt,pt,le=(0,Ne.lk)(),Pe=le.prefixCls,ce=le.multiple,Me=le.searchValue,at=le.toggleOpen,qe=le.notFoundContent,yt=le.direction,St=le.open,gt=ue.useRef(),Ft=yt==="rtl",Gt=ue.useContext(y),Rt=Gt.options,He=Gt.values,Bt=Gt.halfValues,kt=Gt.fieldNames,Jt=Gt.changeOnSelect,Tt=Gt.onSelect,Mt=Gt.searchOptions,Qt=Gt.dropdownPrefixCls,wt=Gt.loadData,Wt=Gt.expandTrigger,_t=Qt||Pe,an=ue.useState([]),Zt=(0,ze.Z)(an,2),rn=Zt[0],Yt=Zt[1],Oe=function(Ht){if(!(!wt||Me)){var gn=Ge(Ht,Rt,kt),mn=gn.map(function(_n){var Rn=_n.option;return Rn}),Cn=mn[mn.length-1];if(Cn&&!Je(Cn,kt)){var Fn=be(Ht);Yt(function(_n){return[].concat((0,re.Z)(_n),[Fn])}),wt(mn)}}};ue.useEffect(function(){rn.length&&rn.forEach(function(ln){var Ht=Te(ln),gn=Ge(Ht,Rt,kt,!0).map(function(Cn){var Fn=Cn.option;return Fn}),mn=gn[gn.length-1];(!mn||mn[kt.children]||Je(mn,kt))&&Yt(function(Cn){return Cn.filter(function(Fn){return Fn!==ln})})})},[Rt,rn,kt]);var un=ue.useMemo(function(){return new Set(we(He))},[He]),cn=ue.useMemo(function(){return new Set(we(Bt))},[Bt]),En=de(),Sn=(0,ze.Z)(En,2),Vt=Sn[0],We=Sn[1],Pt=function(Ht){We(Ht),Oe(Ht)},st=function(Ht){var gn=Ht.disabled,mn=Je(Ht,kt);return!gn&&(mn||Jt||ce)},dt=function(Ht,gn){var mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Tt(Ht),!ce&&(gn||Jt&&(Wt==="hover"||mn))&&at(!1)},It=ue.useMemo(function(){return Me?Mt:Rt},[Me,Mt,Rt]),qt=ue.useMemo(function(){for(var ln=[{options:It}],Ht=It,gn=ke(Ht,kt),mn=function(){var Rn=Vt[Cn],Tn=Ht.find(function(qn,Xn){return(gn[Xn]?be(gn[Xn]):qn[kt.value])===Rn}),Wn=Tn==null?void 0:Tn[kt.children];if(!(Wn!=null&&Wn.length))return"break";Ht=Wn,ln.push({options:Wn})},Cn=0;Cn<Vt.length;Cn+=1){var Fn=mn();if(Fn==="break")break}return ln},[It,Vt,kt]),vn=function(Ht,gn){st(gn)&&dt(Ht,Je(gn,kt),!0)};Dt(Ke,It,kt,Vt,Pt,vn),ue.useEffect(function(){for(var ln=0;ln<Vt.length;ln+=1){var Ht,gn=Vt.slice(0,ln+1),mn=be(gn),Cn=(Ht=gt.current)===null||Ht===void 0?void 0:Ht.querySelector('li[data-path-key="'.concat(mn.replace(/\\{0,2}"/g,'\\"'),'"]'));Cn&&fe(Cn)}},[Vt]);var Xt=!((Ye=qt[0])!==null&&Ye!==void 0&&(rt=Ye.options)!==null&&rt!==void 0&&rt.length),pn=[(mt={},(0,x.Z)(mt,kt.value,"__EMPTY__"),(0,x.Z)(mt,Qe,qe),(0,x.Z)(mt,"disabled",!0),mt)],An=(0,z.Z)((0,z.Z)({},pe),{},{multiple:!Xt&&ce,onSelect:dt,onActive:Pt,onToggleOpen:at,checkedSet:un,halfCheckedSet:cn,loadingKeys:rn,isSelectable:st}),$n=Xt?[{options:pn}]:qt,na=$n.map(function(ln,Ht){var gn=Vt.slice(0,Ht),mn=Vt[Ht];return ue.createElement(ct,(0,Ie.Z)({key:Ht},An,{searchValue:Me,prefixCls:_t,options:ln.options,prevValuePath:gn,activeValue:mn}))});return ue.createElement(Xe,{open:St},ue.createElement("div",{className:me()("".concat(_t,"-menus"),(pt={},(0,x.Z)(pt,"".concat(_t,"-menu-empty"),Xt),(0,x.Z)(pt,"".concat(_t,"-rtl"),Ft),pt)),ref:gt},na))}),At=Nt;function De(pe){var Ke=pe.onPopupVisibleChange,Ye=pe.popupVisible,rt=pe.popupClassName,mt=pe.popupPlacement;warning(!Ke,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Ye===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(rt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(mt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ee(pe,Ke){if(pe){var Ye=function rt(mt){for(var pt=0;pt<mt.length;pt++){var le=mt[pt];if(le[Ke==null?void 0:Ke.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(le[Ke==null?void 0:Ke.children])&&rt(le[Ke==null?void 0:Ke.children]))return!0}};Ye(pe)}}var ve=null,Re=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Ve(pe){return Array.isArray(pe)&&Array.isArray(pe[0])}function ut(pe){return pe?Ve(pe)?pe:(pe.length===0?[]:[pe]).map(function(Ke){return Array.isArray(Ke)?Ke:[Ke]}):[]}var vt=ue.forwardRef(function(pe,Ke){var Ye=pe.id,rt=pe.prefixCls,mt=rt===void 0?"rc-cascader":rt,pt=pe.fieldNames,le=pe.defaultValue,Pe=pe.value,ce=pe.changeOnSelect,Me=pe.onChange,at=pe.displayRender,qe=pe.checkable,yt=pe.autoClearSearchValue,St=yt===void 0?!0:yt,gt=pe.searchValue,Ft=pe.onSearch,Gt=pe.showSearch,Rt=pe.expandTrigger,He=pe.options,Bt=pe.dropdownPrefixCls,kt=pe.loadData,Jt=pe.popupVisible,Tt=pe.open,Mt=pe.popupClassName,Qt=pe.dropdownClassName,wt=pe.dropdownMenuColumnStyle,Wt=pe.popupPlacement,_t=pe.placement,an=pe.onDropdownVisibleChange,Zt=pe.onPopupVisibleChange,rn=pe.expandIcon,Yt=rn===void 0?">":rn,Oe=pe.loadingIcon,un=pe.children,cn=pe.dropdownMatchSelectWidth,En=cn===void 0?!1:cn,Sn=pe.showCheckedStrategy,Vt=Sn===void 0?Se:Sn,We=(0,Ce.Z)(pe,Re),Pt=(0,Be.ZP)(Ye),st=!!qe,dt=(0,b.Z)(le,{value:Pe,postState:ut}),It=(0,ze.Z)(dt,2),qt=It[0],vn=It[1],Xt=ue.useMemo(function(){return tt(pt)},[JSON.stringify(pt)]),pn=ue.useMemo(function(){return He||[]},[He]),An=Et(pn,Xt),$n=ue.useCallback(function(it){var Ze=An();return it.map(function(nt){var lt=Ze[nt].nodes;return lt.map(function($t){return $t[Xt.value]})})},[An,Xt]),na=(0,b.Z)("",{value:gt,postState:function(Ze){return Ze||""}}),ln=(0,ze.Z)(na,2),Ht=ln[0],gn=ln[1],mn=function(Ze,nt){gn(Ze),nt.source!=="blur"&&Ft&&Ft(Ze)},Cn=Fe(Gt),Fn=(0,ze.Z)(Cn,2),_n=Fn[0],Rn=Fn[1],Tn=oe(Ht,pn,Xt,Bt||mt,Rn,ce),Wn=bt(pn,Xt),qn=ue.useMemo(function(){var it=Wn(qt),Ze=(0,ze.Z)(it,2),nt=Ze[0],lt=Ze[1];if(!st||!qt.length)return[nt,[],lt];var $t=we(nt),en=An(),Pn=(0,Le.S)($t,!0,en),hn=Pn.checkedKeys,bn=Pn.halfCheckedKeys;return[$n(hn),$n(bn),lt]},[st,qt,An,$n,Wn]),Xn=(0,ze.Z)(qn,3),Kn=Xn[0],Nn=Xn[1],Hn=Xn[2],In=ue.useMemo(function(){var it=we(Kn),Ze=_e(it,An,Vt);return[].concat((0,re.Z)(Hn),(0,re.Z)($n(Ze)))},[Kn,An,$n,Hn,Vt]),Sa=je(In,pn,Xt,st,at),la=(0,ne.Z)(function(it){if(vn(it),Me){var Ze=ut(it),nt=Ze.map(function(en){return Ge(en,pn,Xt).map(function(Pn){return Pn.option})}),lt=st?Ze:Ze[0],$t=st?nt:nt[0];Me(lt,$t)}}),ma=(0,ne.Z)(function(it){if((!st||St)&&gn(""),!st)la(it);else{var Ze=be(it),nt=we(Kn),lt=we(Nn),$t=nt.includes(Ze),en=Hn.some(function(Un){return be(Un)===Ze}),Pn=Kn,hn=Hn;if(en&&!$t)hn=Hn.filter(function(Un){return be(Un)!==Ze});else{var bn=$t?nt.filter(function(Un){return Un!==Ze}):[].concat((0,re.Z)(nt),[Ze]),Bn=An(),jn;if($t){var On=(0,Le.S)(bn,{checked:!1,halfCheckedKeys:lt},Bn);jn=On.checkedKeys}else{var ga=(0,Le.S)(bn,!0,Bn);jn=ga.checkedKeys}var ia=_e(jn,An,Vt);Pn=$n(ia)}la([].concat((0,re.Z)(hn),(0,re.Z)(Pn)))}}),va=function(Ze,nt){if(nt.type==="clear"){la([]);return}var lt=nt.values[0],$t=lt.valueCells;ma($t)},Pa=Tt!==void 0?Tt:Jt,pa=Qt||Mt,ba=_t||Wt,aa=function(Ze){an==null||an(Ze),Zt==null||Zt(Ze)},sa=ue.useMemo(function(){return{options:pn,fieldNames:Xt,values:Kn,halfValues:Nn,changeOnSelect:ce,onSelect:ma,checkable:qe,searchOptions:Tn,dropdownPrefixCls:Bt,loadData:kt,expandTrigger:Rt,expandIcon:Yt,loadingIcon:Oe,dropdownMenuColumnStyle:wt}},[pn,Xt,Kn,Nn,ce,ma,qe,Tn,Bt,kt,Rt,Yt,Oe,wt]),ca=!(Ht?Tn:pn).length,ha=Ht&&Rn.matchInputWidth||ca?{}:{minWidth:"auto"};return ue.createElement(y.Provider,{value:sa},ue.createElement(Ne.Ac,(0,Ie.Z)({},We,{ref:Ke,id:Pt,prefixCls:mt,autoClearSearchValue:St,dropdownMatchSelectWidth:En,dropdownStyle:ha,displayValues:Sa,onDisplayValuesChange:va,mode:st?"multiple":void 0,searchValue:Ht,onSearch:mn,showSearch:_n,OptionList:At,emptyOptions:ca,open:Pa,dropdownClassName:pa,placement:ba,onDropdownVisibleChange:aa,getRawInputElement:function(){return un}})))});vt.SHOW_PARENT=Se,vt.SHOW_CHILD=se;var Ct=vt,xt=Ct,zt=ge(2738),ft=ge(62892),Ot=ge(53487),Ut=ge(19080),sn=ge(36355),dn=ge(93891),Kt=ge(1684),tn=ge(19716),nn=ge(32441),fn=ge(14154),Ln=ge(58582),wn=ge(84443),Dn=ge(66339),yn=ge(33234),zn=ge(98447),on=ge(17313),xn=ge(74207),kn=ge(83116);const Zn=pe=>{const{prefixCls:Ke,componentCls:Ye,antCls:rt}=pe,mt=`${Ye}-menu-item`,pt=`
&${mt}-expand ${mt}-expand-icon,
${mt}-loading-icon
`;return[{[Ye]:{width:pe.controlWidth}},{[`${Ye}-dropdown`]:[(0,zn.C2)(`${Ke}-checkbox`,pe),{[`&${rt}-select-dropdown`]:{padding:0}},{[Ye]:{"&-checkbox":{top:0,marginInlineEnd:pe.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ye}-menu-empty`]:{[`${Ye}-menu`]:{width:"100%",height:"auto",[mt]:{color:pe.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:pe.controlItemWidth,height:pe.dropdownHeight,margin:0,padding:pe.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${pe.lineWidth}px ${pe.lineType} ${pe.colorSplit}`},"&-item":Object.assign(Object.assign({},on.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:pe.optionPadding,lineHeight:pe.lineHeight,cursor:"pointer",transition:`all ${pe.motionDurationMid}`,borderRadius:pe.borderRadiusSM,"&:hover":{background:pe.controlItemBgHover},"&-disabled":{color:pe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[pt]:{color:pe.colorTextDisabled}},[`&-active:not(${mt}-disabled)`]:{"&, &:hover":{fontWeight:pe.optionSelectedFontWeight,backgroundColor:pe.optionSelectedBg}},"&-content":{flex:"auto"},[pt]:{marginInlineStart:pe.paddingXXS,color:pe.colorTextDescription,fontSize:pe.fontSizeIcon},"&-keyword":{color:pe.colorHighlight}})}}}]},{[`${Ye}-dropdown-rtl`]:{direction:"rtl"}},(0,xn.c)(pe)]};var ea=(0,kn.Z)("Cascader",pe=>[Zn(pe)],pe=>{const Ke=Math.round((pe.controlHeight-pe.fontSize*pe.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:pe.controlItemBgActive,optionSelectedFontWeight:pe.fontWeightStrong,optionPadding:`${Ke}px ${pe.paddingSM}px`,menuPadding:pe.paddingXXS}}),Jn=function(pe,Ke){var Ye={};for(var rt in pe)Object.prototype.hasOwnProperty.call(pe,rt)&&Ke.indexOf(rt)<0&&(Ye[rt]=pe[rt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,rt=Object.getOwnPropertySymbols(pe);mt<rt.length;mt++)Ke.indexOf(rt[mt])<0&&Object.prototype.propertyIsEnumerable.call(pe,rt[mt])&&(Ye[rt[mt]]=pe[rt[mt]]);return Ye};const{SHOW_CHILD:Qn,SHOW_PARENT:oa}=xt;function Vn(pe,Ke,Ye){const rt=pe.toLowerCase().split(Ke).reduce((le,Pe,ce)=>ce===0?[Pe]:[].concat((0,re.Z)(le),[Ke,Pe]),[]),mt=[];let pt=0;return rt.forEach((le,Pe)=>{const ce=pt+le.length;let Me=pe.slice(pt,ce);pt=ce,Pe%2===1&&(Me=ue.createElement("span",{className:`${Ye}-menu-item-keyword`,key:`separator-${Pe}`},Me)),mt.push(Me)}),mt}const ta=(pe,Ke,Ye,rt)=>{const mt=[],pt=pe.toLowerCase();return Ke.forEach((le,Pe)=>{Pe!==0&&mt.push(" / ");let ce=le[rt.label];const Me=typeof ce;(Me==="string"||Me==="number")&&(ce=Vn(String(ce),pt,Ye)),mt.push(ce)}),mt},Gn=ue.forwardRef((pe,Ke)=>{const{prefixCls:Ye,size:rt,disabled:mt,className:pt,rootClassName:le,multiple:Pe,bordered:ce=!0,transitionName:Me,choiceTransitionName:at="",popupClassName:qe,dropdownClassName:yt,expandIcon:St,placement:gt,showSearch:Ft,allowClear:Gt=!0,notFoundContent:Rt,direction:He,getPopupContainer:Bt,status:kt,showArrow:Jt,builtinPlacements:Tt,style:Mt}=pe,Qt=Jn(pe,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),wt=(0,zt.Z)(Qt,["suffixIcon"]),{getPopupContainer:Wt,getPrefixCls:_t,renderEmpty:an,direction:Zt,popupOverflow:rn,cascader:Yt}=ue.useContext(sn.E_),Oe=He||Zt,un=Oe==="rtl",{status:cn,hasFeedback:En,isFormItemInput:Sn,feedbackIcon:Vt}=ue.useContext(nn.aM),We=(0,Ut.F)(cn,kt),Pt=Rt||(an==null?void 0:an("Cascader"))||ue.createElement(dn.Z,{componentName:"Cascader"}),st=_t(),dt=_t("select",Ye),It=_t("cascader",Ye),[qt,vn]=(0,fn.Z)(dt),[Xt]=ea(It),{compactSize:pn,compactItemClassnames:An}=(0,yn.ri)(dt,He),$n=me()(qe||yt,`${It}-dropdown`,{[`${It}-dropdown-rtl`]:Oe==="rtl"},le,vn),na=ue.useMemo(()=>{if(!Ft)return Ft;let Hn={render:ta};return typeof Ft=="object"&&(Hn=Object.assign(Object.assign({},Hn),Ft)),Hn},[Ft]),ln=(0,tn.Z)(Hn=>{var In;return(In=rt!=null?rt:pn)!==null&&In!==void 0?In:Hn}),Ht=ue.useContext(Kt.Z),gn=mt!=null?mt:Ht;let mn=St;St||(mn=un?ue.createElement($e.Z,null):ue.createElement(he.Z,null));const Cn=ue.createElement("span",{className:`${dt}-menu-item-loading-icon`},ue.createElement(et.Z,{spin:!0})),Fn=ue.useMemo(()=>Pe?ue.createElement("span",{className:`${It}-checkbox-inner`}):!1,[Pe]),_n=(0,wn.Z)(pe.suffixIcon,Jt),{suffixIcon:Rn,removeIcon:Tn,clearIcon:Wn}=(0,Dn.Z)(Object.assign(Object.assign({},pe),{hasFeedback:En,feedbackIcon:Vt,showSuffixIcon:_n,multiple:Pe,prefixCls:dt,componentName:"Cascader"})),qn=ue.useMemo(()=>gt!==void 0?gt:un?"bottomRight":"bottomLeft",[gt,un]),Xn=(0,Ln.Z)(Tt,rn),Kn=Gt===!0?{clearIcon:Wn}:Gt,Nn=ue.createElement(xt,Object.assign({prefixCls:dt,className:me()(!Ye&&It,{[`${dt}-lg`]:ln==="large",[`${dt}-sm`]:ln==="small",[`${dt}-rtl`]:un,[`${dt}-borderless`]:!ce,[`${dt}-in-form-item`]:Sn},(0,Ut.Z)(dt,We,En),An,Yt==null?void 0:Yt.className,pt,le,vn),disabled:gn,style:Object.assign(Object.assign({},Yt==null?void 0:Yt.style),Mt)},wt,{builtinPlacements:Xn,direction:Oe,placement:qn,notFoundContent:Pt,allowClear:Kn,showSearch:na,expandIcon:mn,suffixIcon:Rn,removeIcon:Tn,loadingIcon:Cn,checkable:Fn,dropdownClassName:$n,dropdownPrefixCls:Ye||It,choiceTransitionName:(0,ft.m)(st,"",at),transitionName:(0,ft.m)(st,"slide-up",Me),getPopupContainer:Bt||Wt,ref:Ke}));return Xt(qt(Nn))}),ra=(0,Ot.Z)(Gn);Gn.SHOW_PARENT=oa,Gn.SHOW_CHILD=Qn,Gn._InternalPanelDoNotUseOrYouWillBeFired=ra;var ua=Gn},98447:function(xe,ot,ge){"use strict";ge.d(ot,{C2:function(){return he}});var re=ge(17313),ue=ge(37613),$e=ge(83116);const et=ye=>{const{checkboxCls:me}=ye,Ie=`${me}-wrapper`;return[{[`${me}-group`]:Object.assign(Object.assign({},(0,re.Wf)(ye)),{display:"inline-flex",flexWrap:"wrap",columnGap:ye.marginXS,[`> ${ye.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,re.Wf)(ye)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ie}`]:{marginInlineStart:0},[`&${Ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[me]:Object.assign(Object.assign({},(0,re.Wf)(ye)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ye.borderRadiusSM,alignSelf:"center",[`${me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${me}-inner`]:Object.assign({},(0,re.oN)(ye))},[`${me}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ye.checkboxSize,height:ye.checkboxSize,direction:"ltr",backgroundColor:ye.colorBgContainer,border:`${ye.lineWidth}px ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusSM,borderCollapse:"separate",transition:`all ${ye.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ye.checkboxSize/14*5,height:ye.checkboxSize/14*8,border:`${ye.lineWidthBold}px solid ${ye.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ye.motionDurationFast} ${ye.motionEaseInBack}, opacity ${ye.motionDurationFast}`}},"& + span":{paddingInlineStart:ye.paddingXS,paddingInlineEnd:ye.paddingXS}})},{[`
${Ie}:not(${Ie}-disabled),
${me}:not(${me}-disabled)
`]:{[`&:hover ${me}-inner`]:{borderColor:ye.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${me}-checked:not(${me}-disabled) ${me}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${me}-checked:not(${me}-disabled):after`]:{borderColor:ye.colorPrimaryHover}}},{[`${me}-checked`]:{[`${me}-inner`]:{backgroundColor:ye.colorPrimary,borderColor:ye.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ye.motionDurationMid} ${ye.motionEaseOutBack} ${ye.motionDurationFast}`}}},[`
${Ie}-checked:not(${Ie}-disabled),
${me}-checked:not(${me}-disabled)
`]:{[`&:hover ${me}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"}}},{[me]:{"&-indeterminate":{[`${me}-inner`]:{backgroundColor:ye.colorBgContainer,borderColor:ye.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ye.fontSizeLG/2,height:ye.fontSizeLG/2,backgroundColor:ye.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${me}-disabled`]:{[`&, ${me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${me}-inner`]:{background:ye.colorBgContainerDisabled,borderColor:ye.colorBorder,"&:after":{borderColor:ye.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ye.colorTextDisabled},[`&${me}-indeterminate ${me}-inner::after`]:{background:ye.colorTextDisabled}}}]};function he(ye,me){const Ie=(0,ue.TS)(me,{checkboxCls:`.${ye}`,checkboxSize:me.controlInteractiveSize});return[et(Ie)]}ot.ZP=(0,$e.Z)("Checkbox",(ye,me)=>{let{prefixCls:Ie}=me;return[he(Ie,ye)]})},28103:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return Be}});var re=ge(92310),ue=ge.n(re),$e=ge(59301),et=ge(36355),he=ge(17313),ye=ge(83116),me=ge(37613);const Ie=Le=>{const{componentCls:ne,sizePaddingEdgeHorizontal:b,colorSplit:a,lineWidth:y,textPaddingInline:E,orientationMargin:x,verticalMarginInline:z}=Le;return{[ne]:Object.assign(Object.assign({},(0,he.Wf)(Le)),{borderBlockStart:`${y}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${y}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Le.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${Le.dividerHorizontalWithTextGutterMargin}px 0`,color:Le.colorTextHeading,fontWeight:500,fontSize:Le.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${y}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ne}-with-text-left`]:{"&::before":{width:`${x*100}%`},"&::after":{width:`${100-x*100}%`}},[`&-horizontal${ne}-with-text-right`]:{"&::before":{width:`${100-x*100}%`},"&::after":{width:`${x*100}%`}},[`${ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:E},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${y}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:y,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:Le.colorText,fontWeight:"normal",fontSize:Le.fontSize},[`&-horizontal${ne}-with-text-left${ne}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ne}-inner-text`]:{paddingInlineStart:b}},[`&-horizontal${ne}-with-text-right${ne}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ne}-inner-text`]:{paddingInlineEnd:b}}})}};var ze=(0,ye.Z)("Divider",Le=>{const ne=(0,me.TS)(Le,{dividerHorizontalWithTextGutterMargin:Le.margin,dividerHorizontalGutterMargin:Le.marginLG,sizePaddingEdgeHorizontal:0});return[Ie(ne)]},Le=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Le.marginXS})),Ce=function(Le,ne){var b={};for(var a in Le)Object.prototype.hasOwnProperty.call(Le,a)&&ne.indexOf(a)<0&&(b[a]=Le[a]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,a=Object.getOwnPropertySymbols(Le);y<a.length;y++)ne.indexOf(a[y])<0&&Object.prototype.propertyIsEnumerable.call(Le,a[y])&&(b[a[y]]=Le[a[y]]);return b},Be=Le=>{const{getPrefixCls:ne,direction:b,divider:a}=$e.useContext(et.E_),{prefixCls:y,type:E="horizontal",orientation:x="center",orientationMargin:z,className:ee,rootClassName:te,children:ae,dashed:oe,plain:ie,style:Se}=Le,se=Ce(Le,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),be=ne("divider",y),[we,Te]=ze(be),tt=x.length>0?`-${x}`:x,Je=!!ae,fe=x==="left"&&z!=null,ke=x==="right"&&z!=null,_e=ue()(be,a==null?void 0:a.className,Te,`${be}-${E}`,{[`${be}-with-text`]:Je,[`${be}-with-text${tt}`]:Je,[`${be}-dashed`]:!!oe,[`${be}-plain`]:!!ie,[`${be}-rtl`]:b==="rtl",[`${be}-no-default-orientation-margin-left`]:fe,[`${be}-no-default-orientation-margin-right`]:ke},ee,te),Ge=$e.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),je=Object.assign(Object.assign({},fe&&{marginLeft:Ge}),ke&&{marginRight:Ge});return we($e.createElement("div",Object.assign({className:_e,style:Object.assign(Object.assign({},a==null?void 0:a.style),Se)},se,{role:"separator"}),ae&&E!=="vertical"&&$e.createElement("span",{className:`${be}-inner-text`,style:je},ae)))}},91857:function(xe,ot,ge){"use strict";var re=ge(59301),ue=ge(38819),$e=ge(92310),et=ge.n($e),he=ge(31561),ye=ge(70425),me=ge(18929),Ie=ge(2738),ze=ge(79676),Ce=ge(53487),Ne=ge(92343),Be=ge(36355),Le=ge(20834),ne=ge(40875),b=ge(88088),a=ge(47211);const y=null,E=te=>{const{menu:ae,arrow:oe,prefixCls:ie,children:Se,trigger:se,disabled:be,dropdownRender:we,getPopupContainer:Te,overlayClassName:tt,rootClassName:Je,open:fe,onOpenChange:ke,visible:_e,onVisibleChange:Ge,mouseEnterDelay:je=.15,mouseLeaveDelay:Lt=.1,autoAdjustOverflow:Et=!0,placement:bt="",overlay:jt,transitionName:Fe}=te,{getPopupContainer:Ae,getPrefixCls:Xe,direction:ht}=re.useContext(Be.E_),Qe=re.useMemo(()=>{const ft=Xe();return Fe!==void 0?Fe:bt.includes("top")?`${ft}-slide-down`:`${ft}-slide-up`},[Xe,bt,Fe]),ct=re.useMemo(()=>bt?bt.includes("Center")?bt.slice(0,bt.indexOf("Center")):bt:ht==="rtl"?"bottomRight":"bottomLeft",[bt,ht]),de=Xe("dropdown",ie),[Ue,Dt]=(0,a.Z)(de),[,Nt]=(0,b.Z)(),At=re.Children.only(Se),De=(0,Ne.Tm)(At,{className:et()(`${de}-trigger`,{[`${de}-rtl`]:ht==="rtl"},At.props.className),disabled:be}),Ee=be?[]:se;let ve;Ee&&Ee.includes("contextMenu")&&(ve=!0);const[Re,Ve]=(0,me.Z)(!1,{value:fe!=null?fe:_e}),ut=(0,ye.useEvent)(ft=>{ke==null||ke(ft),Ge==null||Ge(ft),Ve(ft)}),vt=et()(tt,Je,Dt,{[`${de}-rtl`]:ht==="rtl"}),Ct=(0,ze.Z)({arrowPointAtCenter:typeof oe=="object"&&oe.pointAtCenter,autoAdjustOverflow:Et,offset:Nt.marginXXS,arrowWidth:oe?Nt.sizePopupArrow:0,borderRadius:Nt.borderRadius}),xt=re.useCallback(()=>{Ve(!1)},[]),zt=()=>{let ft;return ae!=null&&ae.items?ft=re.createElement(Le.default,Object.assign({},ae)):typeof jt=="function"?ft=jt():ft=jt,we&&(ft=we(ft)),ft=re.Children.only(typeof ft=="string"?re.createElement("span",null,ft):ft),re.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:re.createElement("span",{className:`${de}-menu-submenu-arrow`},re.createElement(ue.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:xt,validator:Ot=>{let{mode:Ut}=Ot}},ft)};return Ue(re.createElement(he.Z,Object.assign({alignPoint:ve},(0,Ie.Z)(te,["rootClassName"]),{mouseEnterDelay:je,mouseLeaveDelay:Lt,visible:Re,builtinPlacements:Ct,arrow:!!oe,overlayClassName:vt,prefixCls:de,getPopupContainer:Te||Ae,transitionName:Qe,trigger:Ee,overlay:zt,placement:ct,onVisibleChange:ut}),De))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ce.Z)(E,"dropdown",te=>te,x),ee=te=>re.createElement(z,Object.assign({},te),re.createElement("span",null));E._InternalPanelDoNotUseOrYouWillBeFired=ee,ot.Z=E},47211:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return Ne}});var re=ge(17313),ue=ge(13826),$e=ge(92899),et=ge(29878),he=ge(19447),ye=ge(83116),me=ge(37613),ze=Be=>{const{componentCls:Le,menuCls:ne,colorError:b,colorTextLightSolid:a}=Be,y=`${ne}-item`;return{[`${Le}, ${Le}-menu-submenu`]:{[`${ne} ${y}`]:{[`&${y}-danger:not(${y}-disabled)`]:{color:b,"&:hover":{color:a,backgroundColor:b}}}}}};const Ce=Be=>{const{componentCls:Le,menuCls:ne,zIndexPopup:b,dropdownArrowDistance:a,sizePopupArrow:y,antCls:E,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:ae,colorTextDisabled:oe,fontSizeIcon:ie,controlPaddingHorizontal:Se,colorBgElevated:se}=Be;return[{[Le]:Object.assign(Object.assign({},(0,re.Wf)(Be)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:b,display:"block","&::before":{position:"absolute",insetBlock:-a+y/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${E}-btn`]:{[`& > ${x}-down, & > ${E}-btn-icon > ${x}-down`]:{fontSize:ie}},[`${Le}-wrap`]:{position:"relative",[`${E}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Le}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${E}-slide-down-enter${E}-slide-down-enter-active${Le}-placement-bottomLeft,
&${E}-slide-down-appear${E}-slide-down-appear-active${Le}-placement-bottomLeft,
&${E}-slide-down-enter${E}-slide-down-enter-active${Le}-placement-bottom,
&${E}-slide-down-appear${E}-slide-down-appear-active${Le}-placement-bottom,
&${E}-slide-down-enter${E}-slide-down-enter-active${Le}-placement-bottomRight,
&${E}-slide-down-appear${E}-slide-down-appear-active${Le}-placement-bottomRight`]:{animationName:ue.fJ},[`&${E}-slide-up-enter${E}-slide-up-enter-active${Le}-placement-topLeft,
&${E}-slide-up-appear${E}-slide-up-appear-active${Le}-placement-topLeft,
&${E}-slide-up-enter${E}-slide-up-enter-active${Le}-placement-top,
&${E}-slide-up-appear${E}-slide-up-appear-active${Le}-placement-top,
&${E}-slide-up-enter${E}-slide-up-enter-active${Le}-placement-topRight,
&${E}-slide-up-appear${E}-slide-up-appear-active${Le}-placement-topRight`]:{animationName:ue.Qt},[`&${E}-slide-down-leave${E}-slide-down-leave-active${Le}-placement-bottomLeft,
&${E}-slide-down-leave${E}-slide-down-leave-active${Le}-placement-bottom,
&${E}-slide-down-leave${E}-slide-down-leave-active${Le}-placement-bottomRight`]:{animationName:ue.Uw},[`&${E}-slide-up-leave${E}-slide-up-leave-active${Le}-placement-topLeft,
&${E}-slide-up-leave${E}-slide-up-leave-active${Le}-placement-top,
&${E}-slide-up-leave${E}-slide-up-leave-active${Le}-placement-topRight`]:{animationName:ue.ly}})},(0,he.ZP)(Be,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Le} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:b,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Le}, ${Le}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ae,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:Be.borderRadiusLG,outline:"none",boxShadow:Be.boxShadowSecondary},(0,re.Qy)(Be)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${Se}px`,color:Be.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Be.marginXS,fontSize:Be.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Se}px`,color:Be.colorText,fontWeight:"normal",fontSize:te,lineHeight:Be.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Be.borderRadiusSM,"&:hover, &-active":{backgroundColor:Be.controlItemBgHover}},(0,re.Qy)(Be)),{"&-selected":{color:Be.colorPrimary,backgroundColor:Be.controlItemBgActive,"&:hover, &-active":{backgroundColor:Be.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Be.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Be.colorSplit},[`${Le}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Be.paddingXS,[`${Le}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Be.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Be.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:Se+Be.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Le}-menu-submenu-title`]:{[`&, ${Le}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:se,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Le}-menu-submenu-title`]:{color:Be.colorPrimary}})}},[(0,ue.oN)(Be,"slide-up"),(0,ue.oN)(Be,"slide-down"),(0,$e.Fm)(Be,"move-up"),(0,$e.Fm)(Be,"move-down"),(0,et._y)(Be,"zoom-big")]]};var Ne=(0,ye.Z)("Dropdown",(Be,Le)=>{let{rootPrefixCls:ne}=Le;const{marginXXS:b,sizePopupArrow:a,controlHeight:y,fontSize:E,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Be,ae=(y-E*x)/2,{dropdownArrowOffset:oe}=(0,he.fS)({contentRadius:te}),ie=(0,me.TS)(Be,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:a/2+b,dropdownArrowOffset:oe,dropdownPaddingVertical:ae,dropdownEdgeChildPadding:z});return[Ce(ie),ze(ie)]},Be=>({zIndexPopup:Be.zIndexPopupBase+50}))},45818:function(xe,ot,ge){"use strict";ge.d(ot,{D:function(){return z},Z:function(){return ae}});var re=ge(54476),ue=ge(59301),$e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},et=$e,he=ge(7657),ye=function(ie,Se){return ue.createElement(he.Z,(0,re.Z)({},ie,{ref:Se,icon:et}))},me=ue.forwardRef(ye),Ie=me,ze=ge(33853),Ce=ge(38819),Ne=ge(92310),Be=ge.n(Ne),Le=ge(2738),b=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),a=ge(36355),y=ge(84966),E=function(oe,ie){var Se={};for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&ie.indexOf(se)<0&&(Se[se]=oe[se]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,se=Object.getOwnPropertySymbols(oe);be<se.length;be++)ie.indexOf(se[be])<0&&Object.prototype.propertyIsEnumerable.call(oe,se[be])&&(Se[se[be]]=oe[se[be]]);return Se};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=ue.createContext({}),ee=(()=>{let oe=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ie}${oe}`}})();var ae=ue.forwardRef((oe,ie)=>{const{prefixCls:Se,className:se,trigger:be,children:we,defaultCollapsed:Te=!1,theme:tt="dark",style:Je={},collapsible:fe=!1,reverseArrow:ke=!1,width:_e=200,collapsedWidth:Ge=80,zeroWidthTriggerStyle:je,breakpoint:Lt,onCollapse:Et,onBreakpoint:bt}=oe,jt=E(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Fe}=(0,ue.useContext)(y.Gs),[Ae,Xe]=(0,ue.useState)("collapsed"in oe?oe.collapsed:Te),[ht,Qe]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{"collapsed"in oe&&Xe(oe.collapsed)},[oe.collapsed]);const ct=(De,Ee)=>{"collapsed"in oe||Xe(De),Et==null||Et(De,Ee)},de=(0,ue.useRef)();de.current=De=>{Qe(De.matches),bt==null||bt(De.matches),Ae!==De.matches&&ct(De.matches,"responsive")},(0,ue.useEffect)(()=>{function De(ve){return de.current(ve)}let Ee;if(typeof window!="undefined"){const{matchMedia:ve}=window;if(ve&&Lt&&Lt in x){Ee=ve(`(max-width: ${x[Lt]})`);try{Ee.addEventListener("change",De)}catch(Re){Ee.addListener(De)}De(Ee)}}return()=>{try{Ee==null||Ee.removeEventListener("change",De)}catch(ve){Ee==null||Ee.removeListener(De)}}},[Lt]),(0,ue.useEffect)(()=>{const De=ee("ant-sider-");return Fe.addSider(De),()=>Fe.removeSider(De)},[]);const Ue=()=>{ct(!Ae,"clickTrigger")},{getPrefixCls:Dt}=(0,ue.useContext)(a.E_),Nt=()=>{const De=Dt("layout-sider",Se),Ee=(0,Le.Z)(jt,["collapsed"]),ve=Ae?Ge:_e,Re=b(ve)?`${ve}px`:String(ve),Ve=parseFloat(String(Ge||0))===0?ue.createElement("span",{onClick:Ue,className:Be()(`${De}-zero-width-trigger`,`${De}-zero-width-trigger-${ke?"right":"left"}`),style:je},be||ue.createElement(Ie,null)):null,Ct={expanded:ke?ue.createElement(Ce.Z,null):ue.createElement(ze.Z,null),collapsed:ke?ue.createElement(ze.Z,null):ue.createElement(Ce.Z,null)}[Ae?"collapsed":"expanded"],xt=be!==null?Ve||ue.createElement("div",{className:`${De}-trigger`,onClick:Ue,style:{width:Re}},be||Ct):null,zt=Object.assign(Object.assign({},Je),{flex:`0 0 ${Re}`,maxWidth:Re,minWidth:Re,width:Re}),ft=Be()(De,`${De}-${tt}`,{[`${De}-collapsed`]:!!Ae,[`${De}-has-trigger`]:fe&&be!==null&&!Ve,[`${De}-below`]:!!ht,[`${De}-zero-width`]:parseFloat(Re)===0},se);return ue.createElement("aside",Object.assign({className:ft},Ee,{style:zt,ref:ie}),ue.createElement("div",{className:`${De}-children`},we),fe||ht&&Ve?xt:null)},At=ue.useMemo(()=>({siderCollapsed:Ae}),[Ae]);return ue.createElement(z.Provider,{value:At},Nt())})},44e3:function(xe,ot,ge){"use strict";var re=ge(84966),ue=ge(45818);const $e=re.ZP;$e.Header=re.h4,$e.Footer=re.$_,$e.Content=re.VY,$e.Sider=ue.Z,ot.default=$e},84966:function(xe,ot,ge){"use strict";ge.d(ot,{VY:function(){return z},$_:function(){return x},h4:function(){return E},Gs:function(){return Le},ZP:function(){return ee}});var re=ge(94480),ue=ge(92310),$e=ge.n(ue),et=ge(2738),he=ge(59301),ye=ge(36355),me=ge(83116),ze=te=>{const{componentCls:ae,bodyBg:oe,lightSiderBg:ie,lightTriggerBg:Se,lightTriggerColor:se}=te;return{[`${ae}-sider-light`]:{background:ie,[`${ae}-sider-trigger`]:{color:se,background:Se},[`${ae}-sider-zero-width-trigger`]:{color:se,background:Se,border:`1px solid ${oe}`,borderInlineStart:0}}}};const Ce=te=>{const{antCls:ae,componentCls:oe,colorText:ie,triggerColor:Se,footerBg:se,triggerBg:be,headerHeight:we,headerPadding:Te,headerColor:tt,footerPadding:Je,triggerHeight:fe,zeroTriggerHeight:ke,zeroTriggerWidth:_e,motionDurationMid:Ge,motionDurationSlow:je,fontSize:Lt,borderRadius:Et,bodyBg:bt,headerBg:jt,siderBg:Fe}=te;return{[oe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:bt,"&, *":{boxSizing:"border-box"},[`&${oe}-has-sider`]:{flexDirection:"row",[`> ${oe}, > ${oe}-content`]:{width:0}},[`${oe}-header, &${oe}-footer`]:{flex:"0 0 auto"},[`${oe}-sider`]:{position:"relative",minWidth:0,background:Fe,transition:`all ${Ge}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ae}-menu${ae}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:fe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:fe,color:Se,lineHeight:`${fe}px`,textAlign:"center",background:be,cursor:"pointer",transition:`all ${Ge}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:we,insetInlineEnd:-_e,zIndex:1,width:_e,height:ke,color:Se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Fe,borderStartStartRadius:0,borderStartEndRadius:Et,borderEndEndRadius:Et,borderEndStartRadius:0,cursor:"pointer",transition:`background ${je} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${je}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-_e,borderStartStartRadius:Et,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Et}}}}},ze(te)),{"&-rtl":{direction:"rtl"}}),[`${oe}-header`]:{height:we,padding:Te,color:tt,lineHeight:`${we}px`,background:jt,[`${ae}-menu`]:{lineHeight:"inherit"}},[`${oe}-footer`]:{padding:Je,color:ie,fontSize:Lt,background:se},[`${oe}-content`]:{flex:"auto",minHeight:0}}};var Ne=(0,me.Z)("Layout",te=>[Ce(te)],te=>{const{colorBgLayout:ae,controlHeight:oe,controlHeightLG:ie,colorText:Se,controlHeightSM:se,marginXXS:be,colorTextLightSolid:we,colorBgContainer:Te}=te,tt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:ae,colorBgTrigger:"#002140",bodyBg:ae,headerBg:"#001529",headerHeight:oe*2,headerPadding:`0 ${tt}px`,headerColor:Se,footerPadding:`${se}px ${tt}px`,footerBg:ae,siderBg:"#001529",triggerHeight:ie+be*2,triggerBg:"#002140",triggerColor:we,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:Te,lightTriggerBg:Te,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Be=function(te,ae){var oe={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&ae.indexOf(ie)<0&&(oe[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,ie=Object.getOwnPropertySymbols(te);Se<ie.length;Se++)ae.indexOf(ie[Se])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[Se])&&(oe[ie[Se]]=te[ie[Se]]);return oe};const Le=he.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:ae,tagName:oe,displayName:ie}=te;return Se=>he.forwardRef((be,we)=>he.createElement(Se,Object.assign({ref:we,suffixCls:ae,tagName:oe},be)))}const b=he.forwardRef((te,ae)=>{const{prefixCls:oe,suffixCls:ie,className:Se,tagName:se}=te,be=Be(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:we}=he.useContext(ye.E_),Te=we("layout",oe),[tt,Je]=Ne(Te),fe=ie?`${Te}-${ie}`:Te;return tt(he.createElement(se,Object.assign({className:$e()(oe||fe,Se,Je),ref:ae},be)))}),a=he.forwardRef((te,ae)=>{const{direction:oe}=he.useContext(ye.E_),[ie,Se]=he.useState([]),{prefixCls:se,className:be,rootClassName:we,children:Te,hasSider:tt,tagName:Je,style:fe}=te,ke=Be(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),_e=(0,et.Z)(ke,["suffixCls"]),{getPrefixCls:Ge,layout:je}=he.useContext(ye.E_),Lt=Ge("layout",se),[Et,bt]=Ne(Lt),jt=$e()(Lt,{[`${Lt}-has-sider`]:typeof tt=="boolean"?tt:ie.length>0,[`${Lt}-rtl`]:oe==="rtl"},je==null?void 0:je.className,be,we,bt),Fe=he.useMemo(()=>({siderHook:{addSider:Ae=>{Se(Xe=>[].concat((0,re.Z)(Xe),[Ae]))},removeSider:Ae=>{Se(Xe=>Xe.filter(ht=>ht!==Ae))}}}),[]);return Et(he.createElement(Le.Provider,{value:Fe},he.createElement(Je,Object.assign({ref:ae,className:jt,style:Object.assign(Object.assign({},je==null?void 0:je.style),fe)},_e),Te)))}),y=ne({tagName:"div",displayName:"Layout"})(a),E=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(b),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(b),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(b);var ee=y},40875:function(xe,ot,ge){"use strict";ge.d(ot,{J:function(){return ye}});var re=ge(59301),ue=ge(33234),$e=ge(70425),et=function(me,Ie){var ze={};for(var Ce in me)Object.prototype.hasOwnProperty.call(me,Ce)&&Ie.indexOf(Ce)<0&&(ze[Ce]=me[Ce]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ce=Object.getOwnPropertySymbols(me);Ne<Ce.length;Ne++)Ie.indexOf(Ce[Ne])<0&&Object.prototype.propertyIsEnumerable.call(me,Ce[Ne])&&(ze[Ce[Ne]]=me[Ce[Ne]]);return ze};const he=re.createContext(null),ye=re.forwardRef((me,Ie)=>{const{children:ze}=me,Ce=et(me,["children"]),Ne=re.useContext(he),Be=re.useMemo(()=>Object.assign(Object.assign({},Ne),Ce),[Ne,Ce.prefixCls,Ce.mode,Ce.selectable]);return re.createElement(he.Provider,{value:Be},re.createElement(ue.BR,null,(0,$e.supportNodeRef)(ze)?re.cloneElement(ze,{ref:Ie}):ze))});ot.Z=he},20834:function(xe,ot,ge){"use strict";ge.d(ot,{default:function(){return At}});var re=ge(15285),ue=ge(59301),$e=ge(45818),et=ge(92310),he=ge.n(et),ye=ge(36355),me=function(De,Ee){var ve={};for(var Re in De)Object.prototype.hasOwnProperty.call(De,Re)&&Ee.indexOf(Re)<0&&(ve[Re]=De[Re]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Re=Object.getOwnPropertySymbols(De);Ve<Re.length;Ve++)Ee.indexOf(Re[Ve])<0&&Object.prototype.propertyIsEnumerable.call(De,Re[Ve])&&(ve[Re[Ve]]=De[Re[Ve]]);return ve},ze=De=>{const{prefixCls:Ee,className:ve,dashed:Re}=De,Ve=me(De,["prefixCls","className","dashed"]),{getPrefixCls:ut}=ue.useContext(ye.E_),vt=ut("menu",Ee),Ct=he()({[`${vt}-item-divider-dashed`]:!!Re},ve);return ue.createElement(re.iz,Object.assign({className:Ct},Ve))},Ce=ge(11592),Ne=ge(2738),Be=ge(6848),Le=ge(92343),b=(0,ue.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),y=De=>{var Ee;const{className:ve,children:Re,icon:Ve,title:ut,danger:vt}=De,{prefixCls:Ct,firstLevel:xt,direction:zt,disableMenuItemTitleTooltip:ft,inlineCollapsed:Ot}=ue.useContext(b),Ut=fn=>{const Ln=ue.createElement("span",{className:`${Ct}-title-content`},Re);return(!Ve||(0,Le.l$)(Re)&&Re.type==="span")&&Re&&fn&&xt&&typeof Re=="string"?ue.createElement("div",{className:`${Ct}-inline-collapsed-noicon`},Re.charAt(0)):Ln},{siderCollapsed:sn}=ue.useContext($e.D);let dn=ut;typeof ut=="undefined"?dn=xt?Re:"":ut===!1&&(dn="");const Kt={title:dn};!sn&&!Ot&&(Kt.title=null,Kt.open=!1);const tn=(0,Ce.Z)(Re).length;let nn=ue.createElement(re.ck,Object.assign({},(0,Ne.Z)(De,["title","icon","danger"]),{className:he()({[`${Ct}-item-danger`]:vt,[`${Ct}-item-only-child`]:(Ve?tn+1:tn)===1},ve),title:typeof ut=="string"?ut:void 0}),(0,Le.Tm)(Ve,{className:he()((0,Le.l$)(Ve)?(Ee=Ve.props)===null||Ee===void 0?void 0:Ee.className:"",`${Ct}-item-icon`)}),Ut(Ot));return ft||(nn=ue.createElement(Be.Z,Object.assign({},Kt,{placement:zt==="rtl"?"left":"right",overlayClassName:`${Ct}-inline-collapsed-tooltip`}),nn)),nn},x=De=>{var Ee;const{popupClassName:ve,icon:Re,title:Ve,theme:ut}=De,vt=ue.useContext(b),{prefixCls:Ct,inlineCollapsed:xt,theme:zt}=vt,ft=(0,re.Xl)();let Ot;if(!Re)Ot=xt&&!ft.length&&Ve&&typeof Ve=="string"?ue.createElement("div",{className:`${Ct}-inline-collapsed-noicon`},Ve.charAt(0)):ue.createElement("span",{className:`${Ct}-title-content`},Ve);else{const sn=(0,Le.l$)(Ve)&&Ve.type==="span";Ot=ue.createElement(ue.Fragment,null,(0,Le.Tm)(Re,{className:he()((0,Le.l$)(Re)?(Ee=Re.props)===null||Ee===void 0?void 0:Ee.className:"",`${Ct}-item-icon`)}),sn?Ve:ue.createElement("span",{className:`${Ct}-title-content`},Ve))}const Ut=ue.useMemo(()=>Object.assign(Object.assign({},vt),{firstLevel:!1}),[vt]);return ue.createElement(b.Provider,{value:Ut},ue.createElement(re.Wd,Object.assign({},(0,Ne.Z)(De,["icon"]),{title:Ot,popupClassName:he()(Ct,ve,`${Ct}-${ut||zt}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),ae=ge(40875),oe=function(De,Ee){var ve={};for(var Re in De)Object.prototype.hasOwnProperty.call(De,Re)&&Ee.indexOf(Re)<0&&(ve[Re]=De[Re]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Re=Object.getOwnPropertySymbols(De);Ve<Re.length;Ve++)Ee.indexOf(Re[Ve])<0&&Object.prototype.propertyIsEnumerable.call(De,Re[Ve])&&(ve[Re[Ve]]=De[Re[Ve]]);return ve};function ie(De){return(De||[]).map((Ee,ve)=>{if(Ee&&typeof Ee=="object"){const Re=Ee,{label:Ve,children:ut,key:vt,type:Ct}=Re,xt=oe(Re,["label","children","key","type"]),zt=vt!=null?vt:`tmp-${ve}`;return ut||Ct==="group"?Ct==="group"?ue.createElement(re.BW,Object.assign({key:zt},xt,{title:Ve}),ie(ut)):ue.createElement(x,Object.assign({key:zt},xt,{title:Ve}),ie(ut)):Ct==="divider"?ue.createElement(ze,Object.assign({key:zt},xt)):ue.createElement(y,Object.assign({key:zt},xt),Ve)}return null}).filter(Ee=>Ee)}function Se(De){return ue.useMemo(()=>De&&ie(De),[De])}var se=ge(64993),be=ge(17313),we=ge(8378),Te=ge(13826),tt=ge(29878),Je=ge(83116),fe=ge(37613),_e=De=>{const{componentCls:Ee,motionDurationSlow:ve,horizontalLineHeight:Re,colorSplit:Ve,lineWidth:ut,lineType:vt,itemPaddingInline:Ct}=De;return{[`${Ee}-horizontal`]:{lineHeight:Re,border:0,borderBottom:`${ut}px ${vt} ${Ve}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ee}-item, ${Ee}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ct},[`> ${Ee}-item:hover,
> ${Ee}-item-active,
> ${Ee}-submenu ${Ee}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ee}-item, ${Ee}-submenu-title`]:{transition:[`border-color ${ve}`,`background ${ve}`].join(",")},[`${Ee}-submenu-arrow`]:{display:"none"}}}},je=De=>{let{componentCls:Ee,menuArrowOffset:ve}=De;return{[`${Ee}-rtl`]:{direction:"rtl"},[`${Ee}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ee}-rtl${Ee}-vertical,
${Ee}-submenu-rtl ${Ee}-vertical`]:{[`${Ee}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ve})`},"&::after":{transform:`rotate(45deg) translateY(${ve})`}}}}};const Lt=De=>Object.assign({},(0,be.oN)(De));var bt=(De,Ee)=>{const{componentCls:ve,itemColor:Re,itemSelectedColor:Ve,groupTitleColor:ut,itemBg:vt,subMenuItemBg:Ct,itemSelectedBg:xt,activeBarHeight:zt,activeBarWidth:ft,activeBarBorderWidth:Ot,motionDurationSlow:Ut,motionEaseInOut:sn,motionEaseOut:dn,itemPaddingInline:Kt,motionDurationMid:tn,itemHoverColor:nn,lineType:fn,colorSplit:Ln,itemDisabledColor:wn,dangerItemColor:Dn,dangerItemHoverColor:yn,dangerItemSelectedColor:zn,dangerItemActiveBg:on,dangerItemSelectedBg:xn,itemHoverBg:kn,itemActiveBg:Zn,menuSubMenuBg:ea,horizontalItemSelectedColor:Jn,horizontalItemSelectedBg:Qn,horizontalItemBorderRadius:oa,horizontalItemHoverBg:Vn,popupBg:ta}=De;return{[`${ve}-${Ee}, ${ve}-${Ee} > ${ve}`]:{color:Re,background:vt,[`&${ve}-root:focus-visible`]:Object.assign({},Lt(De)),[`${ve}-item-group-title`]:{color:ut},[`${ve}-submenu-selected`]:{[`> ${ve}-submenu-title`]:{color:Ve}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{color:`${wn} !important`},[`${ve}-item:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{[`&:hover, > ${ve}-submenu-title:hover`]:{color:nn}},[`&:not(${ve}-horizontal)`]:{[`${ve}-item:not(${ve}-item-selected)`]:{"&:hover":{backgroundColor:kn},"&:active":{backgroundColor:Zn}},[`${ve}-submenu-title`]:{"&:hover":{backgroundColor:kn},"&:active":{backgroundColor:Zn}}},[`${ve}-item-danger`]:{color:Dn,[`&${ve}-item:hover`]:{[`&:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{color:yn}},[`&${ve}-item:active`]:{background:on}},[`${ve}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ve}-item-selected`]:{color:Ve,[`&${ve}-item-danger`]:{color:zn},"a, a:hover":{color:"inherit"}},[`& ${ve}-item-selected`]:{backgroundColor:xt,[`&${ve}-item-danger`]:{backgroundColor:xn}},[`${ve}-item, ${ve}-submenu-title`]:{[`&:not(${ve}-item-disabled):focus-visible`]:Object.assign({},Lt(De))},[`&${ve}-submenu > ${ve}`]:{backgroundColor:ea},[`&${ve}-popup > ${ve}`]:{backgroundColor:ta},[`&${ve}-horizontal`]:Object.assign(Object.assign({},Ee==="dark"?{borderBottom:0}:{}),{[`> ${ve}-item, > ${ve}-submenu`]:{top:Ot,marginTop:-Ot,marginBottom:0,borderRadius:oa,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${zt}px solid transparent`,transition:`border-color ${Ut} ${sn}`,content:'""'},"&:hover, &-active, &-open":{background:Vn,"&::after":{borderBottomWidth:zt,borderBottomColor:Jn}},"&-selected":{color:Jn,backgroundColor:Qn,"&:hover":{backgroundColor:Qn},"&::after":{borderBottomWidth:zt,borderBottomColor:Jn}}}}),[`&${ve}-root`]:{[`&${ve}-inline, &${ve}-vertical`]:{borderInlineEnd:`${Ot}px ${fn} ${Ln}`}},[`&${ve}-inline`]:{[`${ve}-sub${ve}-inline`]:{background:Ct},[`${ve}-item, ${ve}-submenu-title`]:Ot&&ft?{width:`calc(100% + ${Ot}px)`}:{},[`${ve}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ft}px solid ${Ve}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${tn} ${dn}`,`opacity ${tn} ${dn}`].join(","),content:'""'},[`&${ve}-item-danger`]:{"&::after":{borderInlineEndColor:zn}}},[`${ve}-selected, ${ve}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${tn} ${sn}`,`opacity ${tn} ${sn}`].join(",")}}}}}};const jt=De=>{const{componentCls:Ee,itemHeight:ve,itemMarginInline:Re,padding:Ve,menuArrowSize:ut,marginXS:vt,itemMarginBlock:Ct}=De,xt=Ve+ut+vt;return{[`${Ee}-item`]:{position:"relative",overflow:"hidden"},[`${Ee}-item, ${Ee}-submenu-title`]:{height:ve,lineHeight:`${ve}px`,paddingInline:Ve,overflow:"hidden",textOverflow:"ellipsis",marginInline:Re,marginBlock:Ct,width:`calc(100% - ${Re*2}px)`},[`> ${Ee}-item,
> ${Ee}-submenu > ${Ee}-submenu-title`]:{height:ve,lineHeight:`${ve}px`},[`${Ee}-item-group-list ${Ee}-submenu-title,
${Ee}-submenu-title`]:{paddingInlineEnd:xt}}};var Ae=De=>{const{componentCls:Ee,iconCls:ve,itemHeight:Re,colorTextLightSolid:Ve,dropdownWidth:ut,controlHeightLG:vt,motionDurationMid:Ct,motionEaseOut:xt,paddingXL:zt,itemMarginInline:ft,fontSizeLG:Ot,motionDurationSlow:Ut,paddingXS:sn,boxShadowSecondary:dn,collapsedWidth:Kt,collapsedIconSize:tn}=De,nn={height:Re,lineHeight:`${Re}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ee]:{"&-inline, &-vertical":Object.assign({[`&${Ee}-root`]:{boxShadow:"none"}},jt(De))},[`${Ee}-submenu-popup`]:{[`${Ee}-vertical`]:Object.assign(Object.assign({},jt(De)),{boxShadow:dn})}},{[`${Ee}-submenu-popup ${Ee}-vertical${Ee}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${vt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ee}-inline`]:{width:"100%",[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ut}`,`background ${Ut}`,`padding ${Ct} ${xt}`].join(","),[`> ${Ee}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ee}-sub${Ee}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ee}-submenu > ${Ee}-submenu-title`]:nn,[`& ${Ee}-item-group-title`]:{paddingInlineStart:zt}},[`${Ee}-item`]:nn}},{[`${Ee}-inline-collapsed`]:{width:Kt,[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu ${Ee}-submenu-title`]:{[`> ${Ee}-inline-collapsed-noicon`]:{fontSize:Ot,textAlign:"center"}}},[`> ${Ee}-item,
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-item,
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-submenu > ${Ee}-submenu-title,
> ${Ee}-submenu > ${Ee}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ot/2}px - ${ft}px)`,textOverflow:"clip",[`
${Ee}-submenu-arrow,
${Ee}-submenu-expand-icon
`]:{opacity:0},[`${Ee}-item-icon, ${ve}`]:{margin:0,fontSize:tn,lineHeight:`${Re}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ee}-item-icon, ${ve}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ee}-item-icon, ${ve}`]:{display:"none"},"a, a:hover":{color:Ve}},[`${Ee}-item-group-title`]:Object.assign(Object.assign({},be.vS),{paddingInline:sn})}}]};const Xe=De=>{const{componentCls:Ee,motionDurationSlow:ve,motionDurationMid:Re,motionEaseInOut:Ve,motionEaseOut:ut,iconCls:vt,iconSize:Ct,iconMarginInlineEnd:xt}=De;return{[`${Ee}-item, ${Ee}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ve}`,`background ${ve}`,`padding ${ve} ${Ve}`].join(","),[`${Ee}-item-icon, ${vt}`]:{minWidth:Ct,fontSize:Ct,transition:[`font-size ${Re} ${ut}`,`margin ${ve} ${Ve}`,`color ${ve}`].join(","),"+ span":{marginInlineStart:xt,opacity:1,transition:[`opacity ${ve} ${Ve}`,`margin ${ve}`,`color ${ve}`].join(",")}},[`${Ee}-item-icon`]:Object.assign({},(0,be.Ro)()),[`&${Ee}-item-only-child`]:{[`> ${vt}, > ${Ee}-item-icon`]:{marginInlineEnd:0}}},[`${Ee}-item-disabled, ${Ee}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ee}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ht=De=>{const{componentCls:Ee,motionDurationSlow:ve,motionEaseInOut:Re,borderRadius:Ve,menuArrowSize:ut,menuArrowOffset:vt}=De;return{[`${Ee}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:De.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ve} ${Re}, opacity ${ve}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ut*.6,height:ut*.15,backgroundColor:"currentcolor",borderRadius:Ve,transition:[`background ${ve} ${Re}`,`transform ${ve} ${Re}`,`top ${ve} ${Re}`,`color ${ve} ${Re}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${vt})`},"&::after":{transform:`rotate(-45deg) translateY(${vt})`}}}}},Qe=De=>{const{antCls:Ee,componentCls:ve,fontSize:Re,motionDurationSlow:Ve,motionDurationMid:ut,motionEaseInOut:vt,paddingXS:Ct,padding:xt,colorSplit:zt,lineWidth:ft,zIndexPopup:Ot,borderRadiusLG:Ut,subMenuItemBorderRadius:sn,menuArrowSize:dn,menuArrowOffset:Kt,lineType:tn,menuPanelMaskInset:nn,groupTitleLineHeight:fn,groupTitleFontSize:Ln}=De;return[{"":{[`${ve}`]:Object.assign(Object.assign({},(0,be.dF)()),{"&-hidden":{display:"none"}})},[`${ve}-submenu-hidden`]:{display:"none"}},{[ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(De)),(0,be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Re,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ve} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ve}-item`]:{flex:"none"}},[`${ve}-item, ${ve}-submenu, ${ve}-submenu-title`]:{borderRadius:De.itemBorderRadius},[`${ve}-item-group-title`]:{padding:`${Ct}px ${xt}px`,fontSize:Ln,lineHeight:fn,transition:`all ${Ve}`},[`&-horizontal ${ve}-submenu`]:{transition:[`border-color ${Ve} ${vt}`,`background ${Ve} ${vt}`].join(",")},[`${ve}-submenu, ${ve}-submenu-inline`]:{transition:[`border-color ${Ve} ${vt}`,`background ${Ve} ${vt}`,`padding ${ut} ${vt}`].join(",")},[`${ve}-submenu ${ve}-sub`]:{cursor:"initial",transition:[`background ${Ve} ${vt}`,`padding ${Ve} ${vt}`].join(",")},[`${ve}-title-content`]:{transition:`color ${Ve}`},[`${ve}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ve}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:zt,borderStyle:tn,borderWidth:0,borderTopWidth:ft,marginBlock:ft,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xe(De)),{[`${ve}-item-group`]:{[`${ve}-item-group-list`]:{margin:0,padding:0,[`${ve}-item, ${ve}-submenu-title`]:{paddingInline:`${Re*2}px ${xt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ot,borderRadius:Ut,boxShadow:"none",transformOrigin:"0 0",[`&${ve}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${nn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:nn},"\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:De.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:De.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:De.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:De.paddingXS},[`> ${ve}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ut},Xe(De)),ht(De)),{[`${ve}-item, ${ve}-submenu > ${ve}-submenu-title`]:{borderRadius:sn},[`${ve}-submenu-title::after`]:{transition:`transform ${Ve} ${vt}`}})}}),ht(De)),{[`&-inline-collapsed ${ve}-submenu-arrow,
&-inline ${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Kt})`},"&::after":{transform:`rotate(45deg) translateX(-${Kt})`}},[`${ve}-submenu-open${ve}-submenu-inline > ${ve}-submenu-title > ${ve}-submenu-arrow`]:{transform:`translateY(-${dn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Kt})`},"&::before":{transform:`rotate(45deg) translateX(${Kt})`}}})},{[`${Ee}-layout-header`]:{[ve]:{lineHeight:"inherit"}}}]};var ct=(De,Ee)=>(0,Je.Z)("Menu",Re=>{if(Ee===!1)return[];const{colorBgElevated:Ve,colorPrimary:ut,colorTextLightSolid:vt,controlHeightLG:Ct,fontSize:xt,darkItemColor:zt,darkDangerItemColor:ft,darkItemBg:Ot,darkSubMenuItemBg:Ut,darkItemSelectedColor:sn,darkItemSelectedBg:dn,darkDangerItemSelectedBg:Kt,darkItemHoverBg:tn,darkGroupTitleColor:nn,darkItemHoverColor:fn,darkItemDisabledColor:Ln,darkDangerItemHoverColor:wn,darkDangerItemSelectedColor:Dn,darkDangerItemActiveBg:yn}=Re,zn=xt/7*5,on=(0,fe.TS)(Re,{menuArrowSize:zn,menuHorizontalHeight:Ct*1.15,menuArrowOffset:`${zn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ve}),xn=(0,fe.TS)(on,{itemColor:zt,itemHoverColor:fn,groupTitleColor:nn,itemSelectedColor:sn,itemBg:Ot,popupBg:Ot,subMenuItemBg:Ut,itemActiveBg:"transparent",itemSelectedBg:dn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:tn,itemDisabledColor:Ln,dangerItemColor:ft,dangerItemHoverColor:wn,dangerItemSelectedColor:Dn,dangerItemActiveBg:yn,dangerItemSelectedBg:Kt,menuSubMenuBg:Ut,horizontalItemSelectedColor:vt,horizontalItemSelectedBg:ut});return[Qe(on),_e(on),Ae(on),bt(on,"light"),bt(xn,"dark"),je(on),(0,we.Z)(on),(0,Te.oN)(on,"slide-up"),(0,Te.oN)(on,"slide-down"),(0,tt._y)(on,"zoom-big")]},Re=>{const{colorPrimary:Ve,colorError:ut,colorTextDisabled:vt,colorErrorBg:Ct,colorText:xt,colorTextDescription:zt,colorBgContainer:ft,colorFillAlter:Ot,colorFillContent:Ut,lineWidth:sn,lineWidthBold:dn,controlItemBgActive:Kt,colorBgTextHover:tn,controlHeightLG:nn,lineHeight:fn,colorBgElevated:Ln,marginXXS:wn,padding:Dn,fontSize:yn,controlHeightSM:zn,fontSizeLG:on,colorTextLightSolid:xn,colorErrorHover:kn}=Re,Zn=new se.C(xn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Re.zIndexPopupBase+50,radiusItem:Re.borderRadiusLG,itemBorderRadius:Re.borderRadiusLG,radiusSubMenuItem:Re.borderRadiusSM,subMenuItemBorderRadius:Re.borderRadiusSM,colorItemText:xt,itemColor:xt,colorItemTextHover:xt,itemHoverColor:xt,colorItemTextHoverHorizontal:Ve,horizontalItemHoverColor:Ve,colorGroupTitle:zt,groupTitleColor:zt,colorItemTextSelected:Ve,itemSelectedColor:Ve,colorItemTextSelectedHorizontal:Ve,horizontalItemSelectedColor:Ve,colorItemBg:ft,itemBg:ft,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:Ut,itemActiveBg:Kt,colorSubItemBg:Ot,subMenuItemBg:Ot,colorItemBgSelected:Kt,itemSelectedBg:Kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:dn,activeBarHeight:dn,colorActiveBarBorderSize:sn,activeBarBorderWidth:sn,colorItemTextDisabled:vt,itemDisabledColor:vt,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:Ct,dangerItemActiveBg:Ct,colorDangerItemBgSelected:Ct,dangerItemSelectedBg:Ct,itemMarginInline:Re.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:nn,groupTitleLineHeight:fn,collapsedWidth:nn*2,popupBg:Ln,itemMarginBlock:wn,itemPaddingInline:Dn,horizontalLineHeight:`${nn*1.15}px`,iconSize:yn,iconMarginInlineEnd:zn-yn,collapsedIconSize:on,groupTitleFontSize:yn,darkItemDisabledColor:new se.C(xn).setAlpha(.25).toRgbString(),darkItemColor:Zn,darkDangerItemColor:ut,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:xn,darkItemSelectedBg:Ve,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:Zn,darkItemHoverColor:xn,darkDangerItemHoverColor:kn,darkDangerItemSelectedColor:xn,darkDangerItemActiveBg:ut}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(De),de=function(De,Ee){var ve={};for(var Re in De)Object.prototype.hasOwnProperty.call(De,Re)&&Ee.indexOf(Re)<0&&(ve[Re]=De[Re]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Re=Object.getOwnPropertySymbols(De);Ve<Re.length;Ve++)Ee.indexOf(Re[Ve])<0&&Object.prototype.propertyIsEnumerable.call(De,Re[Ve])&&(ve[Re[Ve]]=De[Re[Ve]]);return ve},Dt=(0,ue.forwardRef)((De,Ee)=>{var ve,Re;const Ve=ue.useContext(ae.Z),ut=Ve||{},{getPrefixCls:vt,getPopupContainer:Ct,direction:xt,menu:zt}=ue.useContext(ye.E_),ft=vt(),{prefixCls:Ot,className:Ut,style:sn,theme:dn="light",expandIcon:Kt,_internalDisableMenuItemTitleTooltip:tn,inlineCollapsed:nn,siderCollapsed:fn,items:Ln,children:wn,rootClassName:Dn,mode:yn,selectable:zn,onClick:on,overflowedIndicatorPopupClassName:xn}=De,kn=de(De,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zn=(0,Ne.Z)(kn,["collapsedWidth"]),ea=Se(Ln)||wn;(ve=ut.validator)===null||ve===void 0||ve.call(ut,{mode:yn});const Jn=(0,ee.useEvent)(function(){var rt;on==null||on.apply(void 0,arguments),(rt=ut.onClick)===null||rt===void 0||rt.call(ut)}),Qn=ut.mode||yn,oa=zn!=null?zn:ut.selectable,Vn=ue.useMemo(()=>fn!==void 0?fn:nn,[nn,fn]),ta={horizontal:{motionName:`${ft}-slide-up`},inline:(0,te.Z)(ft),other:{motionName:`${ft}-zoom-big`}},Gn=vt("menu",Ot||ut.prefixCls),[ra,ua]=ct(Gn,!Ve),pe=he()(`${Gn}-${dn}`,zt==null?void 0:zt.className,Ut);let Ke;if(typeof Kt=="function")Ke=Kt;else if(Kt===null||Kt===!1)Ke=null;else if(ut.expandIcon===null||ut.expandIcon===!1)Ke=null;else{const rt=Kt!=null?Kt:ut.expandIcon;Ke=(0,Le.Tm)(rt,{className:he()(`${Gn}-submenu-expand-icon`,(0,Le.l$)(rt)?(Re=rt.props)===null||Re===void 0?void 0:Re.className:"")})}const Ye=ue.useMemo(()=>({prefixCls:Gn,inlineCollapsed:Vn||!1,direction:xt,firstLevel:!0,theme:dn,mode:Qn,disableMenuItemTitleTooltip:tn}),[Gn,Vn,xt,tn,dn]);return ra(ue.createElement(ae.Z.Provider,{value:null},ue.createElement(b.Provider,{value:Ye},ue.createElement(re.ZP,Object.assign({getPopupContainer:Ct,overflowedIndicator:ue.createElement(z.Z,null),overflowedIndicatorPopupClassName:he()(Gn,`${Gn}-${dn}`,xn),mode:Qn,selectable:oa,onClick:Jn},Zn,{inlineCollapsed:Vn,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),sn),className:pe,prefixCls:Gn,direction:xt,defaultMotions:ta,expandIcon:Ke,ref:Ee,rootClassName:he()(Dn,ua)}),ea))))});const Nt=(0,ue.forwardRef)((De,Ee)=>{const ve=(0,ue.useRef)(null),Re=ue.useContext($e.D);return(0,ue.useImperativeHandle)(Ee,()=>({menu:ve.current,focus:Ve=>{var ut;(ut=ve.current)===null||ut===void 0||ut.focus(Ve)}})),ue.createElement(Dt,Object.assign({ref:ve},De,Re))});Nt.Item=y,Nt.SubMenu=x,Nt.Divider=ze,Nt.ItemGroup=re.BW;var At=Nt},90782:function(xe,ot,ge){"use strict";ge.d(ot,{S:function(){return me}});var re=ge(48736),ue=ge(67841);function $e(Ie,ze){var Ce=new Set;return Ie.forEach(function(Ne){ze.has(Ne)||Ce.add(Ne)}),Ce}function et(Ie){var ze=Ie||{},Ce=ze.disabled,Ne=ze.disableCheckbox,Be=ze.checkable;return!!(Ce||Ne)||Be===!1}function he(Ie,ze,Ce,Ne){for(var Be=new Set(Ie),Le=new Set,ne=0;ne<=Ce;ne+=1){var b=ze.get(ne)||new Set;b.forEach(function(x){var z=x.key,ee=x.node,te=x.children,ae=te===void 0?[]:te;Be.has(z)&&!Ne(ee)&&ae.filter(function(oe){return!Ne(oe.node)}).forEach(function(oe){Be.add(oe.key)})})}for(var a=new Set,y=Ce;y>=0;y-=1){var E=ze.get(y)||new Set;E.forEach(function(x){var z=x.parent,ee=x.node;if(!(Ne(ee)||!x.parent||a.has(x.parent.key))){if(Ne(x.parent.node)){a.add(z.key);return}var te=!0,ae=!1;(z.children||[]).filter(function(oe){return!Ne(oe.node)}).forEach(function(oe){var ie=oe.key,Se=Be.has(ie);te&&!Se&&(te=!1),!ae&&(Se||Le.has(ie))&&(ae=!0)}),te&&Be.add(z.key),ae&&Le.add(z.key),a.add(z.key)}})}return{checkedKeys:Array.from(Be),halfCheckedKeys:Array.from($e(Le,Be))}}function ye(Ie,ze,Ce,Ne,Be){for(var Le=new Set(Ie),ne=new Set(ze),b=0;b<=Ne;b+=1){var a=Ce.get(b)||new Set;a.forEach(function(z){var ee=z.key,te=z.node,ae=z.children,oe=ae===void 0?[]:ae;!Le.has(ee)&&!ne.has(ee)&&!Be(te)&&oe.filter(function(ie){return!Be(ie.node)}).forEach(function(ie){Le.delete(ie.key)})})}ne=new Set;for(var y=new Set,E=Ne;E>=0;E-=1){var x=Ce.get(E)||new Set;x.forEach(function(z){var ee=z.parent,te=z.node;if(!(Be(te)||!z.parent||y.has(z.parent.key))){if(Be(z.parent.node)){y.add(ee.key);return}var ae=!0,oe=!1;(ee.children||[]).filter(function(ie){return!Be(ie.node)}).forEach(function(ie){var Se=ie.key,se=Le.has(Se);ae&&!se&&(ae=!1),!oe&&(se||ne.has(Se))&&(oe=!0)}),ae||Le.delete(ee.key),oe&&ne.add(ee.key),y.add(ee.key)}})}return{checkedKeys:Array.from(Le),halfCheckedKeys:Array.from($e(ne,Le))}}function me(Ie,ze,Ce,Ne){var Be=[],Le;Ne?Le=Ne:Le=et;var ne=new Set(Ie.filter(function(E){var x=!!(0,ue.Z)(Ce,E);return x||Be.push(E),x})),b=new Map,a=0;Object.keys(Ce).forEach(function(E){var x=Ce[E],z=x.level,ee=b.get(z);ee||(ee=new Set,b.set(z,ee)),ee.add(x),a=Math.max(a,z)}),(0,re.ZP)(!Be.length,"Tree missing follow keys: ".concat(Be.slice(0,100).map(function(E){return"'".concat(E,"'")}).join(", ")));var y;return ze===!0?y=he(ne,b,a,Le):y=ye(ne,ze.halfCheckedKeys,b,a,Le),y}},67841:function(xe,ot,ge){"use strict";ge.d(ot,{Z:function(){return re}});function re(ue,$e){return ue[$e]}},71430:function(xe,ot,ge){"use strict";ge.d(ot,{F:function(){return z},H8:function(){return x},I8:function(){return E},km:function(){return Be},oH:function(){return a},w$:function(){return Le},zn:function(){return b}});var re=ge(76190),ue=ge(94480),$e=ge(33885),et=ge(75931),he=ge(11592),ye=ge(2738),me=ge(48736),Ie=ge(67841),ze=["children"];function Ce(ee,te){return"".concat(ee,"-").concat(te)}function Ne(ee){return ee&&ee.type&&ee.type.isTreeNode}function Be(ee,te){return ee!=null?ee:te}function Le(ee){var te=ee||{},ae=te.title,oe=te._title,ie=te.key,Se=te.children,se=ae||"title";return{title:se,_title:oe||[se],key:ie||"key",children:Se||"children"}}function ne(ee,te){var ae=new Map;function oe(ie){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ie||[]).forEach(function(se){var be=se[te.key],we=se[te.children];warning(be!=null,"Tree node must have a certain key: [".concat(Se).concat(be,"]"));var Te=String(be);warning(!ae.has(Te)||be===null||be===void 0,"Same 'key' exist in the Tree: ".concat(Te)),ae.set(Te,!0),oe(we,"".concat(Se).concat(Te," > "))})}oe(ee)}function b(ee){function te(ae){var oe=(0,he.Z)(ae);return oe.map(function(ie){if(!Ne(ie))return(0,me.ZP)(!ie,"Tree/TreeNode can only accept TreeNode as children."),null;var Se=ie.key,se=ie.props,be=se.children,we=(0,et.Z)(se,ze),Te=(0,$e.Z)({key:Se},we),tt=te(be);return tt.length&&(Te.children=tt),Te}).filter(function(ie){return ie})}return te(ee)}function a(ee,te,ae){var oe=Le(ae),ie=oe._title,Se=oe.key,se=oe.children,be=new Set(te===!0?[]:te),we=[];function Te(tt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return tt.map(function(fe,ke){for(var _e=Ce(Je?Je.pos:"0",ke),Ge=Be(fe[Se],_e),je,Lt=0;Lt<ie.length;Lt+=1){var Et=ie[Lt];if(fe[Et]!==void 0){je=fe[Et];break}}var bt=(0,$e.Z)((0,$e.Z)({},(0,ye.Z)(fe,[].concat((0,ue.Z)(ie),[Se,se]))),{},{title:je,key:Ge,parent:Je,pos:_e,children:null,data:fe,isStart:[].concat((0,ue.Z)(Je?Je.isStart:[]),[ke===0]),isEnd:[].concat((0,ue.Z)(Je?Je.isEnd:[]),[ke===tt.length-1])});return we.push(bt),te===!0||be.has(Ge)?bt.children=Te(fe[se]||[],bt):bt.children=[],bt})}return Te(ee),we}function y(ee,te,ae){var oe={};(0,re.Z)(ae)==="object"?oe=ae:oe={externalGetKey:ae},oe=oe||{};var ie=oe,Se=ie.childrenPropName,se=ie.externalGetKey,be=ie.fieldNames,we=Le(be),Te=we.key,tt=we.children,Je=Se||tt,fe;se?typeof se=="string"?fe=function(Ge){return Ge[se]}:typeof se=="function"&&(fe=function(Ge){return se(Ge)}):fe=function(Ge,je){return Be(Ge[Te],je)};function ke(_e,Ge,je,Lt){var Et=_e?_e[Je]:ee,bt=_e?Ce(je.pos,Ge):"0",jt=_e?[].concat((0,ue.Z)(Lt),[_e]):[];if(_e){var Fe=fe(_e,bt),Ae={node:_e,index:Ge,pos:bt,key:Fe,parentPos:je.node?je.pos:null,level:je.level+1,nodes:jt};te(Ae)}Et&&Et.forEach(function(Xe,ht){ke(Xe,ht,{node:_e,pos:bt,level:je?je.level+1:-1},jt)})}ke(null)}function E(ee){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae=te.initWrapper,oe=te.processEntity,ie=te.onProcessFinished,Se=te.externalGetKey,se=te.childrenPropName,be=te.fieldNames,we=arguments.length>2?arguments[2]:void 0,Te=Se||we,tt={},Je={},fe={posEntities:tt,keyEntities:Je};return ae&&(fe=ae(fe)||fe),y(ee,function(ke){var _e=ke.node,Ge=ke.index,je=ke.pos,Lt=ke.key,Et=ke.parentPos,bt=ke.level,jt=ke.nodes,Fe={node:_e,nodes:jt,index:Ge,key:Lt,pos:je,level:bt},Ae=Be(Lt,je);tt[je]=Fe,Je[Ae]=Fe,Fe.parent=tt[Et],Fe.parent&&(Fe.parent.children=Fe.parent.children||[],Fe.parent.children.push(Fe)),oe&&oe(Fe,fe)},{externalGetKey:Te,childrenPropName:se,fieldNames:be}),ie&&ie(fe),fe}function x(ee,te){var ae=te.expandedKeys,oe=te.selectedKeys,ie=te.loadedKeys,Se=te.loadingKeys,se=te.checkedKeys,be=te.halfCheckedKeys,we=te.dragOverNodeKey,Te=te.dropPosition,tt=te.keyEntities,Je=(0,Ie.Z)(tt,ee),fe={eventKey:ee,expanded:ae.indexOf(ee)!==-1,selected:oe.indexOf(ee)!==-1,loaded:ie.indexOf(ee)!==-1,loading:Se.indexOf(ee)!==-1,checked:se.indexOf(ee)!==-1,halfChecked:be.indexOf(ee)!==-1,pos:String(Je?Je.pos:""),dragOver:we===ee&&Te===0,dragOverGapTop:we===ee&&Te===-1,dragOverGapBottom:we===ee&&Te===1};return fe}function z(ee){var te=ee.data,ae=ee.expanded,oe=ee.selected,ie=ee.checked,Se=ee.loaded,se=ee.loading,be=ee.halfChecked,we=ee.dragOver,Te=ee.dragOverGapTop,tt=ee.dragOverGapBottom,Je=ee.pos,fe=ee.active,ke=ee.eventKey,_e=(0,$e.Z)((0,$e.Z)({},te),{},{expanded:ae,selected:oe,checked:ie,loaded:Se,loading:se,halfChecked:be,dragOver:we,dragOverGapTop:Te,dragOverGapBottom:tt,pos:Je,active:fe,key:ke});return"props"in _e||Object.defineProperty(_e,"props",{get:function(){return(0,me.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ee}}),_e}}}]);