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.
113 lines
364 KiB
113 lines
364 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5359],{33853:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return Re}});var ae=ge(54476),fe=ge(59301),De={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"},Oe=De,ue=ge(7657),Ee=function(Me,Te){return fe.createElement(ue.Z,(0,ae.Z)({},Me,{ref:Te,icon:Oe}))},se=fe.forwardRef(Ee),Re=se},38819:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return Re}});var ae=ge(54476),fe=ge(59301),De={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"},Oe=De,ue=ge(7657),Ee=function(Me,Te){return fe.createElement(ue.Z,(0,ae.Z)({},Me,{ref:Te,icon:Oe}))},se=fe.forwardRef(Ee),Re=se},27431:function(ye,Ye){"use strict";Ye.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},87851:function(){"use strict";function ye(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(ye.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(ye.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(ye.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(ye.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof ye))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var Ye=[];function ge(ne,a){var y=Ye.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=Ye.pop();return ne===void 0?new go.Point:ne}function fe(ne){Ye.push(ne)}function De(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ie=NaN,ce=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,ce=a);else{var me=(E-ee)/re,xe=E-me*b;ie=ne,ce=me*ie+xe}else if(re===0){var Ge=(a-x)/oe,at=a-Ge*ne;ie=b,ce=Ge*ie+at}else{var Ge=(a-x)/oe,me=(E-ee)/re,at=a-Ge*ne,xe=E-me*b;ie=(xe-at)/(Ge-me),ce=Ge*ie+at}return te.x=ie,te.y=ce,te}function Oe(ne,a,y,x,b,E,z,ee,te,oe,re,ie,ce,me){var xe=1-te,Ge=te,at=ne*xe+y*Ge,pt=a*xe+x*Ge,kt=y*xe+b*Ge,St=x*xe+E*Ge,bt=b*xe+z*Ge,It=E*xe+ee*Ge,dn=at*xe+kt*Ge,qt=pt*xe+St*Ge,an=kt*xe+bt*Ge,Jt=St*xe+It*Ge,cn=dn*xe+an*Ge,Fn=qt*xe+Jt*Ge;oe.x=at,oe.y=pt,re.x=dn,re.y=qt,ie.x=cn,ie.y=Fn,ce.x=an,ce.y=Jt,me.x=bt,me.y=It}var ue=new go.Spot(.156,.156),Ee=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ye("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*se,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=ue,b.spot2=Ee,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ye("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ye("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new ye("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ye("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new ye("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Re=[];function Be(){var ne=Re.pop();return ne===void 0?[]:ne}function Me(ne){ne.length=0,Re.push(ne)}function Te(ne){for(var a=Be(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Ie(ne){var a=Ce(ne),y=Be();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Me(a),y}function Ce(ne){for(var a=Te(ne),y=Be(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(x+z-1)%b],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=De(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],Me(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Te(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=Te(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=Te(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=Te(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=Te(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=Te(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=Te(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=Ce(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=Ce(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=Ce(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=Ce(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=Ce(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=Ce(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Me(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=Ie(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=Ie(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=Ie(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=Ie(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=Ie(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=Ie(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ye("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ye("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new ye("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=ue,E.spot2=Ee,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new ye("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ye("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=se/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ye("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ye("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ye("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ye("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ye("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ye("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=se*.4;var oe=ae(),re=ae(),ie=ae(),ce=ae();Oe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,ce,ce);var me=ae(),xe=ae(),Ge=ae();Oe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ce,ce,Ge,me,xe);var at=ae(),pt=ae(),kt=ae();Oe(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,at,pt,kt,ce,ce);var St=ae(),bt=ae(),It=ae();return Oe(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ce,ce,It,St,bt),te.add(new go.PathSegment(go.PathSegment.Move,It.x*a,It.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,St.x*a,St.y*y,bt.x*a,bt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,It.x*a,It.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,kt.x*a,kt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*a,kt.y*y,at.x*a,at.y*y,pt.x*a,pt.y*y).close()),fe(oe),fe(re),fe(ie),fe(ce),fe(me),fe(xe),fe(Ge),fe(at),fe(pt),fe(kt),fe(St),fe(bt),fe(It),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ye("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=se*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),ce=new go.PathFigure((z-E)*a,ee*y,!1);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Oe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,te,te),ce.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var me=ge(oe.x,oe.y);Oe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,re,ie);var xe=ge(oe.x,oe.y);ce.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,(xe.y*.1+.05*.9)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=se*.35;var Ge=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var at=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(at),fe(te),fe(oe),fe(re),fe(ie),fe(me),fe(xe),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*se,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*se;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ye("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ye("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=De(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),fe(re),te}),go.Shape.setFigureParameter("Arrow2",0,new ye("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ye("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=De(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),fe(re),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ye("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=De(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=De(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ye("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ye("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=De(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=De(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new ye("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=De(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ye("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ye("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=De(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new ye("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=De(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ye("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=De(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ye("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=De(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ye("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=De(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new ye("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=se*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=se*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,se*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-se*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-se*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-se*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-se*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=se*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,se*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-se*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-se*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-se*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-se*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=se*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+se*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+se*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=se*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-se*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-se*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=se*b,ee=se*E,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var ie=.05,ce=se*ie;te=.05,oe=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+ce)*a,(oe-ie)*y,(te+ie)*a,(oe-ce)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,ce=se*ie,te=.825,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ce)*y,(te+ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ce)*a,(oe-ie)*y,(te-ie)*a,(oe-ce)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,ce=se*ie,te=.5,oe=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ce)*y,(te+ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ce)*a,(oe-ie)*y,(te-ie)*a,(oe-ce)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,ce=se*ie,te=.175,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-ce)*y,(te+ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-ce)*a,(oe-ie)*y,(te-ie)*a,(oe-ce)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,ce=se*ie,te=.05,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-ce)*y,(te-ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new ye("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=se*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=se*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=se*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=se*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=se*.4,z=se*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=se*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=se*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=se*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=se*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,ce=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=se*.4,ee=.4,te=.2,oe=.5;var me=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=se*.2,ee=.2,te=.5,oe=.5;var xe=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=se*.4,ee=.4,te=.8,oe=.5;var Ge=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);x.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),z=se*.8,ee=.8,te=1,oe=.5;var at=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return x.add(at),at.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),at.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),at.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),at.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=se*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();Oe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie);var ce=ge(oe.x,oe.y),me=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Oe(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=se*.3,E=.3,Oe(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Oe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var me=new go.PathFigure(.45*a,0,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(te),fe(oe),fe(re),fe(ie),fe(ce),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*se,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,ce=.5,me=0,xe=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ce+E)*a,(me+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,ce=z,me=z,xe=re*ce,Ge=re*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ce)*a,te*y,(ee-(xe+ce)/2)*a,(te+(me+Ge)/2)*y,(ee-ce)*a,(te+Ge)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-me)*y,(ee-ce)*a,(te-Ge)*y,(ee-xe)*a,(te-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ce)*a,te*y,(ee+xe)*a,(te-me)*y,(ee+ce)*a,(te-Ge)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ce)*a,(te+Ge)*y,(ee+(xe+ce)/2)*a,(te+(me+Ge)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var at=new go.PathFigure(.2*a,y,!1);x.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var pt=new go.PathFigure(.8*a,y,!1);return x.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=se*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=se*.1,re=.1,ie=.9,ce=new go.PathFigure((re-te)*a,ie*y,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),te=.1,oe=se*.1,re=.4,ie=.9;var me=new go.PathFigure((re-te)*a,ie*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=se*.05,ce=.175,me=.95,ee=new go.PathFigure((ce-re)*a,me*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me-re)*y,(ce-re)*a,(me-ie)*y,(ce-ie)*a,(me-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,me*y,(ce+ie)*a,(me-re)*y,(ce+re)*a,(me-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me+re)*y,(ce+re)*a,(me+ie)*y,(ce+ie)*a,(me+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,me*y,(ce-ie)*a,(me+re)*y,(ce-re)*a,(me+ie)*y));var re=.05,ie=se*.05,ce=.375,me=.95,te=new go.PathFigure((ce-re)*a,me*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me-re)*y,(ce-re)*a,(me-ie)*y,(ce-ie)*a,(me-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,me*y,(ce+ie)*a,(me-re)*y,(ce+re)*a,(me-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me+re)*y,(ce+re)*a,(me+ie)*y,(ce+ie)*a,(me+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,me*y,(ce-ie)*a,(me+re)*y,(ce-re)*a,(me+ie)*y));var re=.05,ie=se*.05,ce=.625,me=.95,oe=new go.PathFigure((ce-re)*a,me*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me-re)*y,(ce-re)*a,(me-ie)*y,(ce-ie)*a,(me-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,me*y,(ce+ie)*a,(me-re)*y,(ce+re)*a,(me-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me+re)*y,(ce+re)*a,(me+ie)*y,(ce+ie)*a,(me+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,me*y,(ce-ie)*a,(me+re)*y,(ce-re)*a,(me+ie)*y));var re=.05,ie=se*.05,ce=.825,me=.95,xe=new go.PathFigure((ce-re)*a,me*y,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me-re)*y,(ce-re)*a,(me-ie)*y,(ce-ie)*a,(me-re)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,me*y,(ce+ie)*a,(me-re)*y,(ce+re)*a,(me-ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me+re)*y,(ce+re)*a,(me+ie)*y,(ce+ie)*a,(me+re)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,me*y,(ce-ie)*a,(me+re)*y,(ce-re)*a,(me+ie)*y).close());var Ge=new go.PathFigure(0,y,!1);return x.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=se*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=se*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*se,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*se,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*se,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},63089:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ye={},Ye="5.0",ge={},ae=null,fe=!1,De=!1,Oe=null,ue=!1,Ee=null,se=null,Re=0;Re<arguments.length;Re++){var Be=arguments[Re];if(Be!==null)switch(typeof Be){case"number":Ye=Be.toFixed(1);break;case"string":Be.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ye=Be:Oe=Be;break;case"object":typeof Be.is3D!="undefined"?ae=Be:ge=Be;break;case"boolean":fe=Be,De=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!De&&(fe=!0)),Oe!==null&&ge.id===void 0&&(ge.id=Oe);var Me="",Te="",Ie=!1,Ce=null,ne=null,a=null,y=!1,x=null,b=null,E=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(we){return parseFloat(we)>4?parseFloat(we):5};ye.setHTML5Codebase=function(we,Ne){se=we,Jt(we,Ne)},ye.setJavaCodebase=ye.setJavaCodebaseVersion=ye.isCompiledInstalled=ye.setPreCompiledScriptPath=ye.setPreCompiledResourcePath=function(){},ye.setHTML5CodebaseVersion=function(we,Ne){var Xe=parseFloat(we);if(Xe!==NaN&&Xe<5){console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead.");return}Ee=we,an(we,Ne)},ye.getHTML5CodebaseVersion=function(){return ne},ye.getParameters=function(){return ge},ye.setFontsCSSURL=function(we){z=we},ye.setGiacJSURL=function(we){},ye.setJNLPFile=function(we){Me=we},ye.setJNLPBaseDir=function(we){},ye.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ne="auto",Xe=ge.id,Lt,Ue=!1,yt=0;yt<arguments.length;yt++){var de=arguments[yt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ne=de:Xe=arguments[yt]):typeof de=="boolean"?Ue=de:de instanceof HTMLElement&&(Lt=de)}et();function et(){if(!ue){setTimeout(et,200);return}Ne=dn(Ne);var Ct=Lt||document.getElementById(Xe);if(!Ct){console.log("possibly bug on ajax loading? ");return}if(ye.removeExistingApplet(Ct,!1),ge.width===void 0&&Ct.clientWidth&&(ge.width=Ct.clientWidth),ge.height===void 0&&Ct.clientHeight&&(ge.height=Ct.clientHeight),!(ge.width&&ge.height)&&Ne==="html5"&&(delete ge.width,delete ge.height),Ce=Ne,Ne==="screenshot")pt(Ct,ge);else{var Vt=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?Vt=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(Vt=(!oe()||we())&&re()),Vt?(Ce="screenshot",St(Ct,ge,Ue,Ne)):at(Ct,ge,Ue)}}};function oe(){try{return window.self!==window.top}catch(we){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ye.getViews=function(){return ae},ye.isJavaInstalled=function(){return!1};var ie=function(we){var Ne=function(yt){var de=JSON.parse(yt),et=function(Rt){return Rt.type=="G"||Rt.type=="E"},Ct=de.elements?de.elements.filter(et)[0]:de;if(!Ct||!Ct.url){Xe();return}ge.fileName=Ct.url,ce(Ct.settings||{}),ae.is3D=!0;var Vt="https://www.geogebra.org/images/";ye.setPreviewImage(x||Ct.previewUrl,Vt+"GeoGebra_loading.png",Vt+"applet_play.png"),we()},Xe=function(){ge.onError&&ge.onError(),cn("Error: Fetching material (id "+ge.material_id+") failed.",ge)},Lt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ue="/materials/"+ge.material_id+"?scope=basic";me("https://"+Lt+"/api/proxy.php?path="+encodeURIComponent(Ue),Ne,Xe)};function ce(we){var Ne=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Xe){we[Xe]=!!we[Xe]}),Ne.forEach(function(Xe){ge[Xe]===void 0&&we[Xe]!==void 0&&(ge[Xe]=we[Xe])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function me(we,Ne,Xe){var Lt=new XMLHttpRequest;Lt.open("GET",we),Lt.onload=function(){Ne(Lt.responseText)},Lt.onerror=Xe,Lt.send()}ye.isHTML5Installed=function(){return!0},ye.getLoadedAppletType=function(){return Ce},ye.setPreviewImage=function(we,Ne,Xe){x=we,b=Ne,E=Xe},ye.removeExistingApplet=function(we,Ne){var Xe;typeof we=="string"&&(we=document.getElementById(we)),Ce=null;var Lt=null;for(Xe=0;Xe<we.childNodes.length;Xe++){var Ue=we.childNodes[Xe],yt=Ue.className;yt==="applet_screenshot"?Ne?(Ue.style.display="block",Ce="screenshot"):Ue.style.display="none":yt!=="applet_scaler prerender"&&(we.removeChild(Ue),Lt=yt&&yt.indexOf("appletParameters")!=-1?Ue.id:null,Xe--)}var de=ge.id!==void 0?ge.id:Lt,et=window[de];et&&typeof et.getBase64=="function"&&(et.remove(),window[de]=null)},ye.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=ye.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},ye.startAnimation=function(){var we=ye.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},ye.stopAnimation=function(){var we=ye.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},ye.getAppletObject=function(){var we=ge.id!==void 0?ge.id:"ggbApplet";return window[we]},ye.resize=function(){};var xe=function(we,Ne,Xe){var Lt=document.createElement("param");Lt.setAttribute("name",Ne),Lt.setAttribute("value",Xe),we.appendChild(Lt)},Ge=function(we){return we&&we!=="false"},at=function(we,Ne,Xe){te(ne)<=4.2&&(Xe=!0);var Lt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Lt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ue=document.createElement("div");Ue.classList.add("appletParameters","notranslate");var yt=Ne.width,de=Ne.height;if(Ne.disableAutoScale=Ne.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ne.disableAutoScale,Ne.width!==void 0)if(te(ne)<=4.4)Ge(Ne.showToolBar)&&(Ne.height-=7),Ge(Ne.showAlgebraInput)&&(Ne.height-=37),Ne.width<605&&Ge(Ne.showToolBar)&&(Ne.width=605,yt=605);else{var et=100;(Ge(Ne.showToolBar)||Ge(Ne.showMenuBar))&&(Ne.hasOwnProperty("customToolBar")&&(Ne.customToolbar=Ne.customToolBar),et=Ge(Ne.showMenuBar)?245:155),yt<et&&(Ne.width=et,yt=et)}Ue.style.border="none",Ue.style.display="inline-block";for(var Ct in Ne)Ne.hasOwnProperty(Ct)&&Ct!=="appletOnLoad"&&Ue.setAttribute("data-param-"+Ct,Ne[Ct]);z&&Ue.setAttribute("data-param-fontscssurl",z),ye.resize=function(){GGBAppletUtils.responsiveResize(we,Ne)},window.addEventListener("resize",function(xt){ye.resize()});var Vt=typeof Ne.appletOnLoad=="function"?Ne.appletOnLoad:function(){};if(!Xe&&Ne.width!==void 0){Ne.hasOwnProperty("showSplash")||Ue.setAttribute("data-param-showSplash","false");var Rt=we.querySelector(".applet_scaler.prerender"),ze=Rt!==null;if(ze)var Le=Rt.querySelector(".ggb_preview");else{var Le=It(yt,de,Ne.borderColor,!1);Rt=document.createElement("div"),Rt.className="applet_scaler",Rt.style.position="relative",Rt.style.display="block",Rt.style.width=yt+"px",Rt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Rt,"66%"),te(ne)>=5?(Ne.appletOnLoad=function(xt){var Bt=we.querySelector(".ggb_preview");Bt&&Bt.parentNode.removeChild(Bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Rt),window.GGBT_wsf_view&&$(window).trigger("resize"),Vt(xt)},ze||Rt.appendChild(Le)):Ue.appendChild(Le),Rt.appendChild(Ue),ze||we.appendChild(Rt),setTimeout(function(){ye.resize()},1)}else{var he=document.createElement("div");he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.appendChild(Ue),we.appendChild(he),Ne.appletOnLoad=function(xt){ye.resize(),Vt(xt)}}function _e(xt,Bt){Bt&&typeof Bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(xt,Bt.appletOnLoad):renderGGBElement(xt),cn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Bt)}function He(xt,Bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:xt,params:Bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(on){_e(on.article,on.params)}),html5AppletsToProcess=null)},te(ne)<5&&(xt.className+=" geogebraweb")):_e(xt,Bt)}if(Lt){scriptLoadStarted=!0;for(var ot=0;ot<Ue.childNodes.length;ot++){var lt=Ue.childNodes[ot].tagName;lt==="TABLE"&&(Ue.removeChild(Ue.childNodes[ot]),ot--)}if(ggbHTML5LoadedScript!==null){var ct=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ct!=null&&ct.parentNode.removeChild(ct)}var wt=document.createElement("script"),Ft=function(){He(Ue,Ne)};wt.src=Te+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=wt.src,cn("GeoGebra HTML5 codebase loaded: '"+Te+"'.",Ne),!se&&(!Ee||Ee=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ft()):Te.requirejs?__webpack_require__.e(6954).then(function(){var xt=[__webpack_require__(76954)];Ft.apply(null,xt)}.bind(this)).catch(__webpack_require__.oe):(wt.onload=Ft,we.appendChild(wt))}else He(Ue,Ne);Ne.height=de,Ne.width=yt},pt=function(we,Ne,Xe){var Lt=It(Ne.width,Ne.height,Ne.borderColor,Xe),Ue=document.createElement("div");Ue.style.position="relative",Ue.style.display="block",Ue.style.width=Ne.width+"px",Ue.style.height=Ne.height+"px",Ue.className="applet_screenshot applet_scaler"+(Xe?" applet_screenshot_play":""),Ue.appendChild(Lt);var yt=GGBAppletUtils.getScale(Ne,we,Xe);Xe?(we.appendChild(bt()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ue,"66%"),we.appendChild(Ue),yt!==1&&!isNaN(yt)&&(GGBAppletUtils.scaleElement(Ue,yt),Ue.style.width=Ne.width+"px",Ue.style.height=Ne.height+"px",Ue.parentNode.style.width=Ne.width*yt+"px",Ue.parentNode.style.height=Ne.height*yt+"px"),ye.resize=function(){kt(we,Lt,Ue,Xe)},window.addEventListener("resize",function(de){ye.resize()}),ye.resize()};function kt(we,Ne,Xe,Lt){if(we.contains(Ne)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var Ue=GGBAppletUtils.getScale(ge,we,Lt);Xe.parentNode!==null&&(!isNaN(Ue)&&Ue!==1?(GGBAppletUtils.scaleElement(Xe,Ue),Xe.parentNode.style.width=ge.width*Ue+"px",Xe.parentNode.style.height=ge.height*Ue+"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(we),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ye.onExitFullscreen=function(we,Ne){Ne.appendChild(we)};var St=function(we,Ne,Xe,Lt){pt(we,Ne,!0);for(var Ue=function(){var et=[];for(de=0;de<we.childNodes.length;de++)et.push(we.childNodes[de]);if(window.GGBT_wsf_view){var Ct=window.GGBT_wsf_view.renderFullScreen(we,Ne.id),Vt=document.getElementById("fullscreencontainer"),Rt=jQuery(we).find(".fullscreencontent");Rt.length>0?(Ct.remove(),Rt.attr("id","fullscreencontent").show(),jQuery(Vt).append(Rt),window.dispatchEvent(new Event("resize"))):at(Ct,Ne,!1),window.GGBT_wsf_view.launchFullScreen(Vt)}else Ce=Lt,at(we,Ne,!1);if(!window.GGBT_wsf_view)for(de=0;de<et.length;de++)we.removeChild(et[de])},yt=we.getElementsByClassName("ggb_preview_play"),de=0;de<yt.length;de++)yt[de].addEventListener("click",Ue,!1),yt[de].addEventListener("ontouchstart",Ue,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},bt=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ne='.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=Ne:Xe.appendChild(document.createTextNode(Ne)),document.getElementsByTagName("head")[0].appendChild(Xe)}return we},It=function(we,Ne,Xe,Lt){var Ue=document.createElement("div");Ue.className="ggb_preview",Ue.style.position="absolute",Ue.style.zIndex="90",Ue.style.width=we-2+"px",Ue.style.height=Ne-2+"px",Ue.style.top="0px",Ue.style.left="0px",Ue.style.overflow="hidden",Ue.style.backgroundColor="white";var yt="lightgrey";Xe!==void 0&&(Xe==="none"?yt="transparent":yt=Xe),Ue.style.border="1px solid "+yt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var et,Ct,Vt;if(!Lt){et=document.createElement("img"),et.style.position="absolute",et.style.zIndex="1001",et.style.opacity=1,de.style.opacity=.3,Ct=360,Ct>we/4*3&&(Ct=we/4*3),Vt=Ct/5.8,et.setAttribute("src",b),et.setAttribute("width",Ct),et.setAttribute("height",Vt);var Rt=(we-Ct)/2,ze=(Ne-Vt)/2;et.style.left=Rt+"px",et.style.top=ze+"px",Ue.appendChild(et)}}return Ue.appendChild(de),Ue},dn=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},qt=["web","webSimple","web3d","tablet","tablet3d","phone"],an=function(we,Ne){if(ne=we,Ne){Jt(ne,!0);return}var Xe=!fe;if(Xe){var Lt=te(ne);!isNaN(Lt)&&Lt<4.4&&(Xe=!1)}var Ue,yt;window.location.protocol.substr(0,4)==="http"?Ue=window.location.protocol:Ue="http:";var de=ne.indexOf("//");de>0?yt=ne:de===0?yt=Ue+ne:yt="https://www.geogebra.org/apps/5.2.814.0/";for(var et in qt)if(ne.slice(qt[et].length*-1)===qt[et]||ne.slice((qt[et].length+1)*-1)===qt[et]+"/"){Jt(yt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Xe&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ge(ge.showToolBar)&&!Ge(ge.showMenuBar)&&!Ge(ge.showAlgebraInput)&&!Ge(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?yt+="webSimple/":yt+="web3d/",Jt(yt,!1)},Jt=function(we,Ne){if(we.requirejs){Te=we;return}we.slice(-1)!=="/"&&(we+="/"),Te=we,Ne===null&&(Ne=we.indexOf("http")===-1),Ie=Ne,a="web.nocache.js",y=!1;var Xe=Te.split("/");Xe.length>1&&(!Ne&&Xe[Xe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):qt.indexOf(Xe[Xe.length-2])>=0&&(a=Xe[Xe.length-2]+".nocache.js")),Xe=we.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 Lt=parseFloat(ne);Lt!==NaN&&Lt<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Lt+" is deprecated. Using version latest instead."),an("5.0",Ne))},cn=function(we,Ne){window.console&&window.console.log&&(!Ne||typeof Ne.showLogging=="undefined"||Ne.showLogging&&Ne.showLogging!=="false")&&console.log(we)};ge.material_id!==void 0?ie(Fn):Fn();function Fn(){var we=Ye;Ee!==null?we=Ee:parseFloat(we)<5&&(we="5.0"),an(we,!1),se!==null&&Jt(se,Ie),ue=!0}return ye},GGBAppletUtils=function(){"use strict";function ye(){return window.GGBT_wsf_edit!==void 0}function Ye(ue,Ee){Ee!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+Ee+","+Ee+")",ue.style.webkitTransform="scale("+Ee+","+Ee+")",ue.style.maxWidth="initial",ue.querySelector(".ggb_preview")!==null&&(ue.querySelector(".ggb_preview").style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ue.style.transform="none",ue.style.webkitTransform="none")}function ge(ue,Ee,se,Re,Be,Me){var Te=null;if(Me!=null&&Me!="")for(var Ie=ue.parentNode;Ie!=null;)if((" "+Ie.className+" ").indexOf(" "+Me+" ")>-1){Te=Ie;break}else Ie=Ie.parentNode;var Ce=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Te)Ce=Te.offsetWidth,ne=Math.max(Re?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ce):(Ce=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ue){var z=ue.getBoundingClientRect();z.left>0&&z.left<=Ce&&(Be===void 0||!Be)&&(document.dir==="rtl"?(x=Ce-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ue&&((se===void 0||!se)&&Ee>0&&Ee+y<Ce?Ce=Ee:Ce-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ne-=E)),{width:Ce,height:ne}}function ae(ue,Ee,se,Re,Be){if(ue.isScreenshoGenerator)return 1;var Me=Re!==void 0&&Re,Te=ue.noScaleMargin!=null&&ue.noScaleMargin,Ie=function(ee){return ee&&ee!=="false"},Ce=Ie(ue.autoHeight),ne=ge(Ee,ue.width,se,Ce,Me&&window.GGBT_wsf_view||Te,Be),a=parseInt(ne.width),y=ue.width,x=ue.height;if(y===void 0){var b=Ee.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Me?1:ne.height/x;return se!==void 0&&!se&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function fe(ue,Ee,se){var Re=1,Be,Me=!1;if(ue.hasOwnProperty("allowUpscale")&&(Me=ue.allowUpscale),ue.hasOwnProperty("scale")&&(Re=parseFloat(ue.scale),(isNaN(Re)||Re===null||Re===0)&&(Re=1),Re>1&&(Me=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Me=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))Be=ae(ue,Ee,Me,se,ue.scaleContainerClass);else return Re;return Me&&(!ue.hasOwnProperty("scale")||Re===1)?Be:Math.min(Re,Be)}function De(ue){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Re=ue.getBoundingClientRect(),Be=(Ee-Re.width)/2,Me=(se-Re.height)/2;Me<0&&(Me=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Be<40?ue.style.left="40px":ue.style.left=Be+"px",ue.style.top=Me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me<40?ue.style.top="40px":ue.style.top=Me+"px",ue.style.left=Be+"px")}function Oe(ue,Ee){var se=ue.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Re=fe(Ee,ue);ye()&&se.setAttribute("data-param-scale",Re);for(var Be=null,Me=0;Me<ue.childNodes.length;Me++)if(ue.childNodes[Me].className!==void 0&&ue.childNodes[Me].className.match(/^applet_scaler/)){Be=ue.childNodes[Me];break}if(Be!==null&&Be.querySelector(".noscale")!==null)return;var Te=Ee.id!==void 0?Ee.id:"ggbApplet",Ie=window[Te];(Ie==null||!Ie.recalculateEnvironments)&&Be!==null&&!Be.className.match(/fullscreen/)&&(Be.parentNode.style.transform="",!isNaN(Re)&&Re!==1?(Be.parentNode.style.width=Ee.width*Re+"px",Be.parentNode.style.height=Ee.height*Re+"px",Ye(Be,Re)):(Ye(Be,1),Be.parentNode.style.width=Ee.width+"px",Be.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&De(ue),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Oe,isFlexibleWorksheetEditor:ye,positionCenter:De,getScale:fe,scaleElement:Ye}}();__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 ye=n.location.search;return ye.indexOf(J)!=-1||ye.indexOf(K)!=-1}function q(ye,Ye){}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(ye){var Ye=s[L].bindings;s[L].bindings=function(){for(var ge=Ye?Ye():{},ae=ye[webModule.__softPermutationId],fe=O;fe<ae.length;fe++){var De=ae[fe];ge[De[O]]=De[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var ye=o.createElement(Q);if(ye.id=L,ye.style.cssText=R+S,ye.tabIndex=-1,o.body.appendChild(ye),t=ye.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ye=document.compatMode==U?V:W;t.write(Ye+X),t.close()}}}function w(ye){function Ye(ae){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var De=fe();if(De){ae();return}function Oe(){if(!De){if(!fe())return;De=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Oe,!1),ue&&clearInterval(ue)}}o.addEventListener&&o.addEventListener(Z,Oe,!1);var ue=setInterval(function(){Oe()},$)}function ge(ae){var fe=u(),De=fe.body,Oe=fe.createElement(_);Oe.language=ab,Oe.crossOrigin=W,Oe.src=ae,webModule.__errFn&&(Oe.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),De.appendChild(Oe)}Ye(function(){ge(ye)})}webModule.__startLoadingFragment=function(ye){return C(ye)},webModule.__installRunAsyncCode=function(ye){var Ye=u(),ge=Ye.body,ae=Ye.createElement(_);ae.language=ab,ae.text=ye,ge.appendChild(ae),ge.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ye){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ye){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ye){var Ye=c[ye];return Ye==null?null:Ye},r=d,webModule.__errFn=e}function B(){function ye(ue){var Ee=ue.lastIndexOf(rb);Ee==-1&&(Ee=ue.length);var se=ue.indexOf(sb);se==-1&&(se=ue.length);var Re=ue.lastIndexOf(tb,Math.min(se,Ee));return Re>=O?ue.substring(O,Re+P):W}function Ye(ue){if(!ue.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=ue+vb,ue=ye(Ee.src)}return ue}function ge(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function ae(){for(var ue=o.getElementsByTagName(_),Ee=O;Ee<ue.length;++Ee)if(ue[Ee].src.indexOf(xb)!=-1)return ye(ue[Ee].src);return W}function fe(){var ue=o.getElementsByTagName(yb);return ue.length>O?ue[ue.length-P].href:W}function De(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var Oe=ge();return Oe==W&&(Oe=ae()),Oe==W&&(Oe=fe()),Oe==W&&De()&&(Oe=ye(o.location.href)),Oe=Ye(Oe),Oe}function C(ye){return ye.match(/^\//)||ye.match(/^[a-zA-Z]+:\/\//)?ye:webModule.__moduleBase+ye}function D(){var ye=[],Ye=O,ge=[],ae=[];function fe(ue){var Ee=ae[ue](),se=ge[ue];if(Ee in se)return Ee;var Re=[];for(var Be in se)Re[se[Be]]=Be;throw r&&r(ue,Re,Ee),null}if(__gwt_isKnownPropertyValue=function(ue,Ee){return Ee in ge[ue]},webModule.__getPropMap=function(){var ue={};for(var Ee in ge)ge.hasOwnProperty(Ee)&&(ue[Ee]=fe(Ee));return ue},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var De;try{De=Cb;var Oe=De.indexOf(Db);Oe!=-1&&(Ye=parseInt(De.substring(Oe+P),$),De=De.substring(O,Oe))}catch(ue){}return webModule.__softPermutationId=Ye,C(De+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},88457:function(ye,Ye,ge){"use strict";ge.d(Ye,{Ax:function(){return Oe},Ds:function(){return ue},KI:function(){return se},SI:function(){return De},f1:function(){return fe}});var ae=ge(78323);function fe(Re){let Be=!0;if(Re.length>0){for(let Me=0;Me<Re.length;Me++)if(Re[Me].compile_success==0||!Re[Me].compile_success){Be=!1;break}}else Be=!1;return Be}function De(Re,Be=""){let Me=[];for(let Te=0;Te<Re.length;Te++){let Ie=Re[Te],Ce=Be?`${Be}/${Ie.name}`:`${Ie.name}`;Me.push({title:Ie.name,type:Ie.type,isLeaf:Ie.type!=="tree",key:Ce})}return Me}function Oe(Re,Be,Me){for(let Te=0;Te<Re.length;Te++){let Ie=Re[Te];if(Ie.key===Be){Ie.children=Me;break}Ie.children&&Oe(Ie.children,Be,Me)}return Re}function ue(Re,Be,Me){let Te;return function(){let Ie=this,Ce=arguments,ne=function(){Te=null,Me||Re.apply(Ie,Ce)},a=Me&&!Te;clearTimeout(Te),Te=setTimeout(ne,Be),a&&Re.apply(Ie,Ce)}}const Ee=!0,se=ae.Z.API_SERVER},86197:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return Te}});var ae=ge(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},De=ge(92310),Oe=ge.n(De),ue=ge(71418),Ee=ge(2859),se=ge(57193),Re=ge(63949),Be=(Ie,Ce,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Ie,Ce)).next())}),Te=({data:Ie,className:Ce,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ie]=(0,ae.useState)(!1),[ce,me]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&xe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ie==null?void 0:Ie.visible]);const xe=()=>Be(void 0,null,function*(){ie(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const St=yield(0,Re.ZJ)(Ie==null?void 0:Ie.src);z.current.src="",z.current.src=St,z.current.onload=function(){kt()},ie(!1),me("")}),Ge=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},at=St=>Be(void 0,null,function*(){ie(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const bt=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:St.dataUrl}});bt!=null&&bt.id&&!E?(yield(0,se.ZP)(`/api/attachments/${Ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:bt==null?void 0:bt.id,settings:JSON.stringify(St.state)}})).status===0&&x():bt!=null&&bt.id&&x(bt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),me("")}),pt=()=>{const St=document.querySelector('a[href="https://markerjs.com/"]');St&&St.parentNode&&(St.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(It=>{const dn=document.querySelector(It.name);dn&&dn.setAttribute("title",It.title)})},kt=()=>{ee.current=new Ee.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",at),ee.current.addEventListener("beforeclose",Ge),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Ie!=null&&Ie.snapshotData&&ee.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),pt()},300)};return ae.createElement(ae.Fragment,null,(Ie==null?void 0:Ie.visible)&&ae.createElement(ue.Z,{spinning:re,tip:ce,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Oe()(fe.imageDimensions,Ce,ne?fe.fullWidth:""),style:a},ae.createElement("img",{className:fe.img,ref:z}))))}},24638:function(ye,Ye,ge){"use strict";var ae=ge(59301),fe=ge(95237),De=ge(43604),Oe=ge(99313),ue=ge(3113),Ee=ge(76818),se=ge(27431),Re=ge(48136),Be=ge(59301);const Me=(0,ae.forwardRef)(({callback:Te,showSaveButton:Ie,value:Ce=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Be.createElement(fe.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,te)=>Be.createElement(De.Z,{flex:"110px",className:se.Z.item},Be.createElement("div",null,Be.createElement(Ee.Z,{value:`$$${ee.value}$$`}),ee.name),Be.createElement("div",{className:se.Z.children},ee.children.map((oe,re)=>Be.createElement("div",{key:re},Be.createElement("h1",null,oe.name),Be.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,ce)=>Be.createElement(De.Z,{key:ce,onClick:()=>b(ie),className:se.Z.diamond},Be.createElement(Ee.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Be.createElement(fe.Z,{className:se.Z.lists,gutter:[10,10]},x.map((ee,te)=>Be.createElement(De.Z,{flex:"110px",className:se.Z.item},Be.createElement("div",null,Be.createElement(Ee.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Be.createElement("div",{className:se.Z.children},ee.children.map((oe,re)=>Be.createElement("div",{key:re},oe.name&&Be.createElement("h1",null,oe.name),Be.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,ce)=>Be.createElement(De.Z,{key:ce,onClick:()=>b(ie),className:se.Z.diamond},Be.createElement(Ee.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Te&&Te(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Be.createElement("div",{className:se.Z.mathWrap},Be.createElement(Oe.default,{defaultActiveKey:"1",items:E}),Be.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ce||""),Ie&&Be.createElement("div",{className:se.Z.button},Be.createElement(ue.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ye.Z=Me},48775:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return Oe}});var ae=ge(59301),fe=ge(27035),De=ge(11611),Oe=()=>{const[ue,Ee]=(0,ae.useState)(""),[se,Re]=(0,ae.useState)(0);let[Be,Me]=(0,ae.useState)(),[Te,Ie]=(0,ae.useState)();const[Ce,ne]=(0,ae.useState)(!1),a=(0,ae.useRef)("");(0,ae.useEffect)(()=>fe.Z.subscribe("preview-image",ce=>{Ee(ce),console.log(oe.current),document.body.style.overflow="hidden"}),[]),(0,ae.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,ae.useEffect)(()=>{a.current=ue},[ue]);function y(ie){ie.keyCode==27&&a.current&&x()}function x(){document.body.style.overflow="auto",Me(void 0),Ie(void 0),Re(0),Ee("")}function b(){Re(se+90)}function E(){Be=oe.current.width*1.1,Te=oe.current.height*1.1,Ie(Te),Me(Be)}function z(){Be=oe.current.width/1.1,Te=oe.current.height/1.1,Ie(Te),Me(Be)}const ee=(0,ae.useRef)(),te=(0,ae.useRef)(),oe=(0,ae.useRef)(),re=ie=>{(ie.nativeEvent.target===ee.current||ie.nativeEvent.target===te.current)&&x()};return ae.createElement(ae.Fragment,null,ue?ae.createElement("div",null,ae.createElement("div",{className:"preview-wrp-group",ref:te},ae.createElement(De.Z,{className:"image-preview",src:ue,style:{display:"none"},preview:{visible:!0,src:ue,movable:!1,onVisibleChange:ie=>{Ee("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},63347:function(ye,Ye,ge){"use strict";ge.d(Ye,{h:function(){return ee}});var ae=ge(59301),fe=ge(57809),De=ge(78241),Oe=ge(3113),ue=ge(89780),Ee=ge.n(ue),se=ge(4887),Re=ge(37068),Be=Object.defineProperty,Me=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?Be(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Ce.call(oe,re)&&a(te,re,oe[re]);if(Ie)for(var re of Ie(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},x=(te,oe)=>Me(te,Te(oe));const b=fe.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ye.Z=({callback:te,onCancel:oe})=>{const[re,ie]=(0,ae.useState)("python");function ce(xe){ie(z[xe][1])}function me(xe){te(xe)}return ae.createElement(De.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),ae.createElement(De.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(fe.default,{getPopupContainer:xe=>xe.parentNode,onChange:ce},Object.keys(z).map(xe=>ae.createElement(b,{key:xe,value:xe},z[xe][0])))),ae.createElement(De.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Oe.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const ce=(0,ae.useRef)(),[me,xe]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(me){let Ge=function(at){const pt=at.getValue();oe&&oe(pt)};return me.on("change",Ge),()=>{me.off("change",Ge)}}},[me,oe]),(0,ae.useEffect)(()=>{me&&me.setOption("mode",re)},[me,re]),(0,ae.useEffect)(()=>{me&&(te!==me.getValue()||te==="")&&setTimeout(()=>{me.setValue(te||"")},300)},[me,te]),(0,ae.useEffect)(()=>{if(ce.current&&!me){const Ge=Ee().fromTextArea(ce.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));xe(Ge)}},[ce.current,me]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:ce}))}},88871:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return ya}});var ae=ge(59301),fe=ge(89780),De=ge.n(fe),Oe=ge(76374),ue=ge(4887),Ee=ge(6313),se=ge(25717),Re=ge(99498),Be=ge(25419),Me=ge(67549),Te=ge(76818),Ie=({value:le="",className:ve,showTextOnly:Se,showLines:Je,style:st={}})=>{const dt=(0,ae.useMemo)(()=>"",[le]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:dt}}))},Ce=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(le,ve,Se)=>ve in le?ne(le,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):le[ve]=Se,ee=(le,ve)=>{for(var Se in ve||(ve={}))b.call(ve,Se)&&z(le,Se,ve[Se]);if(x)for(var Se of x(ve))E.call(ve,Se)&&z(le,Se,ve[Se]);return le},te=(le,ve)=>a(le,y(ve));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:le,title:ve,icon:Se,actionName:Je,className:st="",children:dt}){function Wt(){le(Je)}return Ce.createElement("a",{title:ve,className:st,onClick:Wt},Ce.createElement("i",{className:`${Se}`}),dt)}var ie=({watch:le,showNullButton:ve,showNullProgramButton:Se,onActionCallback:Je,fullScreen:st,insertTemp:dt,hidetoolBar:Wt,extraUse:Nt})=>{const be=[...oe,{title:`${le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ce.createElement("ul",{className:"markdown-toolbar-container"},!Wt&&be.map((Pe,$e)=>Ce.createElement("li",{key:$e},Pe.actionName?Ce.createElement(re,te(ee({},Pe),{onActionCallback:Je})):Ce.createElement("span",{className:"v-line"}))),ve?Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Je},Ce.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?Ce.createElement(Ce.Fragment,null,Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Je},Ce.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Je},Ce.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,dt&&Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${dt}`,onActionCallback:Je},Ce.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Nt&&Ce.createElement("li",null,Nt),Ce.createElement("li",{className:"btn-full-screen"},Ce.createElement(re,{icon:`${st?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:st?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Je})))},ce=ge(81123),me=ge(78241),xe=ge(92832),Ge=ge(3113),at=Object.defineProperty,pt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,dn=(le,ve,Se)=>ve in le?at(le,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):le[ve]=Se,qt=(le,ve)=>{for(var Se in ve||(ve={}))bt.call(ve,Se)&&dn(le,Se,ve[Se]);if(St)for(var Se of St(ve))It.call(ve,Se)&&dn(le,Se,ve[Se]);return le},an=(le,ve)=>pt(le,kt(ve));const Jt={labelCol:{span:4},wrapperCol:{span:20}};var cn=({callback:le,onCancel:ve})=>{function Se(Je){le(Je)}return ae.createElement(me.default,an(qt({},Jt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),ae.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(xe.default,null)),ae.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(xe.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ge.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Fn=ge(63347),we=ge(90443),Ne=ge(43418),Xe=ge(95237),Lt=ge(86197),Ue=ge(59301),yt=({callback:le,onCancel:ve})=>{const Se=document.createElement("canvas"),Je=Se.getContext("2d");Se.width=1e3,Se.height=800,Je.fillStyle="#ffffff",Je.fillRect(0,0,Se.width,Se.height);const st=Se.toDataURL("image/png");return Ue.createElement(Ne.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ue.createElement(Xe.Z,{style:{height:"100vh"}},Ue.createElement(Lt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:st,visible:!0,title:String(Date.now())},onOk:dt=>{le({src:dt.url})},onClose:ve})))},de=ge(12378);function et(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(et,go.CommandHandler),et.prototype.canAlignSelection=function(){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<2)},et.prototype.alignLeft=function(){var le=this.diagram;le.startTransaction("aligning left");var ve=1/0;le.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.x,ve))}),le.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve,Se.position.y))}),le.commitTransaction("aligning left")},et.prototype.alignRight=function(){var le=this.diagram;le.startTransaction("aligning right");var ve=-1/0;le.selection.each(function(Se){if(!(Se instanceof go.Link)){var Je=Se.actualBounds.x+Se.actualBounds.width;ve=Math.max(Je,ve)}}),le.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve-Se.actualBounds.width,Se.position.y))}),le.commitTransaction("aligning right")},et.prototype.alignTop=function(){var le=this.diagram;le.startTransaction("alignTop");var ve=1/0;le.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.y,ve))}),le.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,ve))}),le.commitTransaction("alignTop")},et.prototype.alignBottom=function(){var le=this.diagram;le.startTransaction("aligning bottom");var ve=-1/0;le.selection.each(function(Se){if(!(Se instanceof go.Link)){var Je=Se.actualBounds.y+Se.actualBounds.height;ve=Math.max(Je,ve)}}),le.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,ve-Se.actualBounds.height))}),le.commitTransaction("aligning bottom")},et.prototype.alignCenterX=function(){var le=this.diagram,ve=le.selection.first();if(ve){le.startTransaction("aligning Center X");var Se=ve.actualBounds.x+ve.actualBounds.width/2;le.selection.each(function(Je){Je instanceof go.Link||Je.move(new go.Point(Se-Je.actualBounds.width/2,Je.actualBounds.y))}),le.commitTransaction("aligning Center X")}},et.prototype.alignCenterY=function(){var le=this.diagram,ve=le.selection.first();if(ve){le.startTransaction("aligning Center Y");var Se=ve.actualBounds.y+ve.actualBounds.height/2;le.selection.each(function(Je){Je instanceof go.Link||Je.move(new go.Point(Je.actualBounds.x,Se-Je.actualBounds.height/2))}),le.commitTransaction("aligning Center Y")}},et.prototype.alignColumn=function(le){var ve=this.diagram;ve.startTransaction("align Column"),le===void 0&&(le=0),le=parseFloat(le);var Se=new Array;ve.selection.each(function(Nt){Nt instanceof go.Link||Se.push(Nt)});for(var Je=0;Je<Se.length-1;Je++){var st=Se[Je],dt=st.actualBounds.y+st.actualBounds.height+le,Wt=Se[Je+1];Wt.move(new go.Point(st.actualBounds.x,dt))}ve.commitTransaction("align Column")},et.prototype.alignRow=function(le){le===void 0&&(le=0),le=parseFloat(le);var ve=this.diagram;ve.startTransaction("align Row");var Se=new Array;ve.selection.each(function(Nt){Nt instanceof go.Link||Se.push(Nt)});for(var Je=0;Je<Se.length-1;Je++){var st=Se[Je],dt=st.actualBounds.x+st.actualBounds.width+le,Wt=Se[Je+1];Wt.move(new go.Point(dt,st.actualBounds.y))}ve.commitTransaction("align Row")},et.prototype.canRotate=function(le){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},et.prototype.rotate=function(le){le===void 0&&(le=90);var ve=this.diagram;ve.startTransaction("rotate "+le.toString());var ve=this.diagram;ve.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=le)}),ve.commitTransaction("rotate "+le.toString())},et.prototype.pullToFront=function(){var le=this.diagram;le.startTransaction("pullToFront");var ve=new go.Map;le.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var Je=0;Se.parts.each(function(st){if(!st.isSelected){var dt=st.zOrder;isNaN(dt)?st.zOrder=0:Je=Math.max(Je,dt)}}),ve.set(Se,Je)}),le.selection.each(function(Se){et._assignZOrder(Se,ve.get(Se.layer)+1)}),le.commitTransaction("pullToFront")},et.prototype.pushToBack=function(){var le=this.diagram;le.startTransaction("pushToBack");var ve=new go.Map;le.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var Je=0;Se.parts.each(function(st){if(!st.isSelected){var dt=st.zOrder;isNaN(dt)?st.zOrder=0:Je=Math.min(Je,dt)}}),ve.set(Se,Je)}),le.selection.each(function(Se){et._assignZOrder(Se,ve.get(Se.layer)-1-et._findGroupDepth(Se))}),le.commitTransaction("pushToBack")},et._assignZOrder=function(le,ve,Se){Se===void 0&&(Se=le),le.layer===Se.layer&&(le.zOrder=ve),le instanceof go.Group&&le.memberParts.each(function(Je){et._assignZOrder(Je,ve+1,Se)})},et._findGroupDepth=function(le){if(le instanceof go.Group){var ve=0;return le.memberParts.each(function(Se){ve=Math.max(ve,et._findGroupDepth(Se))}),ve+1}else return 0},et.prototype.doKeyDown=function(){var le=this.diagram;if(le!==null){var ve=le.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var Se=this.arrowKeyBehavior;if(Se==="none")return;if(Se==="select"){this._arrowKeySelect();return}else if(Se==="move"){this._arrowKeyMove();return}else if(Se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},et.prototype._getAllParts=function(){var le=new Array;return this.diagram.nodes.each(function(ve){le.push(ve)}),this.diagram.parts.each(function(ve){le.push(ve)}),le},et.prototype._arrowKeyMove=function(){var le=this.diagram,ve=le.lastInput,Se=0,Je=0;if(ve.control||ve.meta)Se=1,Je=1;else if(le.grid!==null){var st=le.grid.gridCellSize;Je=st.width,Se=st.height}le.startTransaction("arrowKeyMove"),le.selection.each(function(dt){ve.key==="Up"?dt.move(new go.Point(dt.actualBounds.x,dt.actualBounds.y-Se)):ve.key==="Down"?dt.move(new go.Point(dt.actualBounds.x,dt.actualBounds.y+Se)):ve.key==="Left"?dt.move(new go.Point(dt.actualBounds.x-Je,dt.actualBounds.y)):ve.key==="Right"&&dt.move(new go.Point(dt.actualBounds.x+Je,dt.actualBounds.y))}),le.commitTransaction("arrowKeyMove")},et.prototype._arrowKeySelect=function(){var le=this.diagram,ve=le.lastInput,Se=null;ve.key==="Up"?Se=this._findNearestPartTowards(270):ve.key==="Down"?Se=this._findNearestPartTowards(90):ve.key==="Left"?Se=this._findNearestPartTowards(180):ve.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(ve.shift?Se.isSelected=!0:ve.control||ve.meta?Se.isSelected=!Se.isSelected:le.select(Se))},et.prototype._findNearestPartTowards=function(le){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Se=ve.actualBounds.center,Je=this._getAllParts(),st=1/0,dt=ve,Wt=0;Wt<Je.length;Wt++){var Nt=Je[Wt];if(Nt!==ve&&Nt.canSelect()){var be=Nt.actualBounds.center,Pe=Se.directionPoint(be),$e=this._angleCloseness(Pe,le);if($e<=45){var pe=Se.distanceSquaredPoint(be);pe*=1+Math.sin($e*Math.PI/180),pe<st&&(st=pe,dt=Nt)}}}return dt},et.prototype._angleCloseness=function(le,ve){return Math.min(Math.abs(ve-le),Math.min(Math.abs(ve+360-le),Math.abs(ve-360-le)))},et.prototype._arrowKeyTree=function(){var le=this.diagram,ve=le.selection.first();if(ve instanceof go.Node){var Se=le.lastInput;if(Se.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)le.commandHandler.canExpandTree(ve)&&le.commandHandler.expandTree(ve);else{var Je=this._sortTreeChildrenByY(ve).first();Je!==null&&le.select(Je)}}else if(Se.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)le.commandHandler.canCollapseTree(ve)&&le.commandHandler.collapseTree(ve);else{var st=ve.findTreeParentNode();st!==null&&le.select(st)}else if(Se.key==="Up"){var st=ve.findTreeParentNode();if(st!==null){var dt=this._sortTreeChildrenByY(st),Wt=dt.indexOf(ve);if(Wt>0){for(var Nt=dt.elt(Wt-1);Nt!==null&&Nt.isTreeExpanded&&!Nt.isTreeLeaf;){var be=this._sortTreeChildrenByY(Nt);Nt=be.last()}Nt!==null&&le.select(Nt)}else le.select(st)}}else if(Se.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var Je=this._sortTreeChildrenByY(ve).first();Je!==null&&le.select(Je)}else for(;ve!==null;){var st=ve.findTreeParentNode();if(st===null)break;var dt=this._sortTreeChildrenByY(st),Wt=dt.indexOf(ve);if(Wt<dt.length-1){le.select(dt.elt(Wt+1));break}else ve=st}var Pe=le.selection.first();Pe!==null&&le.scrollToRect(Pe.actualBounds)}},et.prototype._sortTreeChildrenByY=function(le){var ve=new go.List().addAll(le.findTreeChildrenNodes());return ve.sort(function(Se,Je){var st=Se.location,dt=Je.location;return st.y<dt.y?-1:st.y>dt.y?1:st.x<dt.x?-1:st.x>dt.x?1:0}),ve},et.prototype.copyToClipboard=function(le){go.CommandHandler.prototype.copyToClipboard.call(this,le),this._lastPasteOffset.set(this.pasteOffset)},et.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(et.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(et.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 Ct=et,Vt=ge(87851),Rt=ge(43604),ze=ge(57193),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},he=ge(59301),_e=(le,ve,Se)=>new Promise((Je,st)=>{var dt=be=>{try{Nt(Se.next(be))}catch(Pe){st(Pe)}},Wt=be=>{try{Nt(Se.throw(be))}catch(Pe){st(Pe)}},Nt=be=>be.done?Je(be.value):Promise.resolve(be.value).then(dt,Wt);Nt((Se=Se.apply(le,ve)).next())});function He({onCancel:le,callback:ve}){let Se=(0,ae.useRef)(),Je=(0,ae.useRef)(),st=(0,ae.useRef)(),dt=(0,ae.useRef)(!1);const Wt=(0,ae.useRef)(!1),[Nt,be]=(0,ae.useState)(0);function Pe(){const pe=de.bx.make,Ze={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"};Se.current=new de.S0(Je.current,{padding:20,grid:pe(de.s_,"Grid",pe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),pe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ae=>{var Ve=Ae.diagram.commandHandler.addTopLevelParts(Ae.diagram.selection,!0);Ve||Ae.diagram.currentTool.doCancel()},commandHandler:pe(Ct),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ae=>{var Ve=Ae.subject;Ve.location=Ve.location.copy().snapToGridPoint(Ae.diagram.grid.gridOrigin,Ae.diagram.grid.gridCellSize),setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ae=>{var Ve=Ae.subject;setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ae=>{var Ve=Ae.parameter.part;Ve.invalidateConnectedLinks();var ut=Ae.subject;Ae.diagram.toolManager.linkingTool.isForwards?ut.toNode.invalidateConnectedLinks():ut.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=pe(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),pe(de.bn,{name:"SHAPE",fill:Ze.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")),pe(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),pe(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=pe("ToolTip",pe(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},pe(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),pe(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function rt(Ae,Ve){var ut=(Qe,At)=>{Qe.handled=!0,Qe.diagram.model.commit($t=>{var Ut=At.part.adornedPart,rn=new de.E9().setRectSpot(Ut.actualBounds,Ae);rn.subtract(Ut.location),rn.scale(2,2),rn.x+=Math.sign(rn.x)*130,rn.y+=Math.sign(rn.y)*130,rn.add(Ut.location),rn.snapToGridPoint(Qe.diagram.grid.gridOrigin,Qe.diagram.grid.gridCellSize);var Ln=$t.copyNodeData(Ut.data);$t.setGroupKeyForNodeData(Ln,$t.getGroupKeyForNodeData(Ut.data)),$t.addNodeData(Ln);var Vn={from:Ut.key,to:$t.getKeyForNodeData(Ln)};$t.addLinkData(Vn);var Mn=Qe.diagram.findNodeForData(Ln);Mn.location=rn,Qe.diagram.select(Mn),setTimeout(()=>{Qe.diagram.commandHandler.editTextBlock()},20)})};return pe(de.bn,{figure:Ve,alignment:Ae,alignmentFocus:Ae.opposite(),width:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?25:18,height:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Ze.white,strokeWidth:4,mouseEnter:(Qe,At)=>At.fill="dodgerblue",mouseLeave:(Qe,At)=>At.fill="orange",isActionable:!0,click:ut,contextClick:ut})}function ft(Ae){return pe(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:(Ve,ut)=>ut.fill="dodgerblue",mouseLeave:(Ve,ut)=>ut.fill="orange",click:(Ve,ut)=>{Ve.diagram.commandHandler.showContextMenu(ut.part.adornedPart)}},Ae||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=pe(de.uz,"Spot",pe(de.Vm,{padding:10}),rt(de.z6.Top,"TriangleUp"),rt(de.z6.Left,"TriangleLeft"),rt(de.z6.Right,"TriangleRight"),rt(de.z6.Bottom,"TriangleDown"),ft({alignment:new de.z6(.75,0)}));function nt(Ae,Ve){return(ut,Qe)=>{ut.handled=!0,ut.diagram.model.commit(At=>{At.set(Qe.part.adornedPart.data,Ae,Ve)})}}function mt(Ae,Ve){return Ve||(Ve="color"),pe(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ae,margin:1,background:"transparent",mouseEnter:(ut,Qe)=>Qe.stroke="dodgerblue",mouseLeave:(ut,Qe)=>Qe.stroke="lightgray",click:nt(Ve,Ae),contextClick:nt(Ve,Ae)})}function ht(){return[pe("ContextMenuButton",pe(de.s_,"Horizontal",mt(Ze.white,"fill"),mt(Ze.beige,"fill"),mt(Ze.extralightblue,"fill"),mt(Ze.extralightred,"fill"))),pe("ContextMenuButton",pe(de.s_,"Horizontal",mt(Ze.lightgray,"fill"),mt(Ze.lightgreen,"fill"),mt(Ze.lightblue,"fill"),mt(Ze.lightred,"fill")))]}function Mt(){return[pe("ContextMenuButton",pe(de.s_,"Horizontal",mt(Ze.black),mt(Ze.green),mt(Ze.blue),mt(Ze.red))),pe("ContextMenuButton",pe(de.s_,"Horizontal",mt(Ze.white),mt(Ze.magenta),mt(Ze.purple),mt(Ze.orange)))]}function vt(Ae,Ve){return Ve||(Ve="thickness"),pe(de.bn,"LineH",{width:16,height:16,strokeWidth:Ae,margin:1,background:"transparent",mouseEnter:(ut,Qe)=>Qe.background="dodgerblue",mouseLeave:(ut,Qe)=>Qe.background="transparent",click:nt(Ve,Ae),contextClick:nt(Ve,Ae)})}function Xt(Ae,Ve){return Ve||(Ve="dash"),pe(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ae,margin:1,background:"transparent",mouseEnter:(ut,Qe)=>Qe.background="dodgerblue",mouseLeave:(ut,Qe)=>Qe.background="transparent",click:nt(Ve,Ae),contextClick:nt(Ve,Ae)})}function Dt(){return[pe("ContextMenuButton",pe(de.s_,"Horizontal",vt(1),vt(2),vt(3),vt(4))),pe("ContextMenuButton",pe(de.s_,"Horizontal",Xt(null),Xt([2,4]),Xt([4,4])))]}function zt(Ae,Ve){return Ve||(Ve="figure"),pe(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ae,margin:1,background:"transparent",mouseEnter:(ut,Qe)=>Qe.fill="dodgerblue",mouseLeave:(ut,Qe)=>Qe.fill="lightgray",click:nt(Ve,Ae),contextClick:nt(Ve,Ae)})}Se.current.nodeTemplate.contextMenu=pe("ContextMenu",pe("ContextMenuButton",pe(de.s_,"Horizontal",zt("Rectangle"),zt("RoundedRectangle"),zt("Ellipse"),zt("Diamond"))),pe("ContextMenuButton",pe(de.s_,"Horizontal",zt("Parallelogram2"),zt("ManualOperation"),zt("Procedure"),zt("Cylinder1"))),pe("ContextMenuButton",pe(de.s_,"Horizontal",zt("Terminator"),zt("CreateRequest"),zt("Document"),zt("TriangleDown"))),ht(),Mt(),Dt()),Se.current.groupTemplate=pe(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ae,Ve)=>{var ut=Ve.addMembers(Ve.diagram.selection,!0);ut||Ve.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),pe(de.s_,"Auto",{name:"BODY"},pe(de.bn,{parameter1:10,fill:Ze.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")),pe(de.Vm,{background:"transparent",margin:20})),pe(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"))),Se.current.groupTemplate.selectionAdornmentTemplate=pe(de.uz,"Spot",pe(de.s_,"Auto",pe(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),pe(de.Vm,{margin:1.5})),ft({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Se.current.groupTemplate.contextMenu=pe("ContextMenu",ht(),Mt(),Dt()),Se.current.linkTemplate=pe(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",Ae=>Ae>=1?10:0),new de.KX("toShortLength","dir",Ae=>Ae>=1?10:0),new de.KX("points").makeTwoWay(),pe(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),pe(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",Ae=>Ae===1)),pe(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",Ae=>Ae>=1),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),pe(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",Ae=>Ae===2),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),pe(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=pe(de.uz,pe(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Pn(2)},new de.KX("pathPattern","thickness",Pn)),ft({alignmentFocus:new de.z6(0,0,-6,-4)}));function Pn(Ae){return pe(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ae+4).toString()+" H3"})}function Kt(Ae){var Ve="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ae===0?Ve="M0 0 M16 16 M0 8 L16 8":Ae===2&&(Ve="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),pe(de.bn,{geometryString:Ve,margin:2,background:"transparent",mouseEnter:(ut,Qe)=>Qe.background="dodgerblue",mouseLeave:(ut,Qe)=>Qe.background="transparent",click:nt("dir",Ae),contextClick:nt("dir",Ae)})}function en(Ae){var Ve=(ut,Qe)=>{ut.handled=!0,ut.diagram.model.commit(At=>{var $t=Qe.part.adornedPart;At.set($t.data,Ae?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ae?$t.toNode:$t.fromNode).invalidateConnectedLinks()})};return pe(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ut,Qe)=>Qe.background="dodgerblue",mouseLeave:(ut,Qe)=>Qe.background="transparent",click:Ve,contextClick:Ve})}function Fe(Ae,Ve){var ut=0,Qe=de.z6.RightSide;Ae.equals(de.z6.Top)?(ut=270,Qe=de.z6.TopSide):Ae.equals(de.z6.Left)?(ut=180,Qe=de.z6.LeftSide):Ae.equals(de.z6.Bottom)&&(ut=90,Qe=de.z6.BottomSide),Ve||(ut-=180);var At=($t,Ut)=>{$t.handled=!0,$t.diagram.model.commit(rn=>{var Ln=Ut.part.adornedPart;rn.set(Ln.data,Ve?"toSpot":"fromSpot",de.z6.stringify(Qe)),(Ve?Ln.toNode:Ln.fromNode).invalidateConnectedLinks()})};return pe(de.bn,{alignment:Ae,alignmentFocus:Ae.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ut,background:"transparent",mouseEnter:($t,Ut)=>Ut.background="dodgerblue",mouseLeave:($t,Ut)=>Ut.background="transparent",click:At,contextClick:At})}Se.current.linkTemplate.contextMenu=pe("ContextMenu",Mt(),Dt(),pe("ContextMenuButton",pe(de.s_,"Horizontal",Kt(0),Kt(1),Kt(2))),pe("ContextMenuButton",pe(de.s_,"Horizontal",pe(de.s_,"Spot",en(!1),Fe(de.z6.Top,!1),Fe(de.z6.Left,!1),Fe(de.z6.Right,!1),Fe(de.z6.Bottom,!1)),pe(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},en(!0),Fe(de.z6.Top,!0),Fe(de.z6.Left,!0),Fe(de.z6.Right,!0),Fe(de.z6.Bottom,!0)))));const Un=`{ "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 fn=["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(Ae){return console.log("shapeName:",Ae),fn.indexOf(Ae)>=0}var hn=new de.YI(st.current,{maxSelectionCount:1,linkTemplate:pe(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:pe(de.uz,"Link",{locationSpot:de.z6.Center},pe(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),pe(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),pe(de.bn,{isPanelMain:!0,strokeWidth:2}),pe(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(Ae=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ae.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(Ae){var Ve;const ut=Ae.subject.part;var Qe=(Ve=document.activeElement)==null?void 0:Ve.value;typeof Qe=="string"&&Qe.trim()===""&&Se.current.model.commit(function(At){At.set(ut.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),hn.nodeTemplate=pe(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),pe(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")),pe(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(()=>{Se.current.grid=pe(de.s_,"Grid",pe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),pe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Se.current.grid.visible=!0,Se.current.grid.gridCellStroke="darkgray",Se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Se.current,Se.current}const $e=()=>_e(this,null,function*(){var pe=Se.current.makeImage();const Ze=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:pe.src}});ve({src:Ze.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Pe()},500),be(Nt+1),()=>{Se.current=null}),[]),he.createElement("div",{ref:Wt,className:dt.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},he.createElement(Ne.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Nt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:he.createElement(Xe.Z,null,he.createElement(Rt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),he.createElement(Rt.Z,{onClick:()=>{var pe,Ze,rt=Se.current.selection.first();if(dt.current=!dt.current,document.activeElement&&rt){let ft=(Ze=(pe=document.activeElement)==null?void 0:pe.value)==null?void 0:Ze.trim();typeof ft=="string"&&Se.current.model.commit(function(nt){nt.set(rt.data,"text",ft||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}be(Nt+1)}},he.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:le},he.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.flowChartWrp},he.createElement("div",{style:{display:"flex",height:"100%"}},he.createElement("div",{style:{width:"300px",height:"100%"}},he.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),he.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:st})),he.createElement("div",{style:{flex:1,position:"relative"}},he.createElement("div",{ref:Je,style:{height:"80vh"}}))),he.createElement("div",{className:"tr"},he.createElement(Ge.ZP,{size:"large",onClick:$e,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ot=He,lt=ge(5112),ct=ge(5871);const wt=lt.ZP.Group,Ft={margin:"0 8px"};var xt=({callback:le,onCancel:ve})=>{function Se(Je){le(Je)}return ae.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Ft},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Ft},"\u884C\u6570"),ae.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(ct.Z,null)),ae.createElement("span",{style:Ft},"\u5217\u6570"),ae.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(ct.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(me.default.Item,{name:"align"},ae.createElement(wt,null,ae.createElement(lt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(lt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(lt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(lt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ge.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Bt=ge(78673),on=ge(63089),We=ge.n(on),ke=(0,ae.forwardRef)(({use3d:le,width:ve,height:Se,callback:Je,showSaveButton:st},dt)=>{const Wt=(0,ae.useRef)(),Nt=(0,ae.useRef)(),[be,Pe]=(0,ae.useState)(!1),$e=(0,ae.useRef)({id:Wt,appName:"graphing",width:ve||1e3,height:Se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Nt.current=new(We())($e.current,!0),window.onload=function(){Nt.current.inject("applet_container")}},[]);const pe=()=>{var Ze=window.ggbApplet.getPNGBase64(1,!0,72);return Je&&Je(Ze),Ze};return(0,ae.useEffect)(()=>{$e.current.appName=be?"3D":"graphing",Nt.current.inject("applet_container")},[be]),(0,ae.useEffect)(()=>{Pe(le)},[le]),(0,ae.useImperativeHandle)(dt,()=>({getImgData:pe})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Wt}),ae.createElement(Xe.Z,{align:"middle"},ae.createElement(Rt.Z,{flex:1},ae.createElement(Bt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:be,onChange:Ze=>Pe(Ze)})),ae.createElement(Rt.Z,null,ae.createElement(Ge.ZP,{size:"large",onClick:pe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),gt=ge(24638),_t=ge(1012),Ht=ge(8591);const Zt="link",Qt="upload-image",Pt="add-flowchart",Tt="draw-image",zn="add-flowchart",Gt="code-block",ln="add-table",Sn="------------",En={default:Sn,left:`:${Sn}`,center:`:${Sn}:`,right:`${Sn}:`};var Wn=ge(66991),Kn=(le,ve,Se)=>new Promise((Je,st)=>{var dt=be=>{try{Nt(Se.next(be))}catch(Pe){st(Pe)}},Wt=be=>{try{Nt(Se.throw(be))}catch(Pe){st(Pe)}},Nt=be=>be.done?Je(be.value):Promise.resolve(be.value).then(dt,Wt);Nt((Se=Se.apply(le,ve)).next())});function pn(){}let oa=0;const Dn=1e4,Xn="\u2581",jt="@\u2581\u2581@",wn="@\u2581@",Cn=`
|
|
**\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`,Jn=["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 xn(le){return/^\d+$/.test(le)?`${le}px`:le}const An=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",La={[An+"-B"]:"bold",[An+"-I"]:"italic"},Pa={[Zt]:"\u6DFB\u52A0\u94FE\u63A5",[Gt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Qt]:"\u6DFB\u52A0\u56FE\u7247",[Tt]:"\u6DFB\u52A0\u753B\u56FE",[Pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ln]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ya=({defaultValue:le="",onChange:ve,width:Se="100%",height:Je=400,miniToolbar:st=!1,isFocus:dt=!1,watch:Wt,insertTemp:Nt,mode:be="markdown",id:Pe="markdown-editor-id",showResizeBar:$e=!1,noStorage:pe=!1,showNullButton:Ze=!1,showNullProgramButton:rt=!1,hidetoolBar:ft=!1,fullScreen:nt=!1,onBlur:mt,onCMBeforeChange:ht,onFullScreen:Mt,className:vt="",disablePaste:Xt=!1,disabled:Dt=!1,disabledFill:zt=!1,placeholder:Pn="",values:Kt="",extraUse:en})=>{const[Fe,Un]=(0,ae.useState)(null),[fn,sn]=(0,ae.useState)(le),[hn,Ae]=(0,ae.useState)(Wt),[Ve,ut]=(0,ae.useState)(nt),[Qe,At]=(0,ae.useState)(""),[$t,Ut]=(0,ae.useState)(0),[rn,Ln]=(0,ae.useState)(Je),[Vn,Mn]=(0,ae.useState)(!1),Tn=(0,ae.useRef)((0,_t.Z)()),Qn=(0,ae.useRef)(!1),Rn=(0,ae.useRef)(),[$n,Yn]=(0,ae.useState)(0),[qn,bn]=(0,ae.useState)(0),In=(0,ae.useRef)(),gn=(0,ae.useRef)(),vn=(0,ae.useRef)(),On=(0,ae.useRef)(),ea=()=>Kn(void 0,null,function*(){var it;const Ke=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Tn.current}});(it=Ke==null?void 0:Ke.attachments)!=null&&it.length&&(console.log("cm:",Fe,In),Ke.attachments.map(qe=>{qe.content_type.indexOf("image")>-1?Fe.replaceSelection(``):qe.content_type.indexOf("video")>-1?Fe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):qe.content_type.indexOf("pdf")>-1?Fe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${qe.id}?type=${qe.content_type}&disposition=inline" target="_blank">${qe.name}</a>`):Fe.replaceSelection(`[${qe.name}](${ENV.API_SERVER}/api/attachments/${qe.id}?type=${qe.content_type})`)}))});(0,ae.useEffect)(()=>{const it=window.scrollY||window.pageYOffset;sn(Kt),Fe==null||Fe.setValue(Kt),window.scrollTo(0,it)},[Kt]),(0,ae.useEffect)(()=>{Mt==null||Mt(Ve)},[Ve]),(0,ae.useEffect)(()=>{if(In.current){let it=function(qe,tt){var Ot;if(Xt){tt.preventDefault();return}const nn=tt.clipboardData;if(nn){const yn=nn.types.toString(),mn=nn.items;if(yn==="Files"||nn.types.indexOf("Files")>-1){if(tt.preventDefault(),be=="stex")return;try{let Nn=mn[1];((Ot=mn[0])==null?void 0:Ot.kind)==="file"&&(Nn=mn[0]);const Bn=Nn.getAsFile(),ia=Bn.name.split(".").pop();(0,we.I)(Bn,jn=>{var pa,ha,un;jn.id?((pa=Bn==null?void 0:Bn.type)==null?void 0:pa.indexOf("image"))>-1?Ke.replaceSelection(`<img width="100%" src="/api/attachments/${jn.id}?type=${jn.content_type})" alt="" />`):((ha=Bn==null?void 0:Bn.type)==null?void 0:ha.indexOf("video"))>-1?Ke.replaceSelection(`<video width="100%" controls src="/api/attachments/${jn.id}"></video>`):((un=Bn==null?void 0:Bn.type)==null?void 0:un.indexOf("pdf"))>-1?Ke.replaceSelection(`<a href="/api/attachments/${jn.id}?type=${Bn.type}&disposition=inline" target="_blank">${Bn.name}</a>`):Jn.includes(ia)?Ke.replaceSelection(`<a href="/api/attachments/${jn.id}?type=office&disposition=inline" target="_blank">${Bn.name}</a>`):Ke.replaceSelection(`[${Bn.name}](/api/attachments/${jn.id}?type=${jn.content_type})`):(jn==null?void 0:jn.status)===401&&(Ht.ZP.warning((jn==null?void 0:jn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Nn){Ht.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ke=De().fromTextArea(In.current,{mode:be,lineNumbers:!st,lineWrapping:!0,value:le,autoCloseTags:!rt,autoCloseBrackets:!0});return Ke.on("keyup",function(qe,tt){tt.keyCode===8&&(qe.getValue()==""?Ke.setOption("placeholder",Pn):Ke.setOption("placeholder",null))}),Ke.on("keydown",function(qe,tt){if(tt.keyCode===8){var Ot=ra(qe);Ot&&tt.preventDefault()}}),dt&&Ke.focus(),Ke.on("paste",it),Ke.on("dragleave",function(qe,tt){gn.current.classList.remove("mouse-hover-md")}),Dt&&Ke.on("beforeChange",function(qe,tt){(tt.origin==="paste"||tt.origin==="+input")&&tt.cancel()}),Un(Ke),()=>{Ke.off("paste",it)}}},[]);const tn=(0,ae.useCallback)(()=>{if(gn.current)try{}catch(it){console.log(it,"---- to set md editor body height")}},[rn,gn,Ve]);(0,ae.useEffect)(()=>{function it(){let Ke=new Oe.Z(qe=>{for(let tt of qe)(tt.target.offsetHeight>0||tt.target.offsetWidth>0)&&(tn(),Fe.setSize("100%","100%"),Fe.refresh())});return Ke.observe(In.current.parentElement),Ke}if(Fe){const Ke=it();return()=>{var qe,tt;(qe=In.current)!=null&&qe.parentElement&&Ke.unobserve((tt=In.current)==null?void 0:tt.parentElement)}}},[Fe,tn]),(0,ae.useEffect)(()=>{if(Fe){let it=[];for(const[Ke,qe]of Object.entries(La)){let tt={[Ke]:()=>{_n(qe)}};it.push(tt),Fe.addKeyMap(tt)}return Rn.current=setInterval(()=>{Qn.current&&ea()},4e3),()=>{clearInterval(Rn.current);for(let Ke of it)Fe.removeKeyMap(Ke)}}},[Fe]),(0,ae.useEffect)(()=>{nt!==Ve&&ut(nt)},[nt]),(0,Wn.Z)(()=>{if(!pe&&$t>0){let it=new Date().getTime(),Ke=window.sessionStorage.getItem(Pe);it>=$t+Dn&&(!Ke||Ke!==fn)&&(window.sessionStorage.setItem(Pe,fn),Mn(!0))}},Dn),(0,ae.useEffect)(()=>{Ae(Wt)},[Fe,Wt]),(0,ae.useEffect)(()=>{Fe&&dt&&Fe.focus()},[Fe,dt]),(0,ae.useEffect)(()=>{if(hn&&Fe){let it=function(qe){let tt=qe.target;if(On.current){let Ot=tt.scrollTop/tt.scrollHeight;On.current.scrollTop=On.current.scrollHeight*Ot}};const Ke=Fe.getScrollerElement();return Ke.addEventListener("scroll",it),()=>{Ke.removeEventListener("scroll",it)}}},[Fe,hn]),(0,ae.useEffect)(()=>{if(Fe&&ht){let it=function(Ke,qe){ht(Ke,qe)};return Fe.on("beforeChange",it),()=>{Fe.off("beforeChange",it)}}},[Fe,ht]),(0,ae.useEffect)(()=>{if(Fe&&mt){let it=function(){mt(Fe.getValue())};return Fe.on("blur",it),()=>{Fe.off("blur",it)}}},[Fe,mt]);function ra(it,Ke){var qe=it.getDoc(),tt=qe.getCursor(),Ot=qe.getLine(tt.line),nn=Ot.charAt(tt.ch-1),yn=Ot.lastIndexOf("@\u2581@",tt.ch),mn=Ot.lastIndexOf("@\u2581\u2581@",tt.ch),Nn=yn>mn?yn:mn,Bn=yn>mn?3:4;if(jt.indexOf(nn)===-1)return null;if(console.log("change1:",Ke,it,Ot,tt,Nn,yn,mn,nn),Nn>=0&&tt.ch-Nn<5){var ia=Nn+Bn;return qe.replaceRange("",{line:tt.line,ch:Nn},{line:tt.line,ch:ia}),{line:tt.line,ch:ia}}return null}(0,ae.useEffect)(()=>{if(Fe){let it=function(Ke,qe){const tt=Ke.getValue();sn(tt),Ut(new Date().getTime()),Ke.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(rt?ve(tt,ga(tt)):ve(tt))};return Fe.on("change",it),()=>{Fe.off("change",it)}}},[Fe,ve]),(0,ae.useEffect)(()=>{if(Fe)if(le==null)Fe.setValue(""),sn("");else{const it=window.scrollY||window.pageYOffset;le!==Fe.getValue()&&(Fe.setValue(le),sn(le),Fe.setCursor(Dt?1:Fe.lineCount(),0),window.scrollTo(0,it))}},[Fe,le]);const _n=(0,ae.useCallback)(it=>{const Ke=Fe.getCursor(),qe=Fe.getSelection();let tt=qe.split(`
|
|
`);switch(it){case"bold":return Fe.replaceSelection("**"+qe+"**"),qe===""&&Fe.setCursor(Ke.line,Ke.ch+2),Fe.focus();case"italic":return Fe.replaceSelection("*"+qe+"*"),qe===""&&Fe.setCursor(Ke.line,Ke.ch+1),Fe.focus();case"code":return Fe.replaceSelection("`"+qe+"`"),qe===""&&Fe.setCursor(Ke.line,Ke.ch+1),Fe.focus();case"inline-latex":return At("inline-latex"),Fe.focus();case"latex":return Fe.replaceSelection("```latex\n"+qe+"\n```"),Fe.setCursor(Ke.line+1,qe.length+1),Fe.focus();case"line-break":return Fe.replaceSelection(`<br/>
|
|
`),Fe.focus();case"list-ul":return qe===""?Fe.replaceSelection("- "+qe):Fe.replaceSelection(tt.map(Ot=>Ot===""?"":`- ${Ot}`).join(`
|
|
`)),Fe.focus();case"list-ol":return qe===""?Fe.replaceSelection("1. "+qe):Fe.replaceSelection(tt.map((Ot,nn)=>Ot===""?"":`${nn+1}. ${Ot}`).join(`
|
|
`)),Fe.focus();case"add-null-ch":return qe===""&&Fe.setCursor(Ke.line,Ke.ch),Fe.replaceSelection(Xn),Fe.focus();case"add-signal":return qe===""&&Fe.setCursor(Ke.line,Ke.ch),Fe.replaceSelection(wn),Fe.focus();case"add-multiple":return qe===""&&Fe.setCursor(Ke.line,Ke.ch),Fe.replaceSelection(jt),Fe.focus();case"inster-template-1":return qe===""&&Fe.setCursor(Ke.line,Ke.ch),Fe.replaceSelection(Cn),Fe.focus();case"eraser":return Fe.setValue(""),Fe.focus();case"trigger-watch":return Ae(!hn),Fe.focus();case"trigger-full-screen":return ut(!Ve),Fe.focus();case Zt:At(Zt);return;case Gt:At(Gt);return;case Qt:At(Qt);return;case Tt:At(Tt);return;case"maths-latex":At("maths-latex");return;case Pt:At(Pt);return;case ln:At(ln);return;default:throw new Error}},[Fe,hn,Ve]),Gn=(0,ae.useCallback)((it,Ke)=>{var qe,tt,Ot,nn,yn,mn;switch(At(""),Qe){case Zt:const{title:pa,link:ha}=it;return Fe.replaceSelection(`[${pa}](${ha})`),Fe.focus();case Gt:const{language:un,content:Et}=it;return Fe.replaceSelection(["```"+un,Et,"```"].join(`
|
|
`)),Fe.focus();case"maths-latex":for(var Nn=atob(it),Bn=new Uint8Array(Nn.length),ia=0;ia<Nn.length;ia++)Bn[ia]=Nn.charCodeAt(ia);var jn=new Blob([Bn],{type:"image/png"});(0,we.I)(jn,aa=>{aa.id?Fe.replaceSelection(``):(aa==null?void 0:aa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Fe.replaceSelection("`$$"+it+"$$`");break;case Qt:case Tt:case zn:const{src:na,alt:la}=it,Yt=Ke,ca=(Ot=(tt=(qe=Yt==null?void 0:Yt.name)==null?void 0:qe.split("."))==null?void 0:tt.pop)==null?void 0:Ot.call(tt);return((nn=Yt==null?void 0:Yt.type)==null?void 0:nn.indexOf("image"))>-1||!(Yt!=null&&Yt.type)?Yt.align||Yt.width?Fe.replaceSelection(`<p style="text-align:${Yt.align||"initial"}"><img width="${Yt.width?Yt.width+"%":"initial"}" src="${na}" alt="${la||""}" /></p>`):Fe.replaceSelection(`<img width="100%" src="${na}" alt="${la||""}" />`):((yn=Yt==null?void 0:Yt.type)==null?void 0:yn.indexOf("video"))>-1?Fe.replaceSelection(`<video width="100%" controls src="${na}"></video>`):((mn=Yt==null?void 0:Yt.type)==null?void 0:mn.indexOf("pdf"))>-1?Fe.replaceSelection(`<a href="${na}?type=${Yt.type}&disposition=inline" target="_blank">${Yt.name}</a>`):Jn.includes(ca)?Fe.replaceSelection(`<a href="${na}?type=office&disposition=inline" target="_blank">${Yt.name}</a>`):Fe.replaceSelection(`[${Yt.name}](${na})`),Fe.focus();case ln:const{row:Sa,col:sa,align:Ba}=it;let ba=`
|
|
`;for(let aa=0;aa<Sa;aa++){let Fa=[],Ea=[];for(let Ca=0;Ca<sa;Ca++)aa===1&&Ea.push(En[Ba]),Fa.push(" ");aa===1&&(ba+=`| ${Ea.join(" | ")} |
|
|
`),ba+=`| ${Fa.join(sa===1?"":" | ")} |
|
|
`}return Fe.replaceSelection(ba+`
|
|
`),Fe.focus();default:throw new Error}},[Fe,Qe]),fa=(0,ae.useMemo)(()=>{switch(Qe){case Zt:return ae.createElement(cn,{callback:Gn,onCancel:kn});case Gt:return ae.createElement(Fn.Z,{callback:Gn,onCancel:kn});case Qt:return ae.createElement(we.Z,{callback:Gn,onCancel:kn});case Pt:return ae.createElement(ot,{callback:Gn,onCancel:kn});case ln:return ae.createElement(xt,{callback:Gn,onCancel:kn});case"maths-latex":return ae.createElement(ke,{showSaveButton:!0,callback:Gn});case"inline-latex":return ae.createElement(gt.Z,{showSaveButton:!0,callback:Gn});default:return null}},[Qe]);function kn(){At("")}(0,ae.useEffect)(()=>{if(vn.current){let it=function(yn){Ot=!0,nn=yn.pageY},Ke=function(){Ot=!1},qe=function(yn){if(Ot){let mn=yn.pageY-nn;mn<0&&(mn=0),mn>300&&(mn=300);let Nn=Je+mn+"px";Ln(Nn)}},tt=vn.current,Ot=!1,nn=0;return tt.addEventListener("mousedown",it),document.addEventListener("mousemove",qe),document.addEventListener("mouseup",Ke),()=>{tt.removeEventListener("mousedown",it),document.removeEventListener("mousemove",qe),document.removeEventListener("mouseup",Ke)}}},[Fe,vn]),(0,ae.useEffect)(()=>{Ln(Je)},[Je]);const ma=xn(Se),ta=xn(rn),Hn={width:ma,height:ta},Zn=(0,ae.useMemo)(()=>{if($t){let it=new Date($t),Ke=it.getHours(),qe=it.getMinutes(),tt=it.getSeconds();return Ke=Ke<10?"0"+Ke:Ke,qe=qe<10?"0"+qe:qe,tt=tt<10?"0"+tt:tt,`${Ke}:${qe}:${tt}`}return 0},[$t]),ga=it=>{const Ke=[];if(rt){let qe=-1;it=it.replace(/(@▁▁@|@▁@)/g,function(tt,Ot,nn){Ke.push({multiLine:tt!==wn})})}return Ke};function da(){window.sessionStorage.removeItem(Pe),Mn(!1),Ut(0)}function xa(){Mn(!1),Ut(0),Fe.setValue(window.sessionStorage.getItem(Pe))}(0,ae.useEffect)(()=>{Pa[Qe]&&Qe!==Tt&&Qe!==Pt&&setTimeout(()=>{const it=document.getElementsByClassName("markdown-popup-form")[0],Ke=window.innerWidth/2-it.offsetWidth/2,qe=window.innerHeight/2-it.offsetHeight/2;Yn(Ke),bn(qe)},0)},[Qe]);const wa=it=>{it.preventDefault();const Ke=it.clientX-$n,qe=it.clientY-qn;document.body.onmousemove=tt=>{let Ot=tt.clientX-Ke,nn=tt.clientY-qe;const yn=document.getElementsByClassName("markdown-popup-form")[0],mn=window.innerWidth-yn.offsetWidth,Nn=window.innerHeight-yn.offsetHeight;Ot=Math.max(0,Math.min(Ot,mn)),nn=Math.max(0,Math.min(nn,Nn)),ua(tt.clientX,tt.clientY,Ke,qe)&&(Yn(Ot),bn(nn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ua=(it,Ke,qe,tt)=>{const Ot=document.body.clientHeight,nn=document.body.clientWidth;return it<20&&qe>it||it>nn-20&&qe<it||Ke<20&&tt>Ke||Ke>Ot-20&&tt<Ke?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:gn},ae.createElement("div",{className:`markdown-editor-container ${vt} ${hn?"on-preview":""} ${st?"mini":""} ${Ve?"full-screen":""}`,style:Hn},ae.createElement(ie,{insertTemp:Nt,watch:hn,fullScreen:Ve,showNullButton:Ze,showNullProgramButton:rt,onActionCallback:_n,hidetoolBar:ft,extraUse:en}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:In,placeholder:Pn})),hn?ae.createElement("div",{ref:On,className:"preview-container"},be==="stex"&&ae.createElement(Ie,{value:fn}),be!=="stex"&&ae.createElement(Te.Z,{disabledFill:zt,showProgramFill:rt,value:fn})):null))),$e?ae.createElement("a",{ref:vn,className:"editor-resize"}):null,Qe===Tt&&ae.createElement(yt,{callback:Gn,onCancel:kn}),Qe===Pt&&ae.createElement(ot,{callback:Gn,onCancel:kn}),ae.createElement(ce.Z,null,Pa[Qe]&&Qe!==Tt&&Qe!==Pt?ae.createElement(Ne.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:$n,top:qn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:wa},Pa[Qe]),open:!0,onCancel:kn,footer:null,destroyOnClose:!0,width:Qe===Pt?"1200px":null,height:Qe===Pt?"80vh":null,className:"markdown-popup-form"},fa):null))}},90443:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return re},I:function(){return ce}});var ae=ge(78241),fe=ge(8591),De=ge(92832),Oe=ge(81327),ue=ge(5871),Ee=ge(5112),se=ge(3113),Re=ge(88457),Be=ge(59301),Me=ge(81779),Te=ge(59301),Ie=Object.defineProperty,Ce=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(me,xe,Ge)=>xe in me?Ie(me,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):me[xe]=Ge,E=(me,xe)=>{for(var Ge in xe||(xe={}))y.call(xe,Ge)&&b(me,Ge,xe[Ge]);if(a)for(var Ge of a(xe))x.call(xe,Ge)&&b(me,Ge,xe[Ge]);return me},z=(me,xe)=>Ce(me,ne(xe));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:me,onCancel:xe})=>{const[Ge]=ee();let at=(0,Be.useRef)();function pt(bt){at.current.width=Ge.getFieldValue("width"),at.current.align=Ge.getFieldValue("align"),me(bt,at.current)}function kt(bt,It){if(bt.status===-1){fe.ZP.error(bt.message);return}Ge.setFieldsValue({src:`/api/attachments/${bt.id}`,type:It.type})}function St(bt){let It=bt.target.files[0];at.current=It,ce(It,kt)}return Te.createElement(ae.default,z(E({form:Ge},oe),{className:"upload-image-panel",onFinish:pt,style:{width:470,overflow:"hidden"}}),Te.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(De.default,{style:te})),Te.createElement(ie,{onFileChange:St}))),Te.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(De.default,{style:{width:264}})),Te.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Te.createElement(Oe.Z,null,Te.createElement(ae.default.Item,{name:"width",style:{margin:0}},Te.createElement(ue.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Te.createElement(Ee.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Te.createElement("aside",null,Te.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(se.ZP,{type:"default",onClick:xe},"\u53D6\u6D88"))))};function ie({onFileChange:me}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:me}))}function ce(me,xe){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Me.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ge=new FormData;Ge.append("editormd-image-file",me),Ge.append("file_param_name","editormd-image-file"),Ge.append("byxhr","true");var at=new window.XMLHttpRequest;at.withCredentials=!0,at.addEventListener("load",function(pt){xe(JSON.parse(pt.target.responseText),me)},!1),at.addEventListener("error",function(pt){console.error(pt)},!1),at.open("POST",`${Re.KI}/api/attachments.json`),at.send(Ge)}},81123:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return De}});var ae=ge(59301),fe=ge(4676);class De extends ae.Component{constructor(ue){super(ue);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,fe.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},66991:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return fe}});var ae=ge(59301);function fe(De,Oe){const ue=(0,ae.useRef)();(0,ae.useEffect)(()=>{ue.current=De}),(0,ae.useEffect)(()=>{function Ee(){ue.current()}if(Oe!==null){let se=setInterval(Ee,Oe);return()=>clearInterval(se)}},[Oe])}},650:function(ye,Ye,ge){"use strict";ge.r(Ye),ge.d(Ye,{default:function(){return on}});var ae=ge(59301),fe=ge(95392),De=ge(95237),Oe=ge(43604),ue=ge(56656),Ee=ge.n(ue),se=ge(20834),Re=ge(44e3),Be=ge(71418),Me=ge(26724),Te=ge.n(Me),Ie=ge(78323),Ce=ge(76818),ne={flex_box_center:"flex_box_center___OfYbN",flex_space_between:"flex_space_between___hrkuU",flex_box_vertical_center:"flex_box_vertical_center___jxUNa",flex_box_center_end:"flex_box_center_end___toHnG",flex_box_column:"flex_box_column___hO761",userInfo:"userInfo___AOrZJ",navInfo:"navInfo___eCDON",actived:"actived___FDrE1",topBar:"topBar___L5Hq4",tabs:"tabs___K46zs",active:"active___hMEvd",list:"list____5qRM",tags:"tags___R3aHm",searchWrp:"searchWrp___AlrVM",listMessage:"listMessage___DSDfV",deleteMsg:"deleteMsg___omx9n",listRightMessage:"listRightMessage___lZyYc",content:"content___vaWQf",msg:"msg___BhVg6",msgDate:"msgDate___oRFwZ"},a=Object.defineProperty,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=(We,je,ke)=>je in We?a(We,je,{enumerable:!0,configurable:!0,writable:!0,value:ke}):We[je]=ke,z=(We,je)=>{for(var ke in je||(je={}))x.call(je,ke)&&E(We,ke,je[ke]);if(y)for(var ke of y(je))b.call(je,ke)&&E(We,ke,je[ke]);return We},ee=(We,je)=>{var ke={};for(var gt in We)x.call(We,gt)&&je.indexOf(gt)<0&&(ke[gt]=We[gt]);if(We!=null&&y)for(var gt of y(We))je.indexOf(gt)<0&&b.call(We,gt)&&(ke[gt]=We[gt]);return ke},te=(We,je,ke)=>new Promise((gt,_t)=>{var Ht=Pt=>{try{Qt(ke.next(Pt))}catch(Tt){_t(Tt)}},Zt=Pt=>{try{Qt(ke.throw(Pt))}catch(Tt){_t(Tt)}},Qt=Pt=>Pt.done?gt(Pt.value):Promise.resolve(Pt.value).then(Ht,Zt);Qt((ke=ke.apply(We,je)).next())});const{SubMenu:oe}=se.default,{Sider:re,Content:ie}=Re.default,ce=We=>{var je=We,{messages:ke,globalSetting:gt,loading:_t,user:Ht,dispatch:Zt}=je,Qt=ee(je,["messages","globalSetting","loading","user","dispatch"]);const Pt=(0,fe.useParams)(),Tt=(0,fe.useLocation)(),{userInfo:zn}=Ht,[Gt,ln]=(0,ae.useState)(!1),[Sn,En]=(0,ae.useState)({per_page:20,page:1}),[Wn,Kn]=(0,ae.useState)({per_page:20,page:1}),[pn,oa]=(0,ae.useState)([]);(0,ae.useEffect)(()=>{Sn.page=1,Xn()},[Pt.userId]);const Dn=jt=>{var wn,Cn;fe.history.push(`/messages/${(wn=Ht==null?void 0:Ht.userInfo)==null?void 0:wn.login}/message_detail?target_ids=${(Cn=jt==null?void 0:jt.target)==null?void 0:Cn.id}`)},Xn=()=>te(void 0,null,function*(){var jt;ln(!1);const wn=yield Zt({type:"messages/getPrivateMessages",payload:z(z({},Pt),Wn)});wn!=null&&wn.private_messages&&(oa([...pn,...wn.private_messages]),((jt=wn.private_messages)==null?void 0:jt.length)===20&&ln(!0))});return ae.createElement("aside",{className:ne.listRightMessage},ae.createElement(Te(),{loadMore:()=>{Wn.page++,Xn()},hasMore:Gt,useWindow:!1},ae.createElement(Be.Z,{spinning:_t["messages/getPrivateMessages"]},ae.createElement("div",{className:"minH500"},pn==null?void 0:pn.map(function(jt,wn){var Cn,Jn;return ae.createElement("aside",{key:wn},ae.createElement(De.Z,{onClick:()=>Dn(jt)},ae.createElement(Oe.Z,{flex:"58px"},ae.createElement("img",{src:Ie.Z.IMG_SERVER+"/images/"+((Cn=jt==null?void 0:jt.target)==null?void 0:Cn.image_url),alt:""})),ae.createElement(Oe.Z,{flex:"1"},ae.createElement(De.Z,null,ae.createElement(Oe.Z,{span:24},ae.createElement(De.Z,null,ae.createElement(Oe.Z,{flex:"1"},ae.createElement("span",{className:ne.userName},(Jn=jt==null?void 0:jt.target)==null?void 0:Jn.name)),ae.createElement(Oe.Z,null,ae.createElement("span",{className:"ml15 c-grey-c"},Ee()(jt.send_time).fromNow())))),ae.createElement(Oe.Z,{span:24},ae.createElement("div",{className:["mt15",ne.content].join(" ")},ae.createElement(Ce.Z,{value:jt.content||""})))))))})))))};var me=(0,fe.connect)(({messages:We,loading:je,user:ke,globalSetting:gt})=>({messages:We,globalSetting:gt,user:ke,loading:je.effects}))(ce),xe=ge(78241),Ge=ge(8591),at=ge(3113),pt=ge(48775),kt=ge(63949),St=ge(62889),bt=ge(88871),It=ge(27035),dn=Object.defineProperty,qt=Object.defineProperties,an=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,we=(We,je,ke)=>je in We?dn(We,je,{enumerable:!0,configurable:!0,writable:!0,value:ke}):We[je]=ke,Ne=(We,je)=>{for(var ke in je||(je={}))cn.call(je,ke)&&we(We,ke,je[ke]);if(Jt)for(var ke of Jt(je))Fn.call(je,ke)&&we(We,ke,je[ke]);return We},Xe=(We,je)=>qt(We,an(je)),Lt=(We,je)=>{var ke={};for(var gt in We)cn.call(We,gt)&&je.indexOf(gt)<0&&(ke[gt]=We[gt]);if(We!=null&&Jt)for(var gt of Jt(We))je.indexOf(gt)<0&&Fn.call(We,gt)&&(ke[gt]=We[gt]);return ke},Ue=(We,je,ke)=>new Promise((gt,_t)=>{var Ht=Pt=>{try{Qt(ke.next(Pt))}catch(Tt){_t(Tt)}},Zt=Pt=>{try{Qt(ke.throw(Pt))}catch(Tt){_t(Tt)}},Qt=Pt=>Pt.done?gt(Pt.value):Promise.resolve(Pt.value).then(Ht,Zt);Qt((ke=ke.apply(We,je)).next())});const{SubMenu:yt}=se.default,{Sider:de,Content:et}=Re.default,Ct=We=>{var je=We,{messages:ke,globalSetting:gt,loading:_t,user:Ht,dispatch:Zt}=je,Qt=Lt(je,["messages","globalSetting","loading","user","dispatch"]);const Pt=(0,fe.useParams)(),[Tt,zn]=(0,fe.useSearchParams)(),[Gt,ln]=(0,ae.useState)({per_page:20,page:1}),[Sn,En]=(0,ae.useState)([]),[Wn,Kn]=(0,ae.useState)(!1),[pn,oa]=(0,ae.useState)(!1),[Dn,Xn]=(0,ae.useState)(""),jt=(0,ae.useRef)(),[wn]=xe.default.useForm();let[Cn,Jn]=(0,ae.useState)([]),[xn,va]=(0,ae.useState)(!0);(0,ae.useEffect)(()=>{Gt.page=1,An()},[Tt.get("target_ids")]);const An=()=>Ue(void 0,null,function*(){Kn(!1);const le=yield Zt({type:"messages/getPrivateMessageDetails",payload:Ne(Xe(Ne({},Pt),{target_id:Tt.get("target_ids")}),Gt)});le!=null&&le.messages&&(Cn=le==null?void 0:le.messages,(Cn==null?void 0:Cn.length)===20&&setTimeout(()=>{Kn(!0),va(!1)},500),Gt.page===1?En([...le==null?void 0:le.messages.reverse()]):En([...Sn,...le==null?void 0:le.messages.reverse()]))});(0,ae.useEffect)(()=>{console.log("newData.length:",Gt,Cn.length,Cn),Gt.page===1&&xn&&(jt.current.scrollTop=jt.current.scrollHeight)},[Sn]),(0,ae.useEffect)(()=>{jt.current.onclick=le=>{le.target.nodeName==="IMG"&&le.target.alt!==""&&It.Z.publish("preview-image",le.target.src)}},[]);const La=(le,ve)=>Ue(void 0,null,function*(){(yield(0,St.dl)(Xe(Ne({},Pt),{id:le.id}))).status===0&&(Sn.splice(ve,1),En([...Sn]))}),Pa=()=>Ue(void 0,null,function*(){if(Dn==="")return Ge.ZP.error("\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u590D"),!1;Xn(""),oa(!0),yield(0,St.w0)(Xe(Ne({},Pt),{content:Dn,target_id:Tt.get("target_ids")})),oa(!1),Gt.page=1,wn.resetFields(),An()}),ya=(0,ae.useMemo)(()=>{const{userInfo:le}=Ht||{};return(le==null?void 0:le.is_teacher)&&(le==null?void 0:le.professional_certification)},[Ht]);return ae.createElement("section",null,ae.createElement("aside",{className:ne.listMessage,ref:jt},ae.createElement(Te(),{isReverse:!0,loadMore:()=>{Gt.page++,An()},hasMore:Wn,useWindow:!1},!Wn&&ae.createElement("div",{className:"tc mt20 animated fadeIn"},ae.createElement("span",{className:ne.msgDate},"\u6CA1\u6709\u4FE1\u606F\u4E86\uFF5E\uFF5E")),ae.createElement(Be.Z,{spinning:_t["messages/getPrivateMessageDetails"]},ae.createElement("aside",{className:"minH500"},Sn==null?void 0:Sn.map(function(le,ve){var Se;return ae.createElement("aside",{key:ve},ae.createElement(De.Z,{justify:"center"},ae.createElement(Oe.Z,{flex:"1",className:"tc"},ae.createElement("span",{className:ne.msgDate},Ee()(le.send_time).format("YYYY-MM-DD")))),ae.createElement(De.Z,{onClick:()=>(0,kt._g)(le)},ae.createElement(Oe.Z,{flex:"58px"},ae.createElement("img",{src:Ie.Z.IMG_SERVER+"/images/"+((Se=le==null?void 0:le.sender)==null?void 0:Se.image_url),alt:""})),ae.createElement(Oe.Z,null,ae.createElement("div",{className:ne.msg},ae.createElement(Ce.Z,{value:le.content||""}),ae.createElement("span",{onClick:()=>La(le,ve),className:["current",ne.deleteMsg].join(" ")},"\u5220\u9664"))),ae.createElement(Oe.Z,null,ae.createElement("span",{className:"c-grey-c ml10"},Ee()(le.send_time).format("HH:mm")))))}))))),ae.createElement("aside",{className:"pl30 pr30 mb30 mt30"},ya?ae.createElement(xe.default,{form:wn},ae.createElement(xe.default.Item,{name:"content"},ae.createElement(bt.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F60\u7684\u56DE\u590D",height:150,onChange:le=>Xn(le)})),ae.createElement(De.Z,null,ae.createElement(Oe.Z,{flex:"1"},ae.createElement("span",{className:"c-red font14"},"\u5728\u95EE\u9898\u53CD\u9988\u65F6\uFF0C\u8BF7\u540C\u65F6\u53D1\u9001\u95EE\u9898\u53D1\u751F\u9875\u7684\u7F51\u5740\u94FE\u63A5\uFF0C\u4EE5\u4FBF\u6211\u4EEC\u9AD8\u6548\u7684\u4E3A\u60A8\u670D\u52A1")),ae.createElement(Oe.Z,null,ae.createElement(at.ZP,{loading:pn,type:"primary",onClick:()=>Pa()},"\u56DE\u590D")))):ae.createElement("p",{className:"c-red font14",style:{textAlign:"center"}},"\u4EC5\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u53EF\u4EE5\u4F7F\u7528\u79C1\u4FE1\u529F\u80FD")),ae.createElement(pt.Z,null))};var Vt=(0,fe.connect)(({messages:We,loading:je,user:ke,globalSetting:gt})=>({messages:We,globalSetting:gt,user:ke,loading:je.effects}))(Ct),Rt=ge(99472),ze=Object.defineProperty,Le=Object.defineProperties,he=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,lt=(We,je,ke)=>je in We?ze(We,je,{enumerable:!0,configurable:!0,writable:!0,value:ke}):We[je]=ke,ct=(We,je)=>{for(var ke in je||(je={}))He.call(je,ke)&<(We,ke,je[ke]);if(_e)for(var ke of _e(je))ot.call(je,ke)&<(We,ke,je[ke]);return We},wt=(We,je)=>Le(We,he(je)),Ft=(We,je)=>{var ke={};for(var gt in We)He.call(We,gt)&&je.indexOf(gt)<0&&(ke[gt]=We[gt]);if(We!=null&&_e)for(var gt of _e(We))je.indexOf(gt)<0&&ot.call(We,gt)&&(ke[gt]=We[gt]);return ke},xt=(We,je,ke)=>new Promise((gt,_t)=>{var Ht=Pt=>{try{Qt(ke.next(Pt))}catch(Tt){_t(Tt)}},Zt=Pt=>{try{Qt(ke.throw(Pt))}catch(Tt){_t(Tt)}},Qt=Pt=>Pt.done?gt(Pt.value):Promise.resolve(Pt.value).then(Ht,Zt);Qt((ke=ke.apply(We,je)).next())});const Bt=We=>{var je=We,{messages:ke,globalSetting:gt,loading:_t,user:Ht,dispatch:Zt}=je,Qt=Ft(je,["messages","globalSetting","loading","user","dispatch"]),Pt;const[Tt,zn]=(0,fe.useSearchParams)(),Gt=(0,fe.useParams)(),{userInfo:ln}=Ht,{tidingsList:Sn,privateMessageDetails:En}=ke,[Wn,Kn]=(0,ae.useState)({per_page:20,page:1}),[pn,oa]=(0,ae.useState)({per_page:20,page:1}),[Dn,Xn]=(0,ae.useState)([]),[jt,wn]=(0,ae.useState)([]);(0,ae.useEffect)(()=>{Wn.page=1},[Gt.userId]);const Cn=()=>xt(void 0,null,function*(){const xn=yield Zt({type:"messages/getPrivateMessageDetails",payload:wt(ct({},Gt),{target_id:Tt.get("target_ids")})});xn!=null&&xn.messages&&Xn(xn.messages)}),Jn=()=>xt(void 0,null,function*(){const xn=yield Zt({type:"messages/getPrivateMessages",payload:ct(ct({},Gt),pn)});xn!=null&&xn.private_messages&&wn(xn.private_messages)});return ae.createElement("section",{className:ne.bg},ae.createElement("section",{className:"edu-container mt20"},ae.createElement(De.Z,{gutter:[20,20]},ae.createElement(Rt.Z,null),ae.createElement(Oe.Z,{flex:"1"},ae.createElement("aside",{className:"bg-white"},ae.createElement("aside",{className:["font16",ne.topBar].join(" ")},ae.createElement(De.Z,null,ae.createElement(Oe.Z,{flex:"30px",className:"tc"},ae.createElement(fe.Link,{to:`/messages/${Gt.userId}/private_messages`,className:"iconfont icon-zuojiantou c-black pl10"})),ae.createElement(Oe.Z,{flex:"1",className:"tc"},(Pt=En==null?void 0:En.target)==null?void 0:Pt.name,"\u4E0E\u4F60\u7684\u79C1\u4FE1"),ae.createElement(Oe.Z,{flex:"290px",className:"tl"},ae.createElement("span",{className:"pl30"},"\u79C1\u4FE1\u5217\u8868")))),ae.createElement(De.Z,null,ae.createElement(Oe.Z,{flex:"1"},ae.createElement(Vt,null)),ae.createElement(Oe.Z,{flex:"290px"},ae.createElement(me,null))))))))};var on=(0,fe.connect)(({messages:We,loading:je,user:ke,globalSetting:gt})=>({messages:We,globalSetting:gt,user:ke,loading:je.effects}))(Bt)},99472:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return E}});var ae=ge(59301),fe=ge(95392),De=ge(20834),Oe=ge(44e3),ue=ge(43604),Ee=ge(78323),se={flex_box_center:"flex_box_center___cQVhO",flex_space_between:"flex_space_between___L36a6",flex_box_vertical_center:"flex_box_vertical_center___sIHwG",flex_box_center_end:"flex_box_center_end___OqNyE",flex_box_column:"flex_box_column___Ct7XG",userInfo:"userInfo____uyMZ",navInfo:"navInfo___acXs6",actived:"actived___WhZza",newTip:"newTip___Jdd6B"},Re=Object.defineProperty,Be=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,Ie=(z,ee,te)=>ee in z?Re(z,ee,{enumerable:!0,configurable:!0,writable:!0,value:te}):z[ee]=te,Ce=(z,ee)=>{for(var te in ee||(ee={}))Me.call(ee,te)&&Ie(z,te,ee[te]);if(Be)for(var te of Be(ee))Te.call(ee,te)&&Ie(z,te,ee[te]);return z},ne=(z,ee)=>{var te={};for(var oe in z)Me.call(z,oe)&&ee.indexOf(oe)<0&&(te[oe]=z[oe]);if(z!=null&&Be)for(var oe of Be(z))ee.indexOf(oe)<0&&Te.call(z,oe)&&(te[oe]=z[oe]);return te};const{SubMenu:a}=De.default,{Sider:y,Content:x}=Oe.default,b=z=>{var ee=z,{messages:te,globalSetting:oe,loading:re,user:ie,dispatch:ce}=ee,me=ne(ee,["messages","globalSetting","loading","user","dispatch"]);const xe=(0,fe.useParams)(),{userInfo:Ge}=ie,at=(0,fe.useLocation)(),{tidingsList:pt,privateMessage:kt,unreadInfo:St}=te,[bt,It]=(0,ae.useState)({per_page:10,page:1});(0,ae.useEffect)(()=>{dn()},[xe.userId]);const dn=()=>{ce({type:"messages/unreadMessageInfo",payload:Ce(Ce({},bt),xe)})};return ae.createElement(ue.Z,{flex:"264px"},ae.createElement("aside",{className:se.userInfo},ae.createElement("img",{className:"mt40",src:Ee.Z.IMG_SERVER+"/images/"+(Ge==null?void 0:Ge.image_url)}),ae.createElement("p",{className:"font24 mt10"},Ge==null?void 0:Ge.username),ae.createElement("p",{className:"mt20"},Ge==null?void 0:Ge.user_identity)),ae.createElement("ul",{className:se.navInfo},ae.createElement(fe.Link,{to:`/messages/${Ge==null?void 0:Ge.login}/user_tidings`},ae.createElement("li",{className:at.pathname.indexOf("user_tidings")>-1&&se.actived},"\u6D88\u606F",!!(St!=null&&St.unread_tiding_count)&&ae.createElement("span",{className:se.newTip},St==null?void 0:St.unread_tiding_count))),ae.createElement(fe.Link,{to:`/messages/${Ge==null?void 0:Ge.login}/private_messages`},ae.createElement("li",{className:(at.pathname.indexOf("private_messages")>-1||at.pathname.indexOf("message_detail")>-1)&&se.actived},"\u79C1\u4FE1",!!(St!=null&&St.unread_message_count)&&ae.createElement("span",{className:se.newTip},St==null?void 0:St.unread_message_count)))))};var E=(0,fe.connect)(({messages:z,loading:ee,user:te,globalSetting:oe})=>({messages:z,globalSetting:oe,user:te,loading:ee.effects}))(b)},11611:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return Nt}});var ae=ge(59301),fe=ge(15277),De=ge(92310),Oe=ge.n(De),ue=ge(54476),Ee=ge(33885),se=ge(20068),Re=ge(42978),Be=ge(76190),Me=ge(75931),Te=ge(55468),Ie=ge(18929),Ce=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ne=ae.createContext(null),a=0;function y(be,Pe){var $e=ae.useState(function(){return a+=1,String(a)}),pe=(0,Re.Z)($e,1),Ze=pe[0],rt=ae.useContext(ne),ft={data:Pe,canPreview:be};return ae.useEffect(function(){if(rt)return rt.register(Ze,ft)},[]),ae.useEffect(function(){rt&&rt.register(Ze,ft)},[be,Pe]),Ze}function x(be){return new Promise(function(Pe){var $e=document.createElement("img");$e.onerror=function(){return Pe(!1)},$e.onload=function(){return Pe(!0)},$e.src=be})}function b(be){var Pe=be.src,$e=be.isCustomPlaceholder,pe=be.fallback,Ze=(0,ae.useState)($e?"loading":"normal"),rt=(0,Re.Z)(Ze,2),ft=rt[0],nt=rt[1],mt=(0,ae.useRef)(!1),ht=ft==="error";(0,ae.useEffect)(function(){x(Pe).then(function(Dt){Dt||nt("error")})},[Pe]),(0,ae.useEffect)(function(){$e&&!mt.current?nt("loading"):ht&&nt("normal")},[Pe]);var Mt=function(){nt("normal")},vt=function(zt){mt.current=!1,ft==="loading"&&zt!=null&&zt.complete&&(zt.naturalWidth||zt.naturalHeight)&&(mt.current=!0,Mt())},Xt=ht&&pe?{src:pe}:{onLoad:Mt,src:Pe};return[vt,Xt,ft]}var E=ge(86923),z=ge(8224),ee=ge(10228),te=ge(48736);function oe(be,Pe,$e,pe){var Ze=Pe+$e,rt=($e-pe)/2;if($e>pe){if(Pe>0)return(0,se.Z)({},be,rt);if(Pe<0&&Ze<pe)return(0,se.Z)({},be,-rt)}else if(Pe<0||Ze>pe)return(0,se.Z)({},be,Pe<0?rt:-rt);return{}}function re(be,Pe,$e,pe){var Ze=(0,Te.g1)(),rt=Ze.width,ft=Ze.height,nt=null;return be<=rt&&Pe<=ft?nt={x:0,y:0}:(be>rt||Pe>ft)&&(nt=(0,Ee.Z)((0,Ee.Z)({},oe("x",$e,be,rt)),oe("y",pe,Pe,ft))),nt}var ie=ge(13697),ce=ge(16089),me={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function xe(be,Pe,$e,pe){var Ze=(0,ae.useRef)(null),rt=(0,ae.useRef)([]),ft=(0,ae.useState)(me),nt=(0,Re.Z)(ft,2),mt=nt[0],ht=nt[1],Mt=function(zt){ht(me),pe&&!(0,ie.Z)(me,mt)&&pe({transform:me,action:zt})},vt=function(zt,Pn){Ze.current===null&&(rt.current=[],Ze.current=(0,ce.Z)(function(){ht(function(Kt){var en=Kt;return rt.current.forEach(function(Fe){en=(0,Ee.Z)((0,Ee.Z)({},en),Fe)}),Ze.current=null,pe==null||pe({transform:en,action:Pn}),en})})),rt.current.push((0,Ee.Z)((0,Ee.Z)({},mt),zt))},Xt=function(zt,Pn,Kt,en){var Fe=be.current,Un=Fe.width,fn=Fe.height,sn=Fe.offsetWidth,hn=Fe.offsetHeight,Ae=Fe.offsetLeft,Ve=Fe.offsetTop,ut=zt,Qe=mt.scale*zt;Qe>$e?(ut=$e/mt.scale,Qe=$e):Qe<Pe&&(ut=Pe/mt.scale,Qe=Pe);var At=Kt!=null?Kt:innerWidth/2,$t=en!=null?en:innerHeight/2,Ut=ut-1,rn=Ut*Un*.5,Ln=Ut*fn*.5,Vn=Ut*(At-mt.x-Ae),Mn=Ut*($t-mt.y-Ve),Tn=mt.x-(Vn-rn),Qn=mt.y-(Mn-Ln);if(zt<1&&Qe===1){var Rn=sn*Qe,$n=hn*Qe,Yn=(0,Te.g1)(),qn=Yn.width,bn=Yn.height;Rn<=qn&&$n<=bn&&(Tn=0,Qn=0)}vt({x:Tn,y:Qn,scale:Qe},Pn)};return{transform:mt,resetTransform:Mt,updateTransform:vt,dispatchZoomChange:Xt}}var Ge=ge(43403),at=ge(77900),pt=function(Pe){var $e=Pe.visible,pe=Pe.maskTransitionName,Ze=Pe.getContainer,rt=Pe.prefixCls,ft=Pe.rootClassName,nt=Pe.icons,mt=Pe.countRender,ht=Pe.showSwitch,Mt=Pe.showProgress,vt=Pe.current,Xt=Pe.transform,Dt=Pe.count,zt=Pe.scale,Pn=Pe.minScale,Kt=Pe.maxScale,en=Pe.closeIcon,Fe=Pe.onSwitchLeft,Un=Pe.onSwitchRight,fn=Pe.onClose,sn=Pe.onZoomIn,hn=Pe.onZoomOut,Ae=Pe.onRotateRight,Ve=Pe.onRotateLeft,ut=Pe.onFlipX,Qe=Pe.onFlipY,At=Pe.toolbarRender,$t=(0,ae.useContext)(ne),Ut=nt.rotateLeft,rn=nt.rotateRight,Ln=nt.zoomIn,Vn=nt.zoomOut,Mn=nt.close,Tn=nt.left,Qn=nt.right,Rn=nt.flipX,$n=nt.flipY,Yn="".concat(rt,"-operations-operation");ae.useEffect(function(){var gn=function(On){On.keyCode===ee.Z.ESC&&fn()};return $e&&window.addEventListener("keydown",gn),function(){window.removeEventListener("keydown",gn)}},[$e]);var qn=[{icon:$n,onClick:Qe,type:"flipY"},{icon:Rn,onClick:ut,type:"flipX"},{icon:Ut,onClick:Ve,type:"rotateLeft"},{icon:rn,onClick:Ae,type:"rotateRight"},{icon:Vn,onClick:hn,type:"zoomOut",disabled:zt===Pn},{icon:Ln,onClick:sn,type:"zoomIn",disabled:zt===Kt}],bn=qn.map(function(gn){var vn,On=gn.icon,ea=gn.onClick,tn=gn.type,ra=gn.disabled;return ae.createElement("div",{className:Oe()(Yn,(vn={},(0,se.Z)(vn,"".concat(rt,"-operations-operation-").concat(tn),!0),(0,se.Z)(vn,"".concat(rt,"-operations-operation-disabled"),!!ra),vn)),onClick:ea,key:tn},On)}),In=ae.createElement("div",{className:"".concat(rt,"-operations")},bn);return ae.createElement(at.default,{visible:$e,motionName:pe},function(gn){var vn=gn.className,On=gn.style;return ae.createElement(Ge.Z,{open:!0,getContainer:Ze!=null?Ze:document.body},ae.createElement("div",{className:Oe()("".concat(rt,"-operations-wrapper"),vn,ft),style:On},en===null?null:ae.createElement("button",{className:"".concat(rt,"-close"),onClick:fn},en||Mn),ht&&ae.createElement(ae.Fragment,null,ae.createElement("div",{className:Oe()("".concat(rt,"-switch-left"),(0,se.Z)({},"".concat(rt,"-switch-left-disabled"),vt===0)),onClick:Fe},Tn),ae.createElement("div",{className:Oe()("".concat(rt,"-switch-right"),(0,se.Z)({},"".concat(rt,"-switch-right-disabled"),vt===Dt-1)),onClick:Un},Qn)),ae.createElement("div",{className:"".concat(rt,"-footer")},Mt&&ae.createElement("div",{className:"".concat(rt,"-progress")},mt?mt(vt+1,Dt):"".concat(vt+1," / ").concat(Dt)),At?At(In,(0,Ee.Z)({icons:{flipYIcon:bn[0],flipXIcon:bn[1],rotateLeftIcon:bn[2],rotateRightIcon:bn[3],zoomOutIcon:bn[4],zoomInIcon:bn[5]},actions:{onFlipY:Qe,onFlipX:ut,onRotateLeft:Ve,onRotateRight:Ae,onZoomOut:hn,onZoomIn:sn},transform:Xt},$t?{current:vt,total:Dt}:{})):In)))})},kt=pt,St=1,bt=1,It=["fallback","src","imgRef"],dn=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],qt=function(Pe){var $e=Pe.fallback,pe=Pe.src,Ze=Pe.imgRef,rt=(0,Me.Z)(Pe,It),ft=b({src:pe,fallback:$e}),nt=(0,Re.Z)(ft,2),mt=nt[0],ht=nt[1];return ae.createElement("img",(0,ue.Z)({ref:function(vt){Ze.current=vt,mt(vt)}},rt,ht))},an=function(Pe){var $e=Pe.prefixCls,pe=Pe.src,Ze=Pe.alt,rt=Pe.fallback,ft=Pe.movable,nt=ft===void 0?!0:ft,mt=Pe.onClose,ht=Pe.visible,Mt=Pe.icons,vt=Mt===void 0?{}:Mt,Xt=Pe.rootClassName,Dt=Pe.closeIcon,zt=Pe.getContainer,Pn=Pe.current,Kt=Pn===void 0?0:Pn,en=Pe.count,Fe=en===void 0?1:en,Un=Pe.countRender,fn=Pe.scaleStep,sn=fn===void 0?.5:fn,hn=Pe.minScale,Ae=hn===void 0?1:hn,Ve=Pe.maxScale,ut=Ve===void 0?50:Ve,Qe=Pe.transitionName,At=Qe===void 0?"zoom":Qe,$t=Pe.maskTransitionName,Ut=$t===void 0?"fade":$t,rn=Pe.imageRender,Ln=Pe.imgCommonProps,Vn=Pe.toolbarRender,Mn=Pe.onTransform,Tn=Pe.onChange,Qn=(0,Me.Z)(Pe,dn),Rn=(0,ae.useRef)(),$n=(0,ae.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Yn=(0,ae.useState)(!1),qn=(0,Re.Z)(Yn,2),bn=qn[0],In=qn[1],gn=(0,ae.useContext)(ne),vn=gn&&Fe>1,On=gn&&Fe>=1,ea=xe(Rn,Ae,ut,Mn),tn=ea.transform,ra=ea.resetTransform,_n=ea.updateTransform,Gn=ea.dispatchZoomChange,fa=(0,ae.useState)(!0),kn=(0,Re.Z)(fa,2),ma=kn[0],ta=kn[1],Hn=tn.rotate,Zn=tn.scale,ga=tn.x,da=tn.y,xa=Oe()((0,se.Z)({},"".concat($e,"-moving"),bn));(0,ae.useEffect)(function(){ma||ta(!0)},[ma]);var wa=function(){ra("close")},ua=function(){Gn(St+sn,"zoomIn")},it=function(){Gn(St/(St+sn),"zoomOut")},Ke=function(){_n({rotate:Hn+90},"rotateRight")},qe=function(){_n({rotate:Hn-90},"rotateLeft")},tt=function(){_n({flipX:!tn.flipX},"flipX")},Ot=function(){_n({flipY:!tn.flipY},"flipY")},nn=function(Et){Et==null||Et.preventDefault(),Et==null||Et.stopPropagation(),Kt>0&&(ta(!1),ra("prev"),Tn==null||Tn(Kt-1,Kt))},yn=function(Et){Et==null||Et.preventDefault(),Et==null||Et.stopPropagation(),Kt<Fe-1&&(ta(!1),ra("next"),Tn==null||Tn(Kt+1,Kt))},mn=function(){if(ht&&bn){In(!1);var Et=$n.current,na=Et.transformX,la=Et.transformY,Yt=ga!==na&&da!==la;if(!Yt)return;var ca=Rn.current.offsetWidth*Zn,Sa=Rn.current.offsetHeight*Zn,sa=Rn.current.getBoundingClientRect(),Ba=sa.left,ba=sa.top,aa=Hn%180!==0,Fa=re(aa?Sa:ca,aa?ca:Sa,Ba,ba);Fa&&_n((0,Ee.Z)({},Fa),"dragRebound")}},Nn=function(Et){!nt||Et.button!==0||(Et.preventDefault(),Et.stopPropagation(),$n.current={deltaX:Et.pageX-tn.x,deltaY:Et.pageY-tn.y,transformX:tn.x,transformY:tn.y},In(!0))},Bn=function(Et){ht&&bn&&_n({x:Et.pageX-$n.current.deltaX,y:Et.pageY-$n.current.deltaY},"move")},ia=function(Et){if(!(!ht||Et.deltaY==0)){var na=Math.abs(Et.deltaY/100),la=Math.min(na,bt),Yt=St+la*sn;Et.deltaY>0&&(Yt=St/Yt),Gn(Yt,"wheel",Et.clientX,Et.clientY)}},jn=function(Et){!ht||!vn||(Et.keyCode===ee.Z.LEFT?nn():Et.keyCode===ee.Z.RIGHT&&yn())},pa=function(Et){ht&&(Zn!==1?_n({x:0,y:0,scale:1},"doubleClick"):Gn(St+sn,"doubleClick",Et.clientX,Et.clientY))};(0,ae.useEffect)(function(){var un,Et,na,la;if(nt){na=(0,z.Z)(window,"mouseup",mn,!1),la=(0,z.Z)(window,"mousemove",Bn,!1);try{window.top!==window.self&&(un=(0,z.Z)(window.top,"mouseup",mn,!1),Et=(0,z.Z)(window.top,"mousemove",Bn,!1))}catch(Yt){(0,te.Kp)(!1,"[rc-image] ".concat(Yt))}}return function(){var Yt,ca,Sa,sa;(Yt=na)===null||Yt===void 0||Yt.remove(),(ca=la)===null||ca===void 0||ca.remove(),(Sa=un)===null||Sa===void 0||Sa.remove(),(sa=Et)===null||sa===void 0||sa.remove()}},[ht,bn,ga,da,Hn,nt]),(0,ae.useEffect)(function(){var un=(0,z.Z)(window,"keydown",jn,!1);return function(){un.remove()}},[ht,vn,Kt]);var ha=ae.createElement(qt,(0,ue.Z)({},Ln,{width:Pe.width,height:Pe.height,imgRef:Rn,className:"".concat($e,"-img"),alt:Ze,style:{transform:"translate3d(".concat(tn.x,"px, ").concat(tn.y,"px, 0) scale3d(").concat(tn.flipX?"-":"").concat(Zn,", ").concat(tn.flipY?"-":"").concat(Zn,", 1) rotate(").concat(Hn,"deg)"),transitionDuration:!ma&&"0s"},fallback:rt,src:pe,onWheel:ia,onMouseDown:Nn,onDoubleClick:pa}));return ae.createElement(ae.Fragment,null,ae.createElement(E.Z,(0,ue.Z)({transitionName:At,maskTransitionName:Ut,closable:!1,keyboard:!0,prefixCls:$e,onClose:mt,visible:ht,wrapClassName:xa,rootClassName:Xt,getContainer:zt},Qn,{afterClose:wa}),ae.createElement("div",{className:"".concat($e,"-img-wrapper")},rn?rn(ha,(0,Ee.Z)({transform:tn},gn?{current:Kt}:{})):ha)),ae.createElement(kt,{visible:ht,transform:tn,maskTransitionName:Ut,closeIcon:Dt,getContainer:zt,prefixCls:$e,rootClassName:Xt,icons:vt,countRender:Un,showSwitch:vn,showProgress:On,current:Kt,count:Fe,scale:Zn,minScale:Ae,maxScale:ut,toolbarRender:Vn,onSwitchLeft:nn,onSwitchRight:yn,onZoomIn:ua,onZoomOut:it,onRotateRight:Ke,onRotateLeft:qe,onFlipX:tt,onFlipY:Ot,onClose:mt}))},Jt=an,cn=ge(94480);function Fn(be){var Pe=ae.useState({}),$e=(0,Re.Z)(Pe,2),pe=$e[0],Ze=$e[1],rt=ae.useCallback(function(nt,mt){return Ze(function(ht){return(0,Ee.Z)((0,Ee.Z)({},ht),{},(0,se.Z)({},nt,mt))}),function(){Ze(function(ht){var Mt=(0,Ee.Z)({},ht);return delete Mt[nt],Mt})}},[]),ft=ae.useMemo(function(){return be?be.map(function(nt){if(typeof nt=="string")return{data:{src:nt}};var mt={};return Object.keys(nt).forEach(function(ht){["src"].concat((0,cn.Z)(Ce)).includes(ht)&&(mt[ht]=nt[ht])}),{data:mt}}):Object.keys(pe).reduce(function(nt,mt){var ht=pe[mt],Mt=ht.canPreview,vt=ht.data;return Mt&&nt.push({data:vt,id:mt}),nt},[])},[be,pe]);return[ft,rt]}var we=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ne=["src"],Xe=function(Pe){var $e,pe=Pe.previewPrefixCls,Ze=pe===void 0?"rc-image-preview":pe,rt=Pe.children,ft=Pe.icons,nt=ft===void 0?{}:ft,mt=Pe.items,ht=Pe.preview,Mt=Pe.fallback,vt=(0,Be.Z)(ht)==="object"?ht:{},Xt=vt.visible,Dt=vt.onVisibleChange,zt=vt.getContainer,Pn=vt.current,Kt=vt.movable,en=vt.minScale,Fe=vt.maxScale,Un=vt.countRender,fn=vt.closeIcon,sn=vt.onChange,hn=vt.onTransform,Ae=vt.toolbarRender,Ve=vt.imageRender,ut=(0,Me.Z)(vt,we),Qe=Fn(mt),At=(0,Re.Z)(Qe,2),$t=At[0],Ut=At[1],rn=(0,Ie.Z)(0,{value:Pn}),Ln=(0,Re.Z)(rn,2),Vn=Ln[0],Mn=Ln[1],Tn=(0,ae.useState)(!1),Qn=(0,Re.Z)(Tn,2),Rn=Qn[0],$n=Qn[1],Yn=(($e=$t[Vn])===null||$e===void 0?void 0:$e.data)||{},qn=Yn.src,bn=(0,Me.Z)(Yn,Ne),In=(0,Ie.Z)(!!Xt,{value:Xt,onChange:function(Hn,Zn){Dt==null||Dt(Hn,Zn,Vn)}}),gn=(0,Re.Z)(In,2),vn=gn[0],On=gn[1],ea=(0,ae.useState)(null),tn=(0,Re.Z)(ea,2),ra=tn[0],_n=tn[1],Gn=ae.useCallback(function(ta,Hn,Zn){var ga=$t.findIndex(function(da){return da.id===ta});On(!0),_n({x:Hn,y:Zn}),Mn(ga<0?0:ga),$n(!0)},[$t]);ae.useEffect(function(){vn?Rn||Mn(0):$n(!1)},[vn]);var fa=function(Hn,Zn){Mn(Hn),sn==null||sn(Hn,Zn)},kn=function(){On(!1),_n(null)},ma=ae.useMemo(function(){return{register:Ut,onPreview:Gn}},[Ut,Gn]);return ae.createElement(ne.Provider,{value:ma},rt,ae.createElement(Jt,(0,ue.Z)({"aria-hidden":!vn,movable:Kt,visible:vn,prefixCls:Ze,closeIcon:fn,onClose:kn,mousePosition:ra,imgCommonProps:bn,src:qn,fallback:Mt,icons:nt,minScale:en,maxScale:Fe,getContainer:zt,current:Vn,count:$t.length,countRender:Un,onTransform:hn,toolbarRender:Ae,imageRender:Ve,onChange:fa},ut)))},Lt=Xe,Ue=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],yt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],de=function(Pe){var $e=Pe.src,pe=Pe.alt,Ze=Pe.onPreviewClose,rt=Pe.prefixCls,ft=rt===void 0?"rc-image":rt,nt=Pe.previewPrefixCls,mt=nt===void 0?"".concat(ft,"-preview"):nt,ht=Pe.placeholder,Mt=Pe.fallback,vt=Pe.width,Xt=Pe.height,Dt=Pe.style,zt=Pe.preview,Pn=zt===void 0?!0:zt,Kt=Pe.className,en=Pe.onClick,Fe=Pe.onError,Un=Pe.wrapperClassName,fn=Pe.wrapperStyle,sn=Pe.rootClassName,hn=(0,Me.Z)(Pe,Ue),Ae=ht&&ht!==!0,Ve=(0,Be.Z)(Pn)==="object"?Pn:{},ut=Ve.src,Qe=Ve.visible,At=Qe===void 0?void 0:Qe,$t=Ve.onVisibleChange,Ut=$t===void 0?Ze:$t,rn=Ve.getContainer,Ln=rn===void 0?void 0:rn,Vn=Ve.mask,Mn=Ve.maskClassName,Tn=Ve.movable,Qn=Ve.icons,Rn=Ve.scaleStep,$n=Ve.minScale,Yn=Ve.maxScale,qn=Ve.imageRender,bn=Ve.toolbarRender,In=(0,Me.Z)(Ve,yt),gn=ut!=null?ut:$e,vn=(0,Ie.Z)(!!At,{value:At,onChange:Ut}),On=(0,Re.Z)(vn,2),ea=On[0],tn=On[1],ra=b({src:$e,isCustomPlaceholder:Ae,fallback:Mt}),_n=(0,Re.Z)(ra,3),Gn=_n[0],fa=_n[1],kn=_n[2],ma=(0,ae.useState)(null),ta=(0,Re.Z)(ma,2),Hn=ta[0],Zn=ta[1],ga=(0,ae.useContext)(ne),da=!!Pn,xa=function(){tn(!1),Zn(null)},wa=Oe()(ft,Un,sn,(0,se.Z)({},"".concat(ft,"-error"),kn==="error")),ua=(0,ae.useMemo)(function(){var tt={};return Ce.forEach(function(Ot){Pe[Ot]!==void 0&&(tt[Ot]=Pe[Ot])}),tt},Ce.map(function(tt){return Pe[tt]})),it=(0,ae.useMemo)(function(){return(0,Ee.Z)((0,Ee.Z)({},ua),{},{src:gn})},[gn,ua]),Ke=y(da,it),qe=function(Ot){var nn=(0,Te.os)(Ot.target),yn=nn.left,mn=nn.top;ga?ga.onPreview(Ke,yn,mn):(Zn({x:yn,y:mn}),tn(!0)),en==null||en(Ot)};return ae.createElement(ae.Fragment,null,ae.createElement("div",(0,ue.Z)({},hn,{className:wa,onClick:da?qe:en,style:(0,Ee.Z)({width:vt,height:Xt},fn)}),ae.createElement("img",(0,ue.Z)({},ua,{className:Oe()("".concat(ft,"-img"),(0,se.Z)({},"".concat(ft,"-img-placeholder"),ht===!0),Kt),style:(0,Ee.Z)({height:Xt},Dt),ref:Gn},fa,{width:vt,height:Xt,onError:Fe})),kn==="loading"&&ae.createElement("div",{"aria-hidden":"true",className:"".concat(ft,"-placeholder")},ht),Vn&&da&&ae.createElement("div",{className:Oe()("".concat(ft,"-mask"),Mn),style:{display:(Dt==null?void 0:Dt.display)==="none"?"none":void 0}},Vn)),!ga&&da&&ae.createElement(Jt,(0,ue.Z)({"aria-hidden":!ea,visible:ea,prefixCls:mt,onClose:xa,mousePosition:Hn,src:gn,alt:pe,fallback:Mt,getContainer:Ln,icons:Qn,movable:Tn,scaleStep:Rn,minScale:$n,maxScale:Yn,rootClassName:sn,imageRender:qn,imgCommonProps:ua,toolbarRender:bn},In)))};de.PreviewGroup=Lt,de.displayName="Image";var et=de,Ct=et,Vt=ge(62892),Rt=ge(36355),ze=ge(31724),Le=ge(99267),he=ge(33853),_e=ge(38819),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},ot=He,lt=ge(7657),ct=function(Pe,$e){return ae.createElement(lt.Z,(0,ue.Z)({},Pe,{ref:$e,icon:ot}))},wt=ae.forwardRef(ct),Ft=wt,xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Bt=xt,on=function(Pe,$e){return ae.createElement(lt.Z,(0,ue.Z)({},Pe,{ref:$e,icon:Bt}))},We=ae.forwardRef(on),je=We,ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},gt=ke,_t=function(Pe,$e){return ae.createElement(lt.Z,(0,ue.Z)({},Pe,{ref:$e,icon:gt}))},Ht=ae.forwardRef(_t),Zt=Ht,Qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Pt=Qt,Tt=function(Pe,$e){return ae.createElement(lt.Z,(0,ue.Z)({},Pe,{ref:$e,icon:Pt}))},zn=ae.forwardRef(Tt),Gt=zn,ln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Sn=ln,En=function(Pe,$e){return ae.createElement(lt.Z,(0,ue.Z)({},Pe,{ref:$e,icon:Sn}))},Wn=ae.forwardRef(En),Kn=Wn,pn=ge(64993),oa=ge(73819),Dn=ge(17313),Xn=ge(29878),jt=ge(1950),wn=ge(83116),Cn=ge(37613);const Jn=be=>({position:be||"absolute",inset:0}),xn=be=>{const{iconCls:Pe,motionDurationSlow:$e,paddingXXS:pe,marginXXS:Ze,prefixCls:rt,colorTextLightSolid:ft}=be;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:ft,background:new pn.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${$e}`,[`.${rt}-mask-info`]:Object.assign(Object.assign({},Dn.vS),{padding:`0 ${pe}px`,[Pe]:{marginInlineEnd:Ze,svg:{verticalAlign:"baseline"}}})}},va=be=>{const{previewCls:Pe,modalMaskBg:$e,paddingSM:pe,marginXL:Ze,margin:rt,paddingLG:ft,previewOperationColorDisabled:nt,previewOperationHoverColor:mt,motionDurationSlow:ht,iconCls:Mt,colorTextLightSolid:vt}=be,Xt=new pn.C($e).setAlpha(.1),Dt=Xt.clone().setAlpha(.2);return{[`${Pe}-footer`]:{position:"fixed",bottom:Ze,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:be.previewOperationColor},[`${Pe}-progress`]:{marginBottom:rt},[`${Pe}-close`]:{position:"fixed",top:Ze,right:{_skip_check_:!0,value:Ze},display:"flex",color:vt,backgroundColor:Xt.toRgbString(),borderRadius:"50%",padding:pe,outline:0,border:0,cursor:"pointer",transition:`all ${ht}`,"&:hover":{backgroundColor:Dt.toRgbString()},[`& > ${Mt}`]:{fontSize:be.previewOperationSize}},[`${Pe}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ft}px`,backgroundColor:Xt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:pe,padding:pe,cursor:"pointer",transition:`all ${ht}`,userSelect:"none",[`&:not(${Pe}-operations-operation-disabled):hover > ${Mt}`]:{color:mt},"&-disabled":{color:nt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Mt}`]:{fontSize:be.previewOperationSize}}}}},An=be=>{const{modalMaskBg:Pe,iconCls:$e,previewOperationColorDisabled:pe,previewCls:Ze,zIndexPopup:rt,motionDurationSlow:ft}=be,nt=new pn.C(Pe).setAlpha(.1),mt=nt.clone().setAlpha(.2);return{[`${Ze}-switch-left, ${Ze}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:rt+1,display:"flex",alignItems:"center",justifyContent:"center",width:be.imagePreviewSwitchSize,height:be.imagePreviewSwitchSize,marginTop:-be.imagePreviewSwitchSize/2,color:be.previewOperationColor,background:nt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${ft}`,userSelect:"none","&:hover":{background:mt.toRgbString()},"&-disabled":{"&, &:hover":{color:pe,background:"transparent",cursor:"not-allowed",[`> ${$e}`]:{cursor:"not-allowed"}}},[`> ${$e}`]:{fontSize:be.previewOperationSize}},[`${Ze}-switch-left`]:{insetInlineStart:be.marginSM},[`${Ze}-switch-right`]:{insetInlineEnd:be.marginSM}}},La=be=>{const{motionEaseOut:Pe,previewCls:$e,motionDurationSlow:pe,componentCls:Ze}=be;return[{[`${Ze}-preview-root`]:{[$e]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${$e}-body`]:Object.assign(Object.assign({},Jn()),{overflow:"hidden"}),[`${$e}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${pe} ${Pe} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Jn()),{transition:`transform ${pe} ${Pe} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${$e}-moving`]:{[`${$e}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Ze}-preview-root`]:{[`${$e}-wrap`]:{zIndex:be.zIndexPopup}}},{[`${Ze}-preview-operations-wrapper`]:{position:"fixed",zIndex:be.zIndexPopup+1},"&":[va(be),An(be)]}]},Pa=be=>{const{componentCls:Pe}=be;return{[Pe]:{position:"relative",display:"inline-block",[`${Pe}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Pe}-img-placeholder`]:{backgroundColor:be.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Pe}-mask`]:Object.assign({},xn(be)),[`${Pe}-mask:hover`]:{opacity:1},[`${Pe}-placeholder`]:Object.assign({},Jn())}}},ya=be=>{const{previewCls:Pe}=be;return{[`${Pe}-root`]:(0,Xn._y)(be,"zoom"),"&":(0,jt.J$)(be,!0)}};var le=(0,wn.Z)("Image",be=>{const Pe=`${be.componentCls}-preview`,$e=(0,Cn.TS)(be,{previewCls:Pe,modalMaskBg:new pn.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:be.controlHeightLG});return[Pa($e),La($e),(0,oa.QA)((0,Cn.TS)($e,{componentCls:Pe})),ya($e)]},be=>({zIndexPopup:be.zIndexPopupBase+80,previewOperationColor:new pn.C(be.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new pn.C(be.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new pn.C(be.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:be.fontSizeIcon*1.5})),ve=function(be,Pe){var $e={};for(var pe in be)Object.prototype.hasOwnProperty.call(be,pe)&&Pe.indexOf(pe)<0&&($e[pe]=be[pe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,pe=Object.getOwnPropertySymbols(be);Ze<pe.length;Ze++)Pe.indexOf(pe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(be,pe[Ze])&&($e[pe[Ze]]=be[pe[Ze]]);return $e};const Se={rotateLeft:ae.createElement(Ft,null),rotateRight:ae.createElement(je,null),zoomIn:ae.createElement(Gt,null),zoomOut:ae.createElement(Kn,null),close:ae.createElement(Le.Z,null),left:ae.createElement(he.Z,null),right:ae.createElement(_e.Z,null),flipX:ae.createElement(Zt,null),flipY:ae.createElement(Zt,{rotate:90})};var st=be=>{var{previewPrefixCls:Pe,preview:$e}=be,pe=ve(be,["previewPrefixCls","preview"]);const{getPrefixCls:Ze}=ae.useContext(Rt.E_),rt=Ze("image",Pe),ft=`${rt}-preview`,nt=Ze(),[mt,ht]=le(rt),Mt=ae.useMemo(()=>{var vt;if($e===!1)return $e;const Xt=typeof $e=="object"?$e:{},Dt=Oe()(ht,(vt=Xt.rootClassName)!==null&&vt!==void 0?vt:"");return Object.assign(Object.assign({},Xt),{transitionName:(0,Vt.m)(nt,"zoom",Xt.transitionName),maskTransitionName:(0,Vt.m)(nt,"fade",Xt.maskTransitionName),rootClassName:Dt})},[$e]);return mt(ae.createElement(Ct.PreviewGroup,Object.assign({preview:Mt,previewPrefixCls:ft,icons:Se},pe)))},dt=function(be,Pe){var $e={};for(var pe in be)Object.prototype.hasOwnProperty.call(be,pe)&&Pe.indexOf(pe)<0&&($e[pe]=be[pe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,pe=Object.getOwnPropertySymbols(be);Ze<pe.length;Ze++)Pe.indexOf(pe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(be,pe[Ze])&&($e[pe[Ze]]=be[pe[Ze]]);return $e};const Wt=be=>{const{prefixCls:Pe,preview:$e,className:pe,rootClassName:Ze,style:rt}=be,ft=dt(be,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:nt,locale:mt=ze.Z,getPopupContainer:ht,image:Mt}=ae.useContext(Rt.E_),vt=nt("image",Pe),Xt=nt(),Dt=mt.Image||ze.Z.Image,[zt,Pn]=le(vt),Kt=Oe()(Ze,Pn),en=Oe()(pe,Pn,Mt==null?void 0:Mt.className),Fe=ae.useMemo(()=>{if($e===!1)return $e;const fn=typeof $e=="object"?$e:{},{getContainer:sn}=fn,hn=dt(fn,["getContainer"]);return Object.assign(Object.assign({mask:ae.createElement("div",{className:`${vt}-mask-info`},ae.createElement(fe.Z,null),Dt==null?void 0:Dt.preview),icons:Se},hn),{getContainer:sn||ht,transitionName:(0,Vt.m)(Xt,"zoom",fn.transitionName),maskTransitionName:(0,Vt.m)(Xt,"fade",fn.maskTransitionName)})},[$e,Dt]),Un=Object.assign(Object.assign({},Mt==null?void 0:Mt.style),rt);return zt(ae.createElement(Ct,Object.assign({prefixCls:vt,preview:Fe,rootClassName:Kt,className:en,style:Un},ft)))};Wt.PreviewGroup=st;var Nt=Wt},45818:function(ye,Ye,ge){"use strict";ge.d(Ye,{D:function(){return z},Z:function(){return oe}});var ae=ge(54476),fe=ge(59301),De={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"},Oe=De,ue=ge(7657),Ee=function(ie,ce){return fe.createElement(ue.Z,(0,ae.Z)({},ie,{ref:ce,icon:Oe}))},se=fe.forwardRef(Ee),Re=se,Be=ge(33853),Me=ge(38819),Te=ge(92310),Ie=ge.n(Te),Ce=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var ce={};for(var me in re)Object.prototype.hasOwnProperty.call(re,me)&&ie.indexOf(me)<0&&(ce[me]=re[me]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,me=Object.getOwnPropertySymbols(re);xe<me.length;xe++)ie.indexOf(me[xe])<0&&Object.prototype.propertyIsEnumerable.call(re,me[xe])&&(ce[me[xe]]=re[me[xe]]);return ce};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=fe.createContext({}),ee=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=fe.forwardRef((re,ie)=>{const{prefixCls:ce,className:me,trigger:xe,children:Ge,defaultCollapsed:at=!1,theme:pt="dark",style:kt={},collapsible:St=!1,reverseArrow:bt=!1,width:It=200,collapsedWidth:dn=80,zeroWidthTriggerStyle:qt,breakpoint:an,onCollapse:Jt,onBreakpoint:cn}=re,Fn=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:we}=(0,fe.useContext)(x.Gs),[Ne,Xe]=(0,fe.useState)("collapsed"in re?re.collapsed:at),[Lt,Ue]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in re&&Xe(re.collapsed)},[re.collapsed]);const yt=(ze,Le)=>{"collapsed"in re||Xe(ze),Jt==null||Jt(ze,Le)},de=(0,fe.useRef)();de.current=ze=>{Ue(ze.matches),cn==null||cn(ze.matches),Ne!==ze.matches&&yt(ze.matches,"responsive")},(0,fe.useEffect)(()=>{function ze(he){return de.current(he)}let Le;if(typeof window!="undefined"){const{matchMedia:he}=window;if(he&&an&&an in E){Le=he(`(max-width: ${E[an]})`);try{Le.addEventListener("change",ze)}catch(_e){Le.addListener(ze)}ze(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",ze)}catch(he){Le==null||Le.removeListener(ze)}}},[an]),(0,fe.useEffect)(()=>{const ze=ee("ant-sider-");return we.addSider(ze),()=>we.removeSider(ze)},[]);const et=()=>{yt(!Ne,"clickTrigger")},{getPrefixCls:Ct}=(0,fe.useContext)(y.E_),Vt=()=>{const ze=Ct("layout-sider",ce),Le=(0,Ce.Z)(Fn,["collapsed"]),he=Ne?dn:It,_e=a(he)?`${he}px`:String(he),He=parseFloat(String(dn||0))===0?fe.createElement("span",{onClick:et,className:Ie()(`${ze}-zero-width-trigger`,`${ze}-zero-width-trigger-${bt?"right":"left"}`),style:qt},xe||fe.createElement(Re,null)):null,ct={expanded:bt?fe.createElement(Me.Z,null):fe.createElement(Be.Z,null),collapsed:bt?fe.createElement(Be.Z,null):fe.createElement(Me.Z,null)}[Ne?"collapsed":"expanded"],wt=xe!==null?He||fe.createElement("div",{className:`${ze}-trigger`,onClick:et,style:{width:_e}},xe||ct):null,Ft=Object.assign(Object.assign({},kt),{flex:`0 0 ${_e}`,maxWidth:_e,minWidth:_e,width:_e}),xt=Ie()(ze,`${ze}-${pt}`,{[`${ze}-collapsed`]:!!Ne,[`${ze}-has-trigger`]:St&&xe!==null&&!He,[`${ze}-below`]:!!Lt,[`${ze}-zero-width`]:parseFloat(_e)===0},me);return fe.createElement("aside",Object.assign({className:xt},Le,{style:Ft,ref:ie}),fe.createElement("div",{className:`${ze}-children`},Ge),St||Lt&&He?wt:null)},Rt=fe.useMemo(()=>({siderCollapsed:Ne}),[Ne]);return fe.createElement(z.Provider,{value:Rt},Vt())})},44e3:function(ye,Ye,ge){"use strict";var ae=ge(84966),fe=ge(45818);const De=ae.ZP;De.Header=ae.h4,De.Footer=ae.$_,De.Content=ae.VY,De.Sider=fe.Z,Ye.default=De},84966:function(ye,Ye,ge){"use strict";ge.d(Ye,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ce},ZP:function(){return ee}});var ae=ge(94480),fe=ge(92310),De=ge.n(fe),Oe=ge(2738),ue=ge(59301),Ee=ge(36355),se=ge(83116),Be=te=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:ce,lightTriggerColor:me}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:me,background:ce},[`${oe}-sider-zero-width-trigger`]:{color:me,background:ce,border:`1px solid ${re}`,borderInlineStart:0}}}};const Me=te=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:ce,footerBg:me,triggerBg:xe,headerHeight:Ge,headerPadding:at,headerColor:pt,footerPadding:kt,triggerHeight:St,zeroTriggerHeight:bt,zeroTriggerWidth:It,motionDurationMid:dn,motionDurationSlow:qt,fontSize:an,borderRadius:Jt,bodyBg:cn,headerBg:Fn,siderBg:we}=te;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:cn,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:we,transition:`all ${dn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:St},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:St,color:ce,lineHeight:`${St}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${dn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ge,insetInlineEnd:-It,zIndex:1,width:It,height:bt,color:ce,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:we,borderStartStartRadius:0,borderStartEndRadius:Jt,borderEndEndRadius:Jt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${qt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${qt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-It,borderStartStartRadius:Jt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Jt}}}}},Be(te)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:Ge,padding:at,color:pt,lineHeight:`${Ge}px`,background:Fn,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:kt,color:ie,fontSize:an,background:me},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Te=(0,se.Z)("Layout",te=>[Me(te)],te=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:ce,controlHeightSM:me,marginXXS:xe,colorTextLightSolid:Ge,colorBgContainer:at}=te,pt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${pt}px`,headerColor:ce,footerPadding:`${me}px ${pt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+xe*2,triggerBg:"#002140",triggerColor:Ge,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:at,lightTriggerBg:at,lightTriggerColor:ce}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ie=function(te,oe){var re={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(re[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ie=Object.getOwnPropertySymbols(te);ce<ie.length;ce++)oe.indexOf(ie[ce])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[ce])&&(re[ie[ce]]=te[ie[ce]]);return re};const Ce=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:re,displayName:ie}=te;return ce=>ue.forwardRef((xe,Ge)=>ue.createElement(ce,Object.assign({ref:Ge,suffixCls:oe,tagName:re},xe)))}const a=ue.forwardRef((te,oe)=>{const{prefixCls:re,suffixCls:ie,className:ce,tagName:me}=te,xe=Ie(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ge}=ue.useContext(Ee.E_),at=Ge("layout",re),[pt,kt]=Te(at),St=ie?`${at}-${ie}`:at;return pt(ue.createElement(me,Object.assign({className:De()(re||St,ce,kt),ref:oe},xe)))}),y=ue.forwardRef((te,oe)=>{const{direction:re}=ue.useContext(Ee.E_),[ie,ce]=ue.useState([]),{prefixCls:me,className:xe,rootClassName:Ge,children:at,hasSider:pt,tagName:kt,style:St}=te,bt=Ie(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),It=(0,Oe.Z)(bt,["suffixCls"]),{getPrefixCls:dn,layout:qt}=ue.useContext(Ee.E_),an=dn("layout",me),[Jt,cn]=Te(an),Fn=De()(an,{[`${an}-has-sider`]:typeof pt=="boolean"?pt:ie.length>0,[`${an}-rtl`]:re==="rtl"},qt==null?void 0:qt.className,xe,Ge,cn),we=ue.useMemo(()=>({siderHook:{addSider:Ne=>{ce(Xe=>[].concat((0,ae.Z)(Xe),[Ne]))},removeSider:Ne=>{ce(Xe=>Xe.filter(Lt=>Lt!==Ne))}}}),[]);return Jt(ue.createElement(Ce.Provider,{value:we},ue.createElement(kt,Object.assign({ref:oe,className:Fn,style:Object.assign(Object.assign({},qt==null?void 0:qt.style),St)},It),at)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(ye,Ye,ge){"use strict";ge.d(Ye,{J:function(){return Ee}});var ae=ge(59301),fe=ge(33234),De=ge(70425),Oe=function(se,Re){var Be={};for(var Me in se)Object.prototype.hasOwnProperty.call(se,Me)&&Re.indexOf(Me)<0&&(Be[Me]=se[Me]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Me=Object.getOwnPropertySymbols(se);Te<Me.length;Te++)Re.indexOf(Me[Te])<0&&Object.prototype.propertyIsEnumerable.call(se,Me[Te])&&(Be[Me[Te]]=se[Me[Te]]);return Be};const ue=ae.createContext(null),Ee=ae.forwardRef((se,Re)=>{const{children:Be}=se,Me=Oe(se,["children"]),Te=ae.useContext(ue),Ie=ae.useMemo(()=>Object.assign(Object.assign({},Te),Me),[Te,Me.prefixCls,Me.mode,Me.selectable]);return ae.createElement(ue.Provider,{value:Ie},ae.createElement(fe.BR,null,(0,De.supportNodeRef)(Be)?ae.cloneElement(Be,{ref:Re}):Be))});Ye.Z=ue},20834:function(ye,Ye,ge){"use strict";ge.d(Ye,{default:function(){return Rt}});var ae=ge(15285),fe=ge(59301),De=ge(45818),Oe=ge(92310),ue=ge.n(Oe),Ee=ge(36355),se=function(ze,Le){var he={};for(var _e in ze)Object.prototype.hasOwnProperty.call(ze,_e)&&Le.indexOf(_e)<0&&(he[_e]=ze[_e]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,_e=Object.getOwnPropertySymbols(ze);He<_e.length;He++)Le.indexOf(_e[He])<0&&Object.prototype.propertyIsEnumerable.call(ze,_e[He])&&(he[_e[He]]=ze[_e[He]]);return he},Be=ze=>{const{prefixCls:Le,className:he,dashed:_e}=ze,He=se(ze,["prefixCls","className","dashed"]),{getPrefixCls:ot}=fe.useContext(Ee.E_),lt=ot("menu",Le),ct=ue()({[`${lt}-item-divider-dashed`]:!!_e},he);return fe.createElement(ae.iz,Object.assign({className:ct},He))},Me=ge(11592),Te=ge(2738),Ie=ge(6848),Ce=ge(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=ze=>{var Le;const{className:he,children:_e,icon:He,title:ot,danger:lt}=ze,{prefixCls:ct,firstLevel:wt,direction:Ft,disableMenuItemTitleTooltip:xt,inlineCollapsed:Bt}=fe.useContext(a),on=Ht=>{const Zt=fe.createElement("span",{className:`${ct}-title-content`},_e);return(!He||(0,Ce.l$)(_e)&&_e.type==="span")&&_e&&Ht&&wt&&typeof _e=="string"?fe.createElement("div",{className:`${ct}-inline-collapsed-noicon`},_e.charAt(0)):Zt},{siderCollapsed:We}=fe.useContext(De.D);let je=ot;typeof ot=="undefined"?je=wt?_e:"":ot===!1&&(je="");const ke={title:je};!We&&!Bt&&(ke.title=null,ke.open=!1);const gt=(0,Me.Z)(_e).length;let _t=fe.createElement(ae.ck,Object.assign({},(0,Te.Z)(ze,["title","icon","danger"]),{className:ue()({[`${ct}-item-danger`]:lt,[`${ct}-item-only-child`]:(He?gt+1:gt)===1},he),title:typeof ot=="string"?ot:void 0}),(0,Ce.Tm)(He,{className:ue()((0,Ce.l$)(He)?(Le=He.props)===null||Le===void 0?void 0:Le.className:"",`${ct}-item-icon`)}),on(Bt));return xt||(_t=fe.createElement(Ie.Z,Object.assign({},ke,{placement:Ft==="rtl"?"left":"right",overlayClassName:`${ct}-inline-collapsed-tooltip`}),_t)),_t},E=ze=>{var Le;const{popupClassName:he,icon:_e,title:He,theme:ot}=ze,lt=fe.useContext(a),{prefixCls:ct,inlineCollapsed:wt,theme:Ft}=lt,xt=(0,ae.Xl)();let Bt;if(!_e)Bt=wt&&!xt.length&&He&&typeof He=="string"?fe.createElement("div",{className:`${ct}-inline-collapsed-noicon`},He.charAt(0)):fe.createElement("span",{className:`${ct}-title-content`},He);else{const We=(0,Ce.l$)(He)&&He.type==="span";Bt=fe.createElement(fe.Fragment,null,(0,Ce.Tm)(_e,{className:ue()((0,Ce.l$)(_e)?(Le=_e.props)===null||Le===void 0?void 0:Le.className:"",`${ct}-item-icon`)}),We?He:fe.createElement("span",{className:`${ct}-title-content`},He))}const on=fe.useMemo(()=>Object.assign(Object.assign({},lt),{firstLevel:!1}),[lt]);return fe.createElement(a.Provider,{value:on},fe.createElement(ae.Wd,Object.assign({},(0,Te.Z)(ze,["icon"]),{title:Bt,popupClassName:ue()(ct,he,`${ct}-${ot||Ft}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),oe=ge(40875),re=function(ze,Le){var he={};for(var _e in ze)Object.prototype.hasOwnProperty.call(ze,_e)&&Le.indexOf(_e)<0&&(he[_e]=ze[_e]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,_e=Object.getOwnPropertySymbols(ze);He<_e.length;He++)Le.indexOf(_e[He])<0&&Object.prototype.propertyIsEnumerable.call(ze,_e[He])&&(he[_e[He]]=ze[_e[He]]);return he};function ie(ze){return(ze||[]).map((Le,he)=>{if(Le&&typeof Le=="object"){const _e=Le,{label:He,children:ot,key:lt,type:ct}=_e,wt=re(_e,["label","children","key","type"]),Ft=lt!=null?lt:`tmp-${he}`;return ot||ct==="group"?ct==="group"?fe.createElement(ae.BW,Object.assign({key:Ft},wt,{title:He}),ie(ot)):fe.createElement(E,Object.assign({key:Ft},wt,{title:He}),ie(ot)):ct==="divider"?fe.createElement(Be,Object.assign({key:Ft},wt)):fe.createElement(x,Object.assign({key:Ft},wt),He)}return null}).filter(Le=>Le)}function ce(ze){return fe.useMemo(()=>ze&&ie(ze),[ze])}var me=ge(64993),xe=ge(17313),Ge=ge(8378),at=ge(13826),pt=ge(29878),kt=ge(83116),St=ge(37613),It=ze=>{const{componentCls:Le,motionDurationSlow:he,horizontalLineHeight:_e,colorSplit:He,lineWidth:ot,lineType:lt,itemPaddingInline:ct}=ze;return{[`${Le}-horizontal`]:{lineHeight:_e,border:0,borderBottom:`${ot}px ${lt} ${He}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ct},[`> ${Le}-item:hover,
|
|
> ${Le}-item-active,
|
|
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${he}`,`background ${he}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},qt=ze=>{let{componentCls:Le,menuArrowOffset:he}=ze;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
|
|
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${he})`},"&::after":{transform:`rotate(45deg) translateY(${he})`}}}}};const an=ze=>Object.assign({},(0,xe.oN)(ze));var cn=(ze,Le)=>{const{componentCls:he,itemColor:_e,itemSelectedColor:He,groupTitleColor:ot,itemBg:lt,subMenuItemBg:ct,itemSelectedBg:wt,activeBarHeight:Ft,activeBarWidth:xt,activeBarBorderWidth:Bt,motionDurationSlow:on,motionEaseInOut:We,motionEaseOut:je,itemPaddingInline:ke,motionDurationMid:gt,itemHoverColor:_t,lineType:Ht,colorSplit:Zt,itemDisabledColor:Qt,dangerItemColor:Pt,dangerItemHoverColor:Tt,dangerItemSelectedColor:zn,dangerItemActiveBg:Gt,dangerItemSelectedBg:ln,itemHoverBg:Sn,itemActiveBg:En,menuSubMenuBg:Wn,horizontalItemSelectedColor:Kn,horizontalItemSelectedBg:pn,horizontalItemBorderRadius:oa,horizontalItemHoverBg:Dn,popupBg:Xn}=ze;return{[`${he}-${Le}, ${he}-${Le} > ${he}`]:{color:_e,background:lt,[`&${he}-root:focus-visible`]:Object.assign({},an(ze)),[`${he}-item-group-title`]:{color:ot},[`${he}-submenu-selected`]:{[`> ${he}-submenu-title`]:{color:He}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{color:`${Qt} !important`},[`${he}-item:not(${he}-item-selected):not(${he}-submenu-selected)`]:{[`&:hover, > ${he}-submenu-title:hover`]:{color:_t}},[`&:not(${he}-horizontal)`]:{[`${he}-item:not(${he}-item-selected)`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:En}},[`${he}-submenu-title`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:En}}},[`${he}-item-danger`]:{color:Pt,[`&${he}-item:hover`]:{[`&:not(${he}-item-selected):not(${he}-submenu-selected)`]:{color:Tt}},[`&${he}-item:active`]:{background:Gt}},[`${he}-item a`]:{"&, &:hover":{color:"inherit"}},[`${he}-item-selected`]:{color:He,[`&${he}-item-danger`]:{color:zn},"a, a:hover":{color:"inherit"}},[`& ${he}-item-selected`]:{backgroundColor:wt,[`&${he}-item-danger`]:{backgroundColor:ln}},[`${he}-item, ${he}-submenu-title`]:{[`&:not(${he}-item-disabled):focus-visible`]:Object.assign({},an(ze))},[`&${he}-submenu > ${he}`]:{backgroundColor:Wn},[`&${he}-popup > ${he}`]:{backgroundColor:Xn},[`&${he}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${he}-item, > ${he}-submenu`]:{top:Bt,marginTop:-Bt,marginBottom:0,borderRadius:oa,"&::after":{position:"absolute",insetInline:ke,bottom:0,borderBottom:`${Ft}px solid transparent`,transition:`border-color ${on} ${We}`,content:'""'},"&:hover, &-active, &-open":{background:Dn,"&::after":{borderBottomWidth:Ft,borderBottomColor:Kn}},"&-selected":{color:Kn,backgroundColor:pn,"&:hover":{backgroundColor:pn},"&::after":{borderBottomWidth:Ft,borderBottomColor:Kn}}}}),[`&${he}-root`]:{[`&${he}-inline, &${he}-vertical`]:{borderInlineEnd:`${Bt}px ${Ht} ${Zt}`}},[`&${he}-inline`]:{[`${he}-sub${he}-inline`]:{background:ct},[`${he}-item, ${he}-submenu-title`]:Bt&&xt?{width:`calc(100% + ${Bt}px)`}:{},[`${he}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${xt}px solid ${He}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${gt} ${je}`,`opacity ${gt} ${je}`].join(","),content:'""'},[`&${he}-item-danger`]:{"&::after":{borderInlineEndColor:zn}}},[`${he}-selected, ${he}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${gt} ${We}`,`opacity ${gt} ${We}`].join(",")}}}}}};const Fn=ze=>{const{componentCls:Le,itemHeight:he,itemMarginInline:_e,padding:He,menuArrowSize:ot,marginXS:lt,itemMarginBlock:ct}=ze,wt=He+ot+lt;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:he,lineHeight:`${he}px`,paddingInline:He,overflow:"hidden",textOverflow:"ellipsis",marginInline:_e,marginBlock:ct,width:`calc(100% - ${_e*2}px)`},[`> ${Le}-item,
|
|
> ${Le}-submenu > ${Le}-submenu-title`]:{height:he,lineHeight:`${he}px`},[`${Le}-item-group-list ${Le}-submenu-title,
|
|
${Le}-submenu-title`]:{paddingInlineEnd:wt}}};var Ne=ze=>{const{componentCls:Le,iconCls:he,itemHeight:_e,colorTextLightSolid:He,dropdownWidth:ot,controlHeightLG:lt,motionDurationMid:ct,motionEaseOut:wt,paddingXL:Ft,itemMarginInline:xt,fontSizeLG:Bt,motionDurationSlow:on,paddingXS:We,boxShadowSecondary:je,collapsedWidth:ke,collapsedIconSize:gt}=ze,_t={height:_e,lineHeight:`${_e}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},Fn(ze))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},Fn(ze)),{boxShadow:je})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:ot,maxHeight:`calc(100vh - ${lt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${on}`,`background ${on}`,`padding ${ct} ${wt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:_t,[`& ${Le}-item-group-title`]:{paddingInlineStart:Ft}},[`${Le}-item`]:_t}},{[`${Le}-inline-collapsed`]:{width:ke,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:Bt,textAlign:"center"}}},[`> ${Le}-item,
|
|
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
|
|
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
|
|
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Bt/2}px - ${xt}px)`,textOverflow:"clip",[`
|
|
${Le}-submenu-arrow,
|
|
${Le}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Le}-item-icon, ${he}`]:{margin:0,fontSize:gt,lineHeight:`${_e}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${he}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${he}`]:{display:"none"},"a, a:hover":{color:He}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:We})}}]};const Xe=ze=>{const{componentCls:Le,motionDurationSlow:he,motionDurationMid:_e,motionEaseInOut:He,motionEaseOut:ot,iconCls:lt,iconSize:ct,iconMarginInlineEnd:wt}=ze;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${he}`,`background ${he}`,`padding ${he} ${He}`].join(","),[`${Le}-item-icon, ${lt}`]:{minWidth:ct,fontSize:ct,transition:[`font-size ${_e} ${ot}`,`margin ${he} ${He}`,`color ${he}`].join(","),"+ span":{marginInlineStart:wt,opacity:1,transition:[`opacity ${he} ${He}`,`margin ${he}`,`color ${he}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${Le}-item-only-child`]:{[`> ${lt}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Lt=ze=>{const{componentCls:Le,motionDurationSlow:he,motionEaseInOut:_e,borderRadius:He,menuArrowSize:ot,menuArrowOffset:lt}=ze;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ze.margin,width:ot,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${he} ${_e}, opacity ${he}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ot*.6,height:ot*.15,backgroundColor:"currentcolor",borderRadius:He,transition:[`background ${he} ${_e}`,`transform ${he} ${_e}`,`top ${he} ${_e}`,`color ${he} ${_e}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${lt})`},"&::after":{transform:`rotate(-45deg) translateY(${lt})`}}}}},Ue=ze=>{const{antCls:Le,componentCls:he,fontSize:_e,motionDurationSlow:He,motionDurationMid:ot,motionEaseInOut:lt,paddingXS:ct,padding:wt,colorSplit:Ft,lineWidth:xt,zIndexPopup:Bt,borderRadiusLG:on,subMenuItemBorderRadius:We,menuArrowSize:je,menuArrowOffset:ke,lineType:gt,menuPanelMaskInset:_t,groupTitleLineHeight:Ht,groupTitleFontSize:Zt}=ze;return[{"":{[`${he}`]:Object.assign(Object.assign({},(0,xe.dF)()),{"&-hidden":{display:"none"}})},[`${he}-submenu-hidden`]:{display:"none"}},{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(ze)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:_e,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${He} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${he}-item`]:{flex:"none"}},[`${he}-item, ${he}-submenu, ${he}-submenu-title`]:{borderRadius:ze.itemBorderRadius},[`${he}-item-group-title`]:{padding:`${ct}px ${wt}px`,fontSize:Zt,lineHeight:Ht,transition:`all ${He}`},[`&-horizontal ${he}-submenu`]:{transition:[`border-color ${He} ${lt}`,`background ${He} ${lt}`].join(",")},[`${he}-submenu, ${he}-submenu-inline`]:{transition:[`border-color ${He} ${lt}`,`background ${He} ${lt}`,`padding ${ot} ${lt}`].join(",")},[`${he}-submenu ${he}-sub`]:{cursor:"initial",transition:[`background ${He} ${lt}`,`padding ${He} ${lt}`].join(",")},[`${he}-title-content`]:{transition:`color ${He}`},[`${he}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${he}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ft,borderStyle:gt,borderWidth:0,borderTopWidth:xt,marginBlock:xt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xe(ze)),{[`${he}-item-group`]:{[`${he}-item-group-list`]:{margin:0,padding:0,[`${he}-item, ${he}-submenu-title`]:{paddingInline:`${_e*2}px ${wt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Bt,borderRadius:on,boxShadow:"none",transformOrigin:"0 0",[`&${he}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${_t}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:_t},"\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:ze.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ze.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ze.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ze.paddingXS},[`> ${he}`]:Object.assign(Object.assign(Object.assign({borderRadius:on},Xe(ze)),Lt(ze)),{[`${he}-item, ${he}-submenu > ${he}-submenu-title`]:{borderRadius:We},[`${he}-submenu-title::after`]:{transition:`transform ${He} ${lt}`}})}}),Lt(ze)),{[`&-inline-collapsed ${he}-submenu-arrow,
|
|
&-inline ${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ke})`},"&::after":{transform:`rotate(45deg) translateX(-${ke})`}},[`${he}-submenu-open${he}-submenu-inline > ${he}-submenu-title > ${he}-submenu-arrow`]:{transform:`translateY(-${je*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ke})`},"&::before":{transform:`rotate(45deg) translateX(${ke})`}}})},{[`${Le}-layout-header`]:{[he]:{lineHeight:"inherit"}}}]};var yt=(ze,Le)=>(0,kt.Z)("Menu",_e=>{if(Le===!1)return[];const{colorBgElevated:He,colorPrimary:ot,colorTextLightSolid:lt,controlHeightLG:ct,fontSize:wt,darkItemColor:Ft,darkDangerItemColor:xt,darkItemBg:Bt,darkSubMenuItemBg:on,darkItemSelectedColor:We,darkItemSelectedBg:je,darkDangerItemSelectedBg:ke,darkItemHoverBg:gt,darkGroupTitleColor:_t,darkItemHoverColor:Ht,darkItemDisabledColor:Zt,darkDangerItemHoverColor:Qt,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:Tt}=_e,zn=wt/7*5,Gt=(0,St.TS)(_e,{menuArrowSize:zn,menuHorizontalHeight:ct*1.15,menuArrowOffset:`${zn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:He}),ln=(0,St.TS)(Gt,{itemColor:Ft,itemHoverColor:Ht,groupTitleColor:_t,itemSelectedColor:We,itemBg:Bt,popupBg:Bt,subMenuItemBg:on,itemActiveBg:"transparent",itemSelectedBg:je,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:gt,itemDisabledColor:Zt,dangerItemColor:xt,dangerItemHoverColor:Qt,dangerItemSelectedColor:Pt,dangerItemActiveBg:Tt,dangerItemSelectedBg:ke,menuSubMenuBg:on,horizontalItemSelectedColor:lt,horizontalItemSelectedBg:ot});return[Ue(Gt),It(Gt),Ne(Gt),cn(Gt,"light"),cn(ln,"dark"),qt(Gt),(0,Ge.Z)(Gt),(0,at.oN)(Gt,"slide-up"),(0,at.oN)(Gt,"slide-down"),(0,pt._y)(Gt,"zoom-big")]},_e=>{const{colorPrimary:He,colorError:ot,colorTextDisabled:lt,colorErrorBg:ct,colorText:wt,colorTextDescription:Ft,colorBgContainer:xt,colorFillAlter:Bt,colorFillContent:on,lineWidth:We,lineWidthBold:je,controlItemBgActive:ke,colorBgTextHover:gt,controlHeightLG:_t,lineHeight:Ht,colorBgElevated:Zt,marginXXS:Qt,padding:Pt,fontSize:Tt,controlHeightSM:zn,fontSizeLG:Gt,colorTextLightSolid:ln,colorErrorHover:Sn}=_e,En=new me.C(ln).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:_e.zIndexPopupBase+50,radiusItem:_e.borderRadiusLG,itemBorderRadius:_e.borderRadiusLG,radiusSubMenuItem:_e.borderRadiusSM,subMenuItemBorderRadius:_e.borderRadiusSM,colorItemText:wt,itemColor:wt,colorItemTextHover:wt,itemHoverColor:wt,colorItemTextHoverHorizontal:He,horizontalItemHoverColor:He,colorGroupTitle:Ft,groupTitleColor:Ft,colorItemTextSelected:He,itemSelectedColor:He,colorItemTextSelectedHorizontal:He,horizontalItemSelectedColor:He,colorItemBg:xt,itemBg:xt,colorItemBgHover:gt,itemHoverBg:gt,colorItemBgActive:on,itemActiveBg:ke,colorSubItemBg:Bt,subMenuItemBg:Bt,colorItemBgSelected:ke,itemSelectedBg:ke,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:je,activeBarHeight:je,colorActiveBarBorderSize:We,activeBarBorderWidth:We,colorItemTextDisabled:lt,itemDisabledColor:lt,colorDangerItemText:ot,dangerItemColor:ot,colorDangerItemTextHover:ot,dangerItemHoverColor:ot,colorDangerItemTextSelected:ot,dangerItemSelectedColor:ot,colorDangerItemBgActive:ct,dangerItemActiveBg:ct,colorDangerItemBgSelected:ct,dangerItemSelectedBg:ct,itemMarginInline:_e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:_t,groupTitleLineHeight:Ht,collapsedWidth:_t*2,popupBg:Zt,itemMarginBlock:Qt,itemPaddingInline:Pt,horizontalLineHeight:`${_t*1.15}px`,iconSize:Tt,iconMarginInlineEnd:zn-Tt,collapsedIconSize:Gt,groupTitleFontSize:Tt,darkItemDisabledColor:new me.C(ln).setAlpha(.25).toRgbString(),darkItemColor:En,darkDangerItemColor:ot,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ln,darkItemSelectedBg:He,darkDangerItemSelectedBg:ot,darkItemHoverBg:"transparent",darkGroupTitleColor:En,darkItemHoverColor:ln,darkDangerItemHoverColor:Sn,darkDangerItemSelectedColor:ln,darkDangerItemActiveBg:ot}},{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"]]})(ze),de=function(ze,Le){var he={};for(var _e in ze)Object.prototype.hasOwnProperty.call(ze,_e)&&Le.indexOf(_e)<0&&(he[_e]=ze[_e]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,_e=Object.getOwnPropertySymbols(ze);He<_e.length;He++)Le.indexOf(_e[He])<0&&Object.prototype.propertyIsEnumerable.call(ze,_e[He])&&(he[_e[He]]=ze[_e[He]]);return he},Ct=(0,fe.forwardRef)((ze,Le)=>{var he,_e;const He=fe.useContext(oe.Z),ot=He||{},{getPrefixCls:lt,getPopupContainer:ct,direction:wt,menu:Ft}=fe.useContext(Ee.E_),xt=lt(),{prefixCls:Bt,className:on,style:We,theme:je="light",expandIcon:ke,_internalDisableMenuItemTitleTooltip:gt,inlineCollapsed:_t,siderCollapsed:Ht,items:Zt,children:Qt,rootClassName:Pt,mode:Tt,selectable:zn,onClick:Gt,overflowedIndicatorPopupClassName:ln}=ze,Sn=de(ze,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),En=(0,Te.Z)(Sn,["collapsedWidth"]),Wn=ce(Zt)||Qt;(he=ot.validator)===null||he===void 0||he.call(ot,{mode:Tt});const Kn=(0,ee.useEvent)(function(){var An;Gt==null||Gt.apply(void 0,arguments),(An=ot.onClick)===null||An===void 0||An.call(ot)}),pn=ot.mode||Tt,oa=zn!=null?zn:ot.selectable,Dn=fe.useMemo(()=>Ht!==void 0?Ht:_t,[_t,Ht]),Xn={horizontal:{motionName:`${xt}-slide-up`},inline:(0,te.Z)(xt),other:{motionName:`${xt}-zoom-big`}},jt=lt("menu",Bt||ot.prefixCls),[wn,Cn]=yt(jt,!He),Jn=ue()(`${jt}-${je}`,Ft==null?void 0:Ft.className,on);let xn;if(typeof ke=="function")xn=ke;else if(ke===null||ke===!1)xn=null;else if(ot.expandIcon===null||ot.expandIcon===!1)xn=null;else{const An=ke!=null?ke:ot.expandIcon;xn=(0,Ce.Tm)(An,{className:ue()(`${jt}-submenu-expand-icon`,(0,Ce.l$)(An)?(_e=An.props)===null||_e===void 0?void 0:_e.className:"")})}const va=fe.useMemo(()=>({prefixCls:jt,inlineCollapsed:Dn||!1,direction:wt,firstLevel:!0,theme:je,mode:pn,disableMenuItemTitleTooltip:gt}),[jt,Dn,wt,gt,je]);return wn(fe.createElement(oe.Z.Provider,{value:null},fe.createElement(a.Provider,{value:va},fe.createElement(ae.ZP,Object.assign({getPopupContainer:ct,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ue()(jt,`${jt}-${je}`,ln),mode:pn,selectable:oa,onClick:Kn},En,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),We),className:Jn,prefixCls:jt,direction:wt,defaultMotions:Xn,expandIcon:xn,ref:Le,rootClassName:ue()(Pt,Cn)}),Wn))))});const Vt=(0,fe.forwardRef)((ze,Le)=>{const he=(0,fe.useRef)(null),_e=fe.useContext(De.D);return(0,fe.useImperativeHandle)(Le,()=>({menu:he.current,focus:He=>{var ot;(ot=he.current)===null||ot===void 0||ot.focus(He)}})),fe.createElement(Ct,Object.assign({ref:he},ze,_e))});Vt.Item=x,Vt.SubMenu=E,Vt.Divider=Be,Vt.ItemGroup=ae.BW;var Rt=Vt},8224:function(ye,Ye,ge){"use strict";ge.d(Ye,{Z:function(){return fe}});var ae=ge(4676);function fe(De,Oe,ue,Ee){var se=ae.unstable_batchedUpdates?function(Be){ae.unstable_batchedUpdates(ue,Be)}:ue;return De!=null&&De.addEventListener&&De.addEventListener(Oe,se,Ee),{remove:function(){De!=null&&De.removeEventListener&&De.removeEventListener(Oe,se,Ee)}}}},55468:function(ye,Ye,ge){"use strict";ge.d(Ye,{g1:function(){return Te},os:function(){return Ce}});var ae=/margin|padding|width|height|max|min|offset/,fe={left:!0,top:!0},De={cssFloat:1,styleFloat:1,float:1};function Oe(ne){return ne.nodeType===1?ne.ownerDocument.defaultView.getComputedStyle(ne,null):{}}function ue(ne,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ne.offsetHeight;if(a==="width")return ne.offsetWidth}return a in fe||(fe[a]=ae.test(a)),fe[a]?parseFloat(y)||0:y}function Ee(ne,a){var y=arguments.length,x=Oe(ne);return a=De[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,y===1?x:ue(ne,a,x[a]||ne.style[a])}function se(ne,a,y){var x=arguments.length;if(a=De[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,x===3)return typeof y=="number"&&ae.test(a)&&(y="".concat(y,"px")),ne.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&se(ne,b,a[b]);return Oe(ne)}function Re(ne){return ne===document.body?document.documentElement.clientWidth:ne.offsetWidth}function Be(ne){return ne===document.body?window.innerHeight||document.documentElement.clientHeight:ne.offsetHeight}function Me(){var ne=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ne,height:a}}function Te(){var ne=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ne,height:a}}function Ie(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ce(ne){var a=ne.getBoundingClientRect(),y=document.documentElement;return{left:a.left+(window.pageXOffset||y.scrollLeft)-(y.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||y.scrollTop)-(y.clientTop||document.body.clientTop||0)}}},51581:function(ye,Ye,ge){"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var ae=function(){function Ie(Ce,ne){for(var a=0;a<ne.length;a++){var y=ne[a];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(Ce,y.key,y)}}return function(Ce,ne,a){return ne&&Ie(Ce.prototype,ne),a&&Ie(Ce,a),Ce}}(),fe=ge(59301),De=Ee(fe),Oe=ge(12708),ue=Ee(Oe);function Ee(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}}function se(Ie,Ce){var ne={};for(var a in Ie)Ce.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(Ie,a)&&(ne[a]=Ie[a]);return ne}function Re(Ie,Ce){if(!(Ie instanceof Ce))throw new TypeError("Cannot call a class as a function")}function Be(Ie,Ce){if(!Ie)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ce&&(typeof Ce=="object"||typeof Ce=="function")?Ce:Ie}function Me(Ie,Ce){if(typeof Ce!="function"&&Ce!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ce);Ie.prototype=Object.create(Ce&&Ce.prototype,{constructor:{value:Ie,enumerable:!1,writable:!0,configurable:!0}}),Ce&&(Object.setPrototypeOf?Object.setPrototypeOf(Ie,Ce):Ie.__proto__=Ce)}var Te=function(Ie){Me(Ce,Ie);function Ce(ne){Re(this,Ce);var a=Be(this,(Ce.__proto__||Object.getPrototypeOf(Ce)).call(this,ne));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return ae(Ce,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var a=this.getParentElement(this.scrollComponent);a.scrollTop=a.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var a=!1,y={get passive(){a=!0}};try{document.addEventListener("test",null,y),document.removeEventListener("test",null,y)}catch(x){}return a}},{key:"eventListenerOptions",value:function(){var a=this.props.useCapture;return this.isPassiveSupported()&&(a={useCapture:this.props.useCapture,passive:!0}),a}},{key:"setDefaultLoader",value:function(a){this.defaultLoader=a}},{key:"detachMousewheelListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.scrollComponent.parentNode),a.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.getParentElement(this.scrollComponent)),a.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(a){var y=this.props.getScrollParent&&this.props.getScrollParent();return y!=null?y:a&&a.parentNode}},{key:"filterProps",value:function(a){return a}},{key:"attachScrollListener",value:function(){var a=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!a)){var y=window;this.props.useWindow===!1&&(y=a),y.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),y.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),y.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(a){a.deltaY===1&&!this.isPassiveSupported()&&a.preventDefault()}},{key:"scrollListener",value:function(){var a=this.scrollComponent,y=window,x=this.getParentElement(a),b=void 0;if(this.props.useWindow){var E=document.documentElement||document.body.parentNode||document.body,z=y.pageYOffset!==void 0?y.pageYOffset:E.scrollTop;this.props.isReverse?b=z:b=this.calculateOffset(a,z)}else this.props.isReverse?b=x.scrollTop:b=a.scrollHeight-x.scrollTop-x.clientHeight;b<Number(this.props.threshold)&&a&&a.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=x.scrollHeight,this.beforeScrollTop=x.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(a,y){return a?this.calculateTopPosition(a)+(a.offsetHeight-y-window.innerHeight):0}},{key:"calculateTopPosition",value:function(a){return a?a.offsetTop+this.calculateTopPosition(a.offsetParent):0}},{key:"render",value:function(){var a=this,y=this.filterProps(this.props),x=y.children,b=y.element,E=y.hasMore,z=y.initialLoad,ee=y.isReverse,te=y.loader,oe=y.loadMore,re=y.pageStart,ie=y.ref,ce=y.threshold,me=y.useCapture,xe=y.useWindow,Ge=y.getScrollParent,at=se(y,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);at.ref=function(kt){a.scrollComponent=kt,ie&&ie(kt)};var pt=[x];return E&&(te?ee?pt.unshift(te):pt.push(te):this.defaultLoader&&(ee?pt.unshift(this.defaultLoader):pt.push(this.defaultLoader))),De.default.createElement(b,at,pt)}}]),Ce}(fe.Component);Te.propTypes={children:ue.default.node.isRequired,element:ue.default.node,hasMore:ue.default.bool,initialLoad:ue.default.bool,isReverse:ue.default.bool,loader:ue.default.node,loadMore:ue.default.func.isRequired,pageStart:ue.default.number,ref:ue.default.func,getScrollParent:ue.default.func,threshold:ue.default.number,useCapture:ue.default.bool,useWindow:ue.default.bool},Te.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},Ye.default=Te,ye.exports=Ye.default},26724:function(ye,Ye,ge){ye.exports=ge(51581)}}]);
|