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.
130 lines
384 KiB
130 lines
384 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[508],{26227:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return _e}});var te=ge(54476),fe=ge(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},De=He,le=ge(7657),Ce=function(Me,Ae){return fe.createElement(le.Z,(0,te.Z)({},Me,{ref:Ae,icon:De}))},se=fe.forwardRef(Ce),_e=se},87169:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return _e}});var te=ge(54476),fe=ge(59301),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},De=He,le=ge(7657),Ce=function(Me,Ae){return fe.createElement(le.Z,(0,te.Z)({},Me,{ref:Ae,icon:De}))},se=fe.forwardRef(Ce),_e=se},33853:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return _e}});var te=ge(54476),fe=ge(59301),He={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"},De=He,le=ge(7657),Ce=function(Me,Ae){return fe.createElement(le.Z,(0,te.Z)({},Me,{ref:Ae,icon:De}))},se=fe.forwardRef(Ce),_e=se},38819:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return _e}});var te=ge(54476),fe=ge(59301),He={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"},De=He,le=ge(7657),Ce=function(Me,Ae){return fe.createElement(le.Z,(0,te.Z)({},Me,{ref:Ae,icon:De}))},se=fe.forwardRef(Ce),_e=se},21933:function(be,ot){"use strict";ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52050:function(){"use strict";function be(ae,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(be.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(be.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(be.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(be.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof be))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[ae];x||(x=[],go.Shape._FigureParameters[ae]=x),x[a]=y};var ot=[];function ge(ae,a){var y=ot.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=ot.pop();return ae===void 0?new go.Point:ae}function fe(ae){ot.push(ae)}function He(ae,a,y,x,b,E,z,ee,ne){ne||(ne=new go.Point);var oe=ae-y,re=b-z,ie=NaN,ce=NaN;if(oe===0)if(re===0)ae===y&&(ie=ae,ce=a);else{var me=(E-ee)/re,Fe=E-me*b;ie=ae,ce=me*ie+Fe}else if(re===0){var $e=(a-x)/oe,St=a-$e*ae;ie=b,ce=$e*ie+St}else{var $e=(a-x)/oe,me=(E-ee)/re,St=a-$e*ae,Fe=E-me*b;ie=(Fe-St)/($e-me),ce=$e*ie+St}return ne.x=ie,ne.y=ce,ne}function De(ae,a,y,x,b,E,z,ee,ne,oe,re,ie,ce,me){var Fe=1-ne,$e=ne,St=ae*Fe+y*$e,Nt=a*Fe+x*$e,Wt=y*Fe+b*$e,ye=x*Fe+E*$e,Ye=b*Fe+z*$e,nt=E*Fe+ee*$e,Qe=St*Fe+Wt*$e,lt=Nt*Fe+ye*$e,Dt=Wt*Fe+Ye*$e,Tt=ye*Fe+nt*$e,At=Qe*Fe+Dt*$e,Vt=lt*Fe+Tt*$e;oe.x=St,oe.y=Nt,re.x=Qe,re.y=lt,ie.x=At,ie.y=Vt,ce.x=Dt,ce.y=Tt,me.x=Ye,me.y=nt}var le=new go.Spot(.156,.156),Ce=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new be("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var x=ae?ae.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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var 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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var 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(ae,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=le,b.spot2=Ce,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new be("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var x=ae?ae.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 be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var x=ae?ae.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 be("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var x=ae?ae.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 be("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var x=ae?ae.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 be("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var x=ae?ae.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 _e=[];function Ne(){var ae=_e.pop();return ae===void 0?[]:ae}function Me(ae){ae.length=0,_e.push(ae)}function Ae(ae){for(var a=Ne(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ae;z++)E=2*Math.PI/ae*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function ze(ae){var a=Be(ae),y=Ne();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 Be(ae){for(var a=Ae(ae),y=Ne(),x=Math.floor(a.length/2),b=a.length-1,E=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],oe=a[(x+z-1)%b],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=He(ee.x,ee.y,oe.x,oe.y,ne.x,ne.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],Me(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var x=Ae(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(ae,a,y){var x=Ae(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(ae,a,y){var x=Ae(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(ae,a,y){var x=Ae(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(ae,a,y){var x=Ae(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(ae,a,y){var x=Ae(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(ae,a,y){var x=Ae(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(ae,a,y){var x=Be(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(ae,a,y){var x=Be(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(ae,a,y){var x=Be(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(ae,a,y){var x=Be(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(ae,a,y){var x=Be(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(ae,a,y){var x=Be(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(ae,a,y){var x=ze(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(ae,a,y){var x=ze(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(ae,a,y){var x=ze(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(ae,a,y){var x=ze(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(ae,a,y){var x=ze(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(ae,a,y){var x=ze(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 be("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new be("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var x=ae?ae.parameter1:NaN,b=ae?ae.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 be("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var x=ae?ae.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=le,E.spot2=Ce,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var 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 be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new be("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var x=ae?ae.parameter1:NaN,b=ae?ae.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(ae,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 be("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var x=ae?ae.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 be("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var x=ae?ae.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 be("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var x=ae?ae.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),ne=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(ne,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-ne,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-ne,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,ne,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 be("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var x=ae?ae.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 be("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var x=ae?ae.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 be("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var x=ae?ae.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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var 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,ne=E*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-ne+ee-.02)*y)),E=.2,z=0,ee=-.3,ne=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,ne=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+ne+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-E)*y);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.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=te(),re=te(),ie=te(),ce=te();De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,ce,ce);var me=te(),Fe=te(),$e=te();De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ce,ce,$e,me,Fe);var St=te(),Nt=te(),Wt=te();De(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,St,Nt,Wt,ce,ce);var ye=te(),Ye=te(),nt=te();return De(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ce,ce,nt,ye,Ye),ne.add(new go.PathSegment(go.PathSegment.Move,nt.x*a,nt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ye.x*a,ye.y*y,Ye.x*a,Ye.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ne.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)),ne.add(new go.PathSegment(go.PathSegment.Line,nt.x*a,nt.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Wt.x*a,Wt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,$e.x*a,$e.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,Fe.x*a,Fe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Wt.x*a,Wt.y*y,St.x*a,St.y*y,Nt.x*a,Nt.y*y).close()),fe(oe),fe(re),fe(ie),fe(ce),fe(me),fe(Fe),fe($e),fe(St),fe(Nt),fe(Wt),fe(ye),fe(Ye),fe(nt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new be("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var x=ae?ae.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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var x=new go.Geometry,b=se*.4,E=.4,z=.5,ee=.5,ne=te(),oe=te(),re=te(),ie=te(),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)),De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,ne,ne),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);De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,ne,ne,oe,re,ie);var Fe=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,(Fe.x*.1+.9)*a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,(Fe.y*.1+.05*.9)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.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 $e=new go.PathFigure(z*a,(ee-E)*y,!1);x.add($e),$e.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.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.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.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 St=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(St),fe(ne),fe(oe),fe(re),fe(ie),fe(me),fe(Fe),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(ae,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*se,ne=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(ne),ne.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)),ne.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)),ne.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)),ne.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)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*se;var ne=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(ne),ne.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)),ne.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)),ne.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)),ne.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 ne=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(ne),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(ae,a,y){var x=ae?ae.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(ae,a,y){var x=ae?ae.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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var 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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var 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(ae,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 be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new be("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.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()),ne.spot1=new go.Spot(0,z/y);var re=He(0,ee/y,1,ee/y,E/a,1,1,.5,te());return ne.spot2=new go.Spot(re.x,re.y),fe(re),ne}),go.Shape.setFigureParameter("Arrow2",0,new be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new be("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,ne=new go.Geometry,oe=new go.PathFigure(0,z,!0);ne.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()),ne.spot1=new go.Spot(0,z/y);var re=He(0,ee/y,1,ee/y,E/a,1,1,.5,te());return ne.spot2=new go.Spot(re.x,re.y),fe(re),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,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(ae,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 be("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var x=ae?ae.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 ne=He(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=He(.7,1,1,.5,0,E/y,1,E/y,ne),z.spot2=new go.Spot(ne.x,ne.y),fe(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new be("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,ne=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,ne=y):(E=0,z=y,ee=0,ne=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,ne)),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,ne)),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=He(0,.5,.3,ee/y,0,E/y,1,E/y,te());return oe.spot1=new go.Spot(ie.x,ie.y),ie=He(.7,ne/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 be("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var x=ae?ae.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 ne=He(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),fe(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new be("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,ne=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,ne=y):(E=0,z=y,ee=0,ne=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,ne)),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,ne)),re.add(new go.PathSegment(go.PathSegment.Line,0,ne)),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=He(.7,ne/y,1,.5,0,z/y,1,z/y,te());return oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new be("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var x=ae?ae.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=He(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new be("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var x=ae?ae.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=He(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new be("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var x=ae?ae.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 ne=He(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),fe(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new be("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var x=ae?ae.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 ne=He(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),fe(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new be("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var x=ae?ae.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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=ae?ae.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(ae,a,y){var x=ae?ae.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(ae,a,y){var x=ae?ae.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(ae,a,y){var x=ae?ae.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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=.2,E=.1,z=se*b,ee=se*E,ne=.5,oe=.1,re=new go.PathFigure(ne*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,oe*y,(ne-z)*a,(oe+E)*y,(ne-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-E)*y,(ne-b)*a,(oe-ee)*y,(ne-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,oe*y,(ne+z)*a,(oe-E)*y,(ne+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+E)*y,(ne+b)*a,(oe+ee)*y,(ne+z)*a,(oe+E)*y));var ie=.05,ce=se*ie;ne=.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)),ne=.95,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ie)*a,oe*y,(ne+ce)*a,(oe-ie)*y,(ne+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,ne=.825,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ce)*y,(ne+ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ce)*a,(oe-ie)*y,(ne-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,ne=.5,oe=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ce)*y,(ne+ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ce)*a,(oe-ie)*y,(ne-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,ne=.175,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ce)*y,(ne+ce)*a,(oe-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ce)*a,(oe-ie)*y,(ne-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,ne=.05,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne-ie)*a,(oe-ce)*y,(ne-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 be("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var x=ae?ae.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.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(ae,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.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(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var x=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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 ne=new go.PathFigure(.8*a,.75*y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ae,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(ae,a,y){var x=new go.Geometry,b=se*.1,E=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.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(ae,a,y){var x=new go.Geometry,b=se*.5,E=se*.4,z=se*.1,ee=.1,ne=.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((ne+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,oe*y,(ne-z)*a,(oe+ee)*y,(ne-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,oe*y,(ne+z)*a,(oe-ee)*y,(ne+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(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.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(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),ne.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(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);x.add(ne),ne.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(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);x.add(ne),ne.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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.1,E=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,ne.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(ae,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=.5,ee=.5,ne=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),ne.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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,ne=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,ce=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+re,oe*y+ie,ne*a+re,(oe-ee)*y+ie,(ne-ee+z*.5)*a+re,(oe-z)*y+ie)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne-ee+z*.5)*a+re,(oe+z)*y+ie,ne*a+re,(oe+ee)*y+ie).close()),z=se*.4,ee=.4,ne=.2,oe=.5;var me=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+re,oe*y+ie,ne*a+re,(oe-ee)*y+ie,(ne-ee+z*.5)*a+re,(oe-z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne-ee+z*.5)*a+re,(oe+z)*y+ie,ne*a+re,(oe+ee)*y+ie).close()),z=se*.2,ee=.2,ne=.5,oe=.5;var Fe=new go.PathFigure((ne-ee)*a+re,oe*y+ie,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne-ee)*a+re,(oe-z)*y+ie,(ne-z)*a+re,(oe-ee)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+re,oe*y+ie,(ne-z)*a+re,(oe+ee)*y+ie,(ne-ee)*a+re,(oe+z)*y+ie)),z=se*.4,ee=.4,ne=.8,oe=.5;var $e=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);x.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).close()),z=se*.8,ee=.8,ne=1,oe=.5;var St=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);return x.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),St.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),St.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),St.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=se*.4,E=.4,z=.5,ee=.5,ne=te(),oe=te(),re=te(),ie=te();De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,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)),De(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,ne,ne),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,De(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,ne,ne),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)),De(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,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(ne),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(ae,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,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*se,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,ce=.5,me=0,Fe=new go.PathFigure(ne*a,(1-oe)*y,!1);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Fe.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)),Fe.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)),Fe.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)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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,ne=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,ce=z,me=z,Fe=re*ce,$e=re*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ce)*a,ne*y,(ee-(Fe+ce)/2)*a,(ne+(me+$e)/2)*y,(ee-ce)*a,(ne+$e)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-me)*y,(ee-ce)*a,(ne-$e)*y,(ee-Fe)*a,(ne-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ce)*a,ne*y,(ee+Fe)*a,(ne-me)*y,(ee+ce)*a,(ne-$e)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ce)*a,(ne+$e)*y,(ee+(Fe+ce)/2)*a,(ne+(me+$e)/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 St=new go.PathFigure(.2*a,y,!1);x.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Nt=new go.PathFigure(.8*a,y,!1);return x.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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,ne=.2,oe=.9,re=new go.PathFigure((ne-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,ne=.8,oe=.9;var ie=new go.PathFigure((ne-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-z)*y,(ne-z)*a,(oe-ee)*y,(ne-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,oe*y,(ne+ee)*a,(oe-z)*y,(ne+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe+z)*y,(ne+z)*a,(oe+ee)*y,(ne+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,oe*y,(ne-ee)*a,(oe+z)*y,(ne-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,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(ae,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 ne=.1,oe=se*.1,re=.1,ie=.9,ce=new go.PathFigure((re-ne)*a,ie*y,!0);x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ie*y,(re-oe)*a,(ie+ne)*y,(re-ne)*a,(ie+oe)*y)),ne=.1,oe=se*.1,re=.4,ie=.9;var me=new go.PathFigure((re-ne)*a,ie*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ie*y,(re-oe)*a,(ie+ne)*y,(re-ne)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ae,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,ne=new go.PathFigure((ce-re)*a,me*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me-re)*y,(ce-re)*a,(me-ie)*y,(ce-ie)*a,(me-re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,me*y,(ce+ie)*a,(me-re)*y,(ce+re)*a,(me-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me+re)*y,(ce+re)*a,(me+ie)*y,(ce+ie)*a,(me+re)*y)),ne.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,Fe=new go.PathFigure((ce-re)*a,me*y,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me-re)*y,(ce-re)*a,(me-ie)*y,(ce-ie)*a,(me-re)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,me*y,(ce+ie)*a,(me-re)*y,(ce+re)*a,(me-ie)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(me+re)*y,(ce+re)*a,(me+ie)*y,(ce+ie)*a,(me+re)*y)),Fe.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 $e=new go.PathFigure(0,y,!1);return x.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ae,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,ne=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-ne)*y,(oe-ne)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+ne)*a,(re-ee)*y,(oe+ee)*a,(re-ne)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+ne)*y,(oe+ne)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-ne)*a,(re+ee)*y,(oe-ee)*a,(re+ne)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=.3,E=se*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.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(ae,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(ae,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(ae,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(ae,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.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(ae,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(ae,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ne.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(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var 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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var 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(ae,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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var 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 ne=new go.PathFigure(.5*a,.1*y,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ae,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(ae,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 ne=new go.PathFigure(a*.816,y,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ae,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 ne=new go.PathFigure(a*1,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ae,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(ae,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(ae,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 ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,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 ne=new go.PathFigure(a*.83,y*1,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.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(ae,a,y){var x=ae?ae.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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var 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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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")},72951: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 be={},ot="5.0",ge={},te=null,fe=!1,He=!1,De=null,le=!1,Ce=null,se=null,_e=0;_e<arguments.length;_e++){var Ne=arguments[_e];if(Ne!==null)switch(typeof Ne){case"number":ot=Ne.toFixed(1);break;case"string":Ne.match(new RegExp("^[0-9]\\.[0-9]+$"))?ot=Ne:De=Ne;break;case"object":typeof Ne.is3D!="undefined"?te=Ne:ge=Ne;break;case"boolean":fe=Ne,He=!0;break}}te===null&&(te={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&&!He&&(fe=!0)),De!==null&&ge.id===void 0&&(ge.id=De);var Me="",Ae="",ze=!1,Be=null,ae=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 ne=function(we){return parseFloat(we)>4?parseFloat(we):5};be.setHTML5Codebase=function(we,Ee){se=we,Tt(we,Ee)},be.setJavaCodebase=be.setJavaCodebaseVersion=be.isCompiledInstalled=be.setPreCompiledScriptPath=be.setPreCompiledResourcePath=function(){},be.setHTML5CodebaseVersion=function(we,Ee){var Ve=parseFloat(we);if(Ve!==NaN&&Ve<5){console.log("The GeoGebra HTML5 codebase version "+Ve+" is deprecated. Using version latest instead.");return}Ce=we,Dt(we,Ee)},be.getHTML5CodebaseVersion=function(){return ae},be.getParameters=function(){return ge},be.setFontsCSSURL=function(we){z=we},be.setGiacJSURL=function(we){},be.setJNLPFile=function(we){Me=we},be.setJNLPBaseDir=function(we){},be.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ee="auto",Ve=ge.id,Lt,qe=!1,pt=0;pt<arguments.length;pt++){var de=arguments[pt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ee=de:Ve=arguments[pt]):typeof de=="boolean"?qe=de:de instanceof HTMLElement&&(Lt=de)}et();function et(){if(!le){setTimeout(et,200);return}Ee=Qe(Ee);var Ot=Lt||document.getElementById(Ve);if(!Ot){console.log("possibly bug on ajax loading? ");return}if(be.removeExistingApplet(Ot,!1),ge.width===void 0&&Ot.clientWidth&&(ge.width=Ot.clientWidth),ge.height===void 0&&Ot.clientHeight&&(ge.height=Ot.clientHeight),!(ge.width&&ge.height)&&Ee==="html5"&&(delete ge.width,delete ge.height),Be=Ee,Ee==="screenshot")Nt(Ot,ge);else{var _t=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?_t=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(_t=(!oe()||we())&&re()),_t?(Be="screenshot",ye(Ot,ge,qe,Ee)):St(Ot,ge,qe)}}};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}be.getViews=function(){return te},be.isJavaInstalled=function(){return!1};var ie=function(we){var Ee=function(pt){var de=JSON.parse(pt),et=function(Gt){return Gt.type=="G"||Gt.type=="E"},Ot=de.elements?de.elements.filter(et)[0]:de;if(!Ot||!Ot.url){Ve();return}ge.fileName=Ot.url,ce(Ot.settings||{}),te.is3D=!0;var _t="https://www.geogebra.org/images/";be.setPreviewImage(x||Ot.previewUrl,_t+"GeoGebra_loading.png",_t+"applet_play.png"),we()},Ve=function(){ge.onError&&ge.onError(),At("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",qe="/materials/"+ge.material_id+"?scope=basic";me("https://"+Lt+"/api/proxy.php?path="+encodeURIComponent(qe),Ee,Ve)};function ce(we){var Ee=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ve){we[Ve]=!!we[Ve]}),Ee.forEach(function(Ve){ge[Ve]===void 0&&we[Ve]!==void 0&&(ge[Ve]=we[Ve])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function me(we,Ee,Ve){var Lt=new XMLHttpRequest;Lt.open("GET",we),Lt.onload=function(){Ee(Lt.responseText)},Lt.onerror=Ve,Lt.send()}be.isHTML5Installed=function(){return!0},be.getLoadedAppletType=function(){return Be},be.setPreviewImage=function(we,Ee,Ve){x=we,b=Ee,E=Ve},be.removeExistingApplet=function(we,Ee){var Ve;typeof we=="string"&&(we=document.getElementById(we)),Be=null;var Lt=null;for(Ve=0;Ve<we.childNodes.length;Ve++){var qe=we.childNodes[Ve],pt=qe.className;pt==="applet_screenshot"?Ee?(qe.style.display="block",Be="screenshot"):qe.style.display="none":pt!=="applet_scaler prerender"&&(we.removeChild(qe),Lt=pt&&pt.indexOf("appletParameters")!=-1?qe.id:null,Ve--)}var de=ge.id!==void 0?ge.id:Lt,et=window[de];et&&typeof et.getBase64=="function"&&(et.remove(),window[de]=null)},be.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=be.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},be.startAnimation=function(){var we=be.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},be.stopAnimation=function(){var we=be.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},be.getAppletObject=function(){var we=ge.id!==void 0?ge.id:"ggbApplet";return window[we]},be.resize=function(){};var Fe=function(we,Ee,Ve){var Lt=document.createElement("param");Lt.setAttribute("name",Ee),Lt.setAttribute("value",Ve),we.appendChild(Lt)},$e=function(we){return we&&we!=="false"},St=function(we,Ee,Ve){ne(ae)<=4.2&&(Ve=!0);var Lt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Lt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var qe=document.createElement("div");qe.classList.add("appletParameters","notranslate");var pt=Ee.width,de=Ee.height;if(Ee.disableAutoScale=Ee.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ee.disableAutoScale,Ee.width!==void 0)if(ne(ae)<=4.4)$e(Ee.showToolBar)&&(Ee.height-=7),$e(Ee.showAlgebraInput)&&(Ee.height-=37),Ee.width<605&&$e(Ee.showToolBar)&&(Ee.width=605,pt=605);else{var et=100;($e(Ee.showToolBar)||$e(Ee.showMenuBar))&&(Ee.hasOwnProperty("customToolBar")&&(Ee.customToolbar=Ee.customToolBar),et=$e(Ee.showMenuBar)?245:155),pt<et&&(Ee.width=et,pt=et)}qe.style.border="none",qe.style.display="inline-block";for(var Ot in Ee)Ee.hasOwnProperty(Ot)&&Ot!=="appletOnLoad"&&qe.setAttribute("data-param-"+Ot,Ee[Ot]);z&&qe.setAttribute("data-param-fontscssurl",z),be.resize=function(){GGBAppletUtils.responsiveResize(we,Ee)},window.addEventListener("resize",function(vt){be.resize()});var _t=typeof Ee.appletOnLoad=="function"?Ee.appletOnLoad:function(){};if(!Ve&&Ee.width!==void 0){Ee.hasOwnProperty("showSplash")||qe.setAttribute("data-param-showSplash","false");var Gt=we.querySelector(".applet_scaler.prerender"),Ge=Gt!==null;if(Ge)var Le=Gt.querySelector(".ggb_preview");else{var Le=nt(pt,de,Ee.borderColor,!1);Gt=document.createElement("div"),Gt.className="applet_scaler",Gt.style.position="relative",Gt.style.display="block",Gt.style.width=pt+"px",Gt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Gt,"66%"),ne(ae)>=5?(Ee.appletOnLoad=function(vt){var It=we.querySelector(".ggb_preview");It&&It.parentNode.removeChild(It),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Gt),window.GGBT_wsf_view&&$(window).trigger("resize"),_t(vt)},Ge||Gt.appendChild(Le)):qe.appendChild(Le),Gt.appendChild(qe),Ge||we.appendChild(Gt),setTimeout(function(){be.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(qe),we.appendChild(Pe),Ee.appletOnLoad=function(vt){be.resize(),_t(vt)}}function Ie(vt,It){It&&typeof It.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(vt,It.appletOnLoad):renderGGBElement(vt),At("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",It)}function je(vt,It){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:vt,params:It}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(nn){Ie(nn.article,nn.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(vt.className+=" geogebraweb")):Ie(vt,It)}if(Lt){scriptLoadStarted=!0;for(var rt=0;rt<qe.childNodes.length;rt++){var ft=qe.childNodes[rt].tagName;ft==="TABLE"&&(qe.removeChild(qe.childNodes[rt]),rt--)}if(ggbHTML5LoadedScript!==null){var wt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');wt!=null&&wt.parentNode.removeChild(wt)}var yt=document.createElement("script"),zt=function(){je(qe,Ee)};yt.src=Ae+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=yt.src,At("GeoGebra HTML5 codebase loaded: '"+Ae+"'.",Ee),!se&&(!Ce||Ce=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),zt()):Ae.requirejs?__webpack_require__.e(9608).then(function(){var vt=[__webpack_require__(89608)];zt.apply(null,vt)}.bind(this)).catch(__webpack_require__.oe):(yt.onload=zt,we.appendChild(yt))}else je(qe,Ee);Ee.height=de,Ee.width=pt},Nt=function(we,Ee,Ve){var Lt=nt(Ee.width,Ee.height,Ee.borderColor,Ve),qe=document.createElement("div");qe.style.position="relative",qe.style.display="block",qe.style.width=Ee.width+"px",qe.style.height=Ee.height+"px",qe.className="applet_screenshot applet_scaler"+(Ve?" applet_screenshot_play":""),qe.appendChild(Lt);var pt=GGBAppletUtils.getScale(Ee,we,Ve);Ve?(we.appendChild(Ye()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(qe,"66%"),we.appendChild(qe),pt!==1&&!isNaN(pt)&&(GGBAppletUtils.scaleElement(qe,pt),qe.style.width=Ee.width+"px",qe.style.height=Ee.height+"px",qe.parentNode.style.width=Ee.width*pt+"px",qe.parentNode.style.height=Ee.height*pt+"px"),be.resize=function(){Wt(we,Lt,qe,Ve)},window.addEventListener("resize",function(de){be.resize()}),be.resize()};function Wt(we,Ee,Ve,Lt){if(we.contains(Ee)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var qe=GGBAppletUtils.getScale(ge,we,Lt);Ve.parentNode!==null&&(!isNaN(qe)&&qe!==1?(GGBAppletUtils.scaleElement(Ve,qe),Ve.parentNode.style.width=ge.width*qe+"px",Ve.parentNode.style.height=ge.height*qe+"px"):(GGBAppletUtils.scaleElement(Ve,1),Ve.parentNode.style.width=ge.width+"px",Ve.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()}}be.onExitFullscreen=function(we,Ee){Ee.appendChild(we)};var ye=function(we,Ee,Ve,Lt){Nt(we,Ee,!0);for(var qe=function(){var et=[];for(de=0;de<we.childNodes.length;de++)et.push(we.childNodes[de]);if(window.GGBT_wsf_view){var Ot=window.GGBT_wsf_view.renderFullScreen(we,Ee.id),_t=document.getElementById("fullscreencontainer"),Gt=jQuery(we).find(".fullscreencontent");Gt.length>0?(Ot.remove(),Gt.attr("id","fullscreencontent").show(),jQuery(_t).append(Gt),window.dispatchEvent(new Event("resize"))):St(Ot,Ee,!1),window.GGBT_wsf_view.launchFullScreen(_t)}else Be=Lt,St(we,Ee,!1);if(!window.GGBT_wsf_view)for(de=0;de<et.length;de++)we.removeChild(et[de])},pt=we.getElementsByClassName("ggb_preview_play"),de=0;de<pt.length;de++)pt[de].addEventListener("click",qe,!1),pt[de].addEventListener("ontouchstart",qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ye=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ee='.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");}',Ve=document.createElement("style");Ve.styleSheet?Ve.styleSheet.cssText=Ee:Ve.appendChild(document.createTextNode(Ee)),document.getElementsByTagName("head")[0].appendChild(Ve)}return we},nt=function(we,Ee,Ve,Lt){var qe=document.createElement("div");qe.className="ggb_preview",qe.style.position="absolute",qe.style.zIndex="90",qe.style.width=we-2+"px",qe.style.height=Ee-2+"px",qe.style.top="0px",qe.style.left="0px",qe.style.overflow="hidden",qe.style.backgroundColor="white";var pt="lightgrey";Ve!==void 0&&(Ve==="none"?pt="transparent":pt=Ve),qe.style.border="1px solid "+pt;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,Ot,_t;if(!Lt){et=document.createElement("img"),et.style.position="absolute",et.style.zIndex="1001",et.style.opacity=1,de.style.opacity=.3,Ot=360,Ot>we/4*3&&(Ot=we/4*3),_t=Ot/5.8,et.setAttribute("src",b),et.setAttribute("width",Ot),et.setAttribute("height",_t);var Gt=(we-Ot)/2,Ge=(Ee-_t)/2;et.style.left=Gt+"px",et.style.top=Ge+"px",qe.appendChild(et)}}return qe.appendChild(de),qe},Qe=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},lt=["web","webSimple","web3d","tablet","tablet3d","phone"],Dt=function(we,Ee){if(ae=we,Ee){Tt(ae,!0);return}var Ve=!fe;if(Ve){var Lt=ne(ae);!isNaN(Lt)&&Lt<4.4&&(Ve=!1)}var qe,pt;window.location.protocol.substr(0,4)==="http"?qe=window.location.protocol:qe="http:";var de=ae.indexOf("//");de>0?pt=ae:de===0?pt=qe+ae:pt="https://www.geogebra.org/apps/5.2.814.0/";for(var et in lt)if(ae.slice(lt[et].length*-1)===lt[et]||ae.slice((lt[et].length+1)*-1)===lt[et]+"/"){Tt(pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ve&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!$e(ge.showToolBar)&&!$e(ge.showMenuBar)&&!$e(ge.showAlgebraInput)&&!$e(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?pt+="webSimple/":pt+="web3d/",Tt(pt,!1)},Tt=function(we,Ee){if(we.requirejs){Ae=we;return}we.slice(-1)!=="/"&&(we+="/"),Ae=we,Ee===null&&(Ee=we.indexOf("http")===-1),ze=Ee,a="web.nocache.js",y=!1;var Ve=Ae.split("/");Ve.length>1&&(!Ee&&Ve[Ve.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):lt.indexOf(Ve[Ve.length-2])>=0&&(a=Ve[Ve.length-2]+".nocache.js")),Ve=we.split("/"),ae=Ve[Ve.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var Lt=parseFloat(ae);Lt!==NaN&&Lt<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Lt+" is deprecated. Using version latest instead."),Dt("5.0",Ee))},At=function(we,Ee){window.console&&window.console.log&&(!Ee||typeof Ee.showLogging=="undefined"||Ee.showLogging&&Ee.showLogging!=="false")&&console.log(we)};ge.material_id!==void 0?ie(Vt):Vt();function Vt(){var we=ot;Ce!==null?we=Ce:parseFloat(we)<5&&(we="5.0"),Dt(we,!1),se!==null&&Tt(se,ze),le=!0}return be},GGBAppletUtils=function(){"use strict";function be(){return window.GGBT_wsf_edit!==void 0}function ot(le,Ce){Ce!=1?(le.style.transformOrigin="0% 0% 0px",le.style.webkitTransformOrigin="0% 0% 0px",le.style.transform="scale("+Ce+","+Ce+")",le.style.webkitTransform="scale("+Ce+","+Ce+")",le.style.maxWidth="initial",le.querySelector(".ggb_preview")!==null&&(le.querySelector(".ggb_preview").style.maxWidth="initial"),le.querySelectorAll(".ggb_preview img")[0]!==void 0&&(le.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),le.querySelectorAll(".ggb_preview img")[1]!==void 0&&(le.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(le.style.transform="none",le.style.webkitTransform="none")}function ge(le,Ce,se,_e,Ne,Me){var Ae=null;if(Me!=null&&Me!="")for(var ze=le.parentNode;ze!=null;)if((" "+ze.className+" ").indexOf(" "+Me+" ")>-1){Ae=ze;break}else ze=ze.parentNode;var Be=0,ae=0,a=0,y=0,x=0,b=0,E=0;if(Ae)Be=Ae.offsetWidth,ae=Math.max(_e?Ae.offsetWidth:0,Ae.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Be=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Be):(Be=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),le){var z=le.getBoundingClientRect();z.left>0&&z.left<=Be&&(Ne===void 0||!Ne)&&(document.dir==="rtl"?(x=Be-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=le.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return le&&((se===void 0||!se)&&Ce>0&&Ce+y<Be?Be=Ce:Be-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ae-=E)),{width:Be,height:ae}}function te(le,Ce,se,_e,Ne){if(le.isScreenshoGenerator)return 1;var Me=_e!==void 0&&_e,Ae=le.noScaleMargin!=null&&le.noScaleMargin,ze=function(ee){return ee&&ee!=="false"},Be=ze(le.autoHeight),ae=ge(Ce,le.width,se,Be,Me&&window.GGBT_wsf_view||Ae,Ne),a=parseInt(ae.width),y=le.width,x=le.height;if(y===void 0){var b=Ce.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Me?1:ae.height/x;return se!==void 0&&!se&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function fe(le,Ce,se){var _e=1,Ne,Me=!1;if(le.hasOwnProperty("allowUpscale")&&(Me=le.allowUpscale),le.hasOwnProperty("scale")&&(_e=parseFloat(le.scale),(isNaN(_e)||_e===null||_e===0)&&(_e=1),_e>1&&(Me=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Me=!0),!(le.hasOwnProperty("disableAutoScale")&&le.disableAutoScale))Ne=te(le,Ce,Me,se,le.scaleContainerClass);else return _e;return Me&&(!le.hasOwnProperty("scale")||_e===1)?Ne:Math.min(_e,Ne)}function He(le){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),_e=le.getBoundingClientRect(),Ne=(Ce-_e.width)/2,Me=(se-_e.height)/2;Me<0&&(Me=0),le.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne<40?le.style.left="40px":le.style.left=Ne+"px",le.style.top=Me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me<40?le.style.top="40px":le.style.top=Me+"px",le.style.left=Ne+"px")}function De(le,Ce){var se=le.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(le)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var _e=fe(Ce,le);be()&&se.setAttribute("data-param-scale",_e);for(var Ne=null,Me=0;Me<le.childNodes.length;Me++)if(le.childNodes[Me].className!==void 0&&le.childNodes[Me].className.match(/^applet_scaler/)){Ne=le.childNodes[Me];break}if(Ne!==null&&Ne.querySelector(".noscale")!==null)return;var Ae=Ce.id!==void 0?Ce.id:"ggbApplet",ze=window[Ae];(ze==null||!ze.recalculateEnvironments)&&Ne!==null&&!Ne.className.match(/fullscreen/)&&(Ne.parentNode.style.transform="",!isNaN(_e)&&_e!==1?(Ne.parentNode.style.width=Ce.width*_e+"px",Ne.parentNode.style.height=Ce.height*_e+"px",ot(Ne,_e)):(ot(Ne,1),Ne.parentNode.style.width=Ce.width+"px",Ne.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&He(le),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:De,isFlexibleWorksheetEditor:be,positionCenter:He,getScale:fe,scaleElement:ot}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var be=n.location.search;return be.indexOf(J)!=-1||be.indexOf(K)!=-1}function q(be,ot){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(be){var ot=s[L].bindings;s[L].bindings=function(){for(var ge=ot?ot():{},te=be[webModule.__softPermutationId],fe=O;fe<te.length;fe++){var He=te[fe];ge[He[O]]=He[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var be=o.createElement(Q);if(be.id=L,be.style.cssText=R+S,be.tabIndex=-1,o.body.appendChild(be),t=be.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ot=document.compatMode==U?V:W;t.write(ot+X),t.close()}}}function w(be){function ot(te){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var He=fe();if(He){te();return}function De(){if(!He){if(!fe())return;He=!0,te(),o.removeEventListener&&o.removeEventListener(Z,De,!1),le&&clearInterval(le)}}o.addEventListener&&o.addEventListener(Z,De,!1);var le=setInterval(function(){De()},$)}function ge(te){var fe=u(),He=fe.body,De=fe.createElement(_);De.language=ab,De.crossOrigin=W,De.src=te,webModule.__errFn&&(De.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),He.appendChild(De)}ot(function(){ge(be)})}webModule.__startLoadingFragment=function(be){return C(be)},webModule.__installRunAsyncCode=function(be){var ot=u(),ge=ot.body,te=ot.createElement(_);te.language=ab,te.text=be,ge.appendChild(te),ge.removeChild(te)};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(be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(be){var ot=c[be];return ot==null?null:ot},r=d,webModule.__errFn=e}function B(){function be(le){var Ce=le.lastIndexOf(rb);Ce==-1&&(Ce=le.length);var se=le.indexOf(sb);se==-1&&(se=le.length);var _e=le.lastIndexOf(tb,Math.min(se,Ce));return _e>=O?le.substring(O,_e+P):W}function ot(le){if(!le.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=le+vb,le=be(Ce.src)}return le}function ge(){var le=__gwt_getMetaProperty(wb);return le!=null?le:W}function te(){for(var le=o.getElementsByTagName(_),Ce=O;Ce<le.length;++Ce)if(le[Ce].src.indexOf(xb)!=-1)return be(le[Ce].src);return W}function fe(){var le=o.getElementsByTagName(yb);return le.length>O?le[le.length-P].href:W}function He(){var le=o.location;return le.href==le.protocol+zb+le.host+le.pathname+le.search+le.hash}var De=ge();return De==W&&(De=te()),De==W&&(De=fe()),De==W&&He()&&(De=be(o.location.href)),De=ot(De),De}function C(be){return be.match(/^\//)||be.match(/^[a-zA-Z]+:\/\//)?be:webModule.__moduleBase+be}function D(){var be=[],ot=O,ge=[],te=[];function fe(le){var Ce=te[le](),se=ge[le];if(Ce in se)return Ce;var _e=[];for(var Ne in se)_e[se[Ne]]=Ne;throw r&&r(le,_e,Ce),null}if(__gwt_isKnownPropertyValue=function(le,Ce){return Ce in ge[le]},webModule.__getPropMap=function(){var le={};for(var Ce in ge)ge.hasOwnProperty(Ce)&&(le[Ce]=fe(Ce));return le},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var He;try{He=Cb;var De=He.indexOf(Db);De!=-1&&(ot=parseInt(He.substring(De+P),$),He=He.substring(O,De))}catch(le){}return webModule.__softPermutationId=ot,C(He+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})()},46399:function(be,ot,ge){"use strict";ge.d(ot,{Ax:function(){return De},Ds:function(){return le},KI:function(){return se},SI:function(){return He},f1:function(){return fe}});var te=ge(29413);function fe(_e){let Ne=!0;if(_e.length>0){for(let Me=0;Me<_e.length;Me++)if(_e[Me].compile_success==0||!_e[Me].compile_success){Ne=!1;break}}else Ne=!1;return Ne}function He(_e,Ne=""){let Me=[];for(let Ae=0;Ae<_e.length;Ae++){let ze=_e[Ae],Be=Ne?`${Ne}/${ze.name}`:`${ze.name}`;Me.push({title:ze.name,type:ze.type,isLeaf:ze.type!=="tree",key:Be})}return Me}function De(_e,Ne,Me){for(let Ae=0;Ae<_e.length;Ae++){let ze=_e[Ae];if(ze.key===Ne){ze.children=Me;break}ze.children&&De(ze.children,Ne,Me)}return _e}function le(_e,Ne,Me){let Ae;return function(){let ze=this,Be=arguments,ae=function(){Ae=null,Me||_e.apply(ze,Be)},a=Me&&!Ae;clearTimeout(Ae),Ae=setTimeout(ae,Ne),a&&_e.apply(ze,Be)}}const Ce=!0,se=te.Z.API_SERVER},43777:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return Ae}});var te=ge(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},He=ge(92310),De=ge.n(He),le=ge(71418),Ce=ge(2859),se=ge(57223),_e=ge(58331),Ne=(ze,Be,ae)=>new Promise((a,y)=>{var x=z=>{try{E(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ae.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ae=ae.apply(ze,Be)).next())}),Ae=({data:ze,className:Be,fullWidth:ae,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),oe=(0,te.useRef)(null),[re,ie]=(0,te.useState)(!1),[ce,me]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),ze!=null&&ze.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",ze!=null&&ze.src&&Fe()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[ze==null?void 0:ze.visible]);const Fe=()=>Ne(void 0,null,function*(){ie(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,_e.ZJ)(ze==null?void 0:ze.src);z.current.src="",z.current.src=ye,z.current.onload=function(){Wt()},ie(!1),me("")}),$e=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},St=ye=>Ne(void 0,null,function*(){ie(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ye=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ze.title,file:ye.dataUrl}});Ye!=null&&Ye.id&&!E?(yield(0,se.ZP)(`/api/attachments/${ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ye==null?void 0:Ye.id,settings:JSON.stringify(ye.state)}})).status===0&&x():Ye!=null&&Ye.id&&x(Ye),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",ie(!1),me("")}),Nt=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.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(nt=>{const Qe=document.querySelector(nt.name);Qe&&Qe.setAttribute("title",nt.title)})},Wt=()=>{ee.current=new Ce.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",St),ee.current.addEventListener("beforeclose",$e),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(),ze!=null&&ze.snapshotData&&ee.current.restoreState(ze.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return te.createElement(te.Fragment,null,(ze==null?void 0:ze.visible)&&te.createElement(le.Z,{spinning:re,tip:ce,style:{position:"absolute"}},te.createElement("div",{ref:oe,className:De()(fe.imageDimensions,Be,ae?fe.fullWidth:""),style:a},te.createElement("img",{className:fe.img,ref:z}))))}},90625:function(be,ot,ge){"use strict";var te=ge(59301),fe=ge(95237),He=ge(43604),De=ge(99313),le=ge(3113),Ce=ge(65344),se=ge(21933),_e=ge(48136),Ne=ge(59301);const Me=(0,te.forwardRef)(({callback:Ae,showSaveButton:ze,value:Be=""},ae)=>{const a=(0,te.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:Ne.createElement(fe.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Ne.createElement(He.Z,{flex:"110px",className:se.Z.item},Ne.createElement("div",null,Ne.createElement(Ce.Z,{value:`$$${ee.value}$$`}),ee.name),Ne.createElement("div",{className:se.Z.children},ee.children.map((oe,re)=>Ne.createElement("div",{key:re},Ne.createElement("h1",null,oe.name),Ne.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,ce)=>Ne.createElement(He.Z,{key:ce,onClick:()=>b(ie),className:se.Z.diamond},Ne.createElement(Ce.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ne.createElement(fe.Z,{className:se.Z.lists,gutter:[10,10]},x.map((ee,ne)=>Ne.createElement(He.Z,{flex:"110px",className:se.Z.item},Ne.createElement("div",null,Ne.createElement(Ce.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ne.createElement("div",{className:se.Z.children},ee.children.map((oe,re)=>Ne.createElement("div",{key:re},oe.name&&Ne.createElement("h1",null,oe.name),Ne.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,ce)=>Ne.createElement(He.Z,{key:ce,onClick:()=>b(ie),className:se.Z.diamond},Ne.createElement(Ce.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Ae&&Ae(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Ne.createElement("div",{className:se.Z.mathWrap},Ne.createElement(De.default,{defaultActiveKey:"1",items:E}),Ne.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}},Be||""),ze&&Ne.createElement("div",{className:se.Z.button},Ne.createElement(le.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ot.Z=Me},34817:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return De}});var te=ge(59301),fe=ge(99248),He=ge(11611),De=()=>{const[le,Ce]=(0,te.useState)(""),[se,_e]=(0,te.useState)(0);let[Ne,Me]=(0,te.useState)(),[Ae,ze]=(0,te.useState)();const[Be,ae]=(0,te.useState)(!1),a=(0,te.useRef)("");(0,te.useEffect)(()=>fe.Z.subscribe("preview-image",ce=>{Ce(ce),console.log(oe.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,te.useEffect)(()=>{a.current=le},[le]);function y(ie){ie.keyCode==27&&a.current&&x()}function x(){document.body.style.overflow="auto",Me(void 0),ze(void 0),_e(0),Ce("")}function b(){_e(se+90)}function E(){Ne=oe.current.width*1.1,Ae=oe.current.height*1.1,ze(Ae),Me(Ne)}function z(){Ne=oe.current.width/1.1,Ae=oe.current.height/1.1,ze(Ae),Me(Ne)}const ee=(0,te.useRef)(),ne=(0,te.useRef)(),oe=(0,te.useRef)(),re=ie=>{(ie.nativeEvent.target===ee.current||ie.nativeEvent.target===ne.current)&&x()};return te.createElement(te.Fragment,null,le?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:ne},te.createElement(He.Z,{className:"image-preview",src:le,style:{display:"none"},preview:{visible:!0,src:le,movable:!1,onVisibleChange:ie=>{Ce("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},91922:function(be,ot,ge){"use strict";ge.d(ot,{h:function(){return ee}});var te=ge(59301),fe=ge(57809),He=ge(78241),De=ge(3113),le=ge(89780),Ce=ge.n(le),se=ge(69769),_e=ge(32821),Ne=Object.defineProperty,Me=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,oe,re)=>oe in ne?Ne(ne,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):ne[oe]=re,y=(ne,oe)=>{for(var re in oe||(oe={}))Be.call(oe,re)&&a(ne,re,oe[re]);if(ze)for(var re of ze(oe))ae.call(oe,re)&&a(ne,re,oe[re]);return ne},x=(ne,oe)=>Me(ne,Ae(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"]};ot.Z=({callback:ne,onCancel:oe})=>{const[re,ie]=(0,te.useState)("python");function ce(Fe){ie(z[Fe][1])}function me(Fe){ne(Fe)}return te.createElement(He.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),te.createElement(He.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(fe.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:ce},Object.keys(z).map(Fe=>te.createElement(b,{key:Fe,value:Fe},z[Fe][0])))),te.createElement(He.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ee,{mode:re})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(De.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:ne,onChange:oe,mode:re,options:ie={}}){const ce=(0,te.useRef)(),[me,Fe]=(0,te.useState)();return(0,te.useEffect)(()=>{if(me){let $e=function(St){const Nt=St.getValue();oe&&oe(Nt)};return me.on("change",$e),()=>{me.off("change",$e)}}},[me,oe]),(0,te.useEffect)(()=>{me&&me.setOption("mode",re)},[me,re]),(0,te.useEffect)(()=>{me&&(ne!==me.getValue()||ne==="")&&setTimeout(()=>{me.setValue(ne||"")},300)},[me,ne]),(0,te.useEffect)(()=>{if(ce.current&&!me){const $e=Ce().fromTextArea(ce.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Fe($e)}},[ce.current,me]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:ce}))}},97491:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return Bt}});var te=ge(59301),fe=ge(89780),He=ge.n(fe),De=ge(76374),le=ge(69769),Ce=ge(6313),se=ge(25717),_e=ge(99498),Ne=ge(25419),Me=ge(67549),Ae=ge(65344),ze=({value:ue="",className:he,showTextOnly:Se,showLines:Re,style:Te={}})=>{const ut=(0,te.useMemo)(()=>"",[ue]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},Be=ge(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ue,he,Se)=>he in ue?ae(ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[he]=Se,ee=(ue,he)=>{for(var Se in he||(he={}))b.call(he,Se)&&z(ue,Se,he[Se]);if(x)for(var Se of x(he))E.call(he,Se)&&z(ue,Se,he[Se]);return ue},ne=(ue,he)=>a(ue,y(he));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:ue,title:he,icon:Se,actionName:Re,className:Te="",children:ut}){function Rt(){ue(Re)}return Be.createElement("a",{title:he,className:Te,onClick:Rt},Be.createElement("i",{className:`${Se}`}),ut)}var ie=({watch:ue,showNullButton:he,showNullProgramButton:Se,onActionCallback:Re,fullScreen:Te,insertTemp:ut,hidetoolBar:Rt,extraUse:bt})=>{const xe=[...oe,{title:`${ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ue?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Be.createElement("ul",{className:"markdown-toolbar-container"},!Rt&&xe.map((pe,Ke)=>Be.createElement("li",{key:Ke},pe.actionName?Be.createElement(re,ne(ee({},pe),{onActionCallback:Re})):Be.createElement("span",{className:"v-line"}))),he?Be.createElement("li",null,Be.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Re},Be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?Be.createElement(Be.Fragment,null,Be.createElement("li",null,Be.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Re},Be.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Be.createElement("li",null,Be.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Re},Be.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ut&&Be.createElement("li",null,Be.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ut}`,onActionCallback:Re},Be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),bt&&Be.createElement("li",null,bt),Be.createElement("li",{className:"btn-full-screen"},Be.createElement(re,{icon:`${Te?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Te?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Re})))},ce=ge(20342),me=ge(78241),Fe=ge(92832),$e=ge(3113),St=Object.defineProperty,Nt=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Qe=(ue,he,Se)=>he in ue?St(ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[he]=Se,lt=(ue,he)=>{for(var Se in he||(he={}))Ye.call(he,Se)&&Qe(ue,Se,he[Se]);if(ye)for(var Se of ye(he))nt.call(he,Se)&&Qe(ue,Se,he[Se]);return ue},Dt=(ue,he)=>Nt(ue,Wt(he));const Tt={labelCol:{span:4},wrapperCol:{span:20}};var At=({callback:ue,onCancel:he})=>{function Se(Re){ue(Re)}return te.createElement(me.default,Dt(lt({},Tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Fe.default,null)),te.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Fe.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement($e.ZP,{type:"ghost",onClick:he},"\u53D6\u6D88")))},Vt=ge(91922),we=ge(24983),Ee=ge(43418),Ve=ge(95237),Lt=ge(43777),qe=ge(59301),pt=({callback:ue,onCancel:he})=>{const Se=document.createElement("canvas"),Re=Se.getContext("2d");Se.width=1e3,Se.height=800,Re.fillStyle="#ffffff",Re.fillRect(0,0,Se.width,Se.height);const Te=Se.toDataURL("image/png");return qe.createElement(Ee.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},qe.createElement(Ve.Z,{style:{height:"100vh"}},qe.createElement(Lt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Te,visible:!0,title:String(Date.now())},onOk:ut=>{ue({src:ut.url})},onClose:he})))},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 ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},et.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var he=1/0;ue.selection.each(function(Se){Se instanceof go.Link||(he=Math.min(Se.position.x,he))}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(he,Se.position.y))}),ue.commitTransaction("aligning left")},et.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var he=-1/0;ue.selection.each(function(Se){if(!(Se instanceof go.Link)){var Re=Se.actualBounds.x+Se.actualBounds.width;he=Math.max(Re,he)}}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(he-Se.actualBounds.width,Se.position.y))}),ue.commitTransaction("aligning right")},et.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var he=1/0;ue.selection.each(function(Se){Se instanceof go.Link||(he=Math.min(Se.position.y,he))}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,he))}),ue.commitTransaction("alignTop")},et.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var he=-1/0;ue.selection.each(function(Se){if(!(Se instanceof go.Link)){var Re=Se.actualBounds.y+Se.actualBounds.height;he=Math.max(Re,he)}}),ue.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,he-Se.actualBounds.height))}),ue.commitTransaction("aligning bottom")},et.prototype.alignCenterX=function(){var ue=this.diagram,he=ue.selection.first();if(he){ue.startTransaction("aligning Center X");var Se=he.actualBounds.x+he.actualBounds.width/2;ue.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(Se-Re.actualBounds.width/2,Re.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},et.prototype.alignCenterY=function(){var ue=this.diagram,he=ue.selection.first();if(he){ue.startTransaction("aligning Center Y");var Se=he.actualBounds.y+he.actualBounds.height/2;ue.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(Re.actualBounds.x,Se-Re.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},et.prototype.alignColumn=function(ue){var he=this.diagram;he.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var Se=new Array;he.selection.each(function(bt){bt instanceof go.Link||Se.push(bt)});for(var Re=0;Re<Se.length-1;Re++){var Te=Se[Re],ut=Te.actualBounds.y+Te.actualBounds.height+ue,Rt=Se[Re+1];Rt.move(new go.Point(Te.actualBounds.x,ut))}he.commitTransaction("align Column")},et.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);var he=this.diagram;he.startTransaction("align Row");var Se=new Array;he.selection.each(function(bt){bt instanceof go.Link||Se.push(bt)});for(var Re=0;Re<Se.length-1;Re++){var Te=Se[Re],ut=Te.actualBounds.x+Te.actualBounds.width+ue,Rt=Se[Re+1];Rt.move(new go.Point(ut,Te.actualBounds.y))}he.commitTransaction("align Row")},et.prototype.canRotate=function(ue){var he=this.diagram;return!(he===null||he.isReadOnly||he.isModelReadOnly||he.selection.count<1)},et.prototype.rotate=function(ue){ue===void 0&&(ue=90);var he=this.diagram;he.startTransaction("rotate "+ue.toString());var he=this.diagram;he.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=ue)}),he.commitTransaction("rotate "+ue.toString())},et.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var he=new go.Map;ue.selection.each(function(Se){he.set(Se.layer,0)}),he.iteratorKeys.each(function(Se){var Re=0;Se.parts.each(function(Te){if(!Te.isSelected){var ut=Te.zOrder;isNaN(ut)?Te.zOrder=0:Re=Math.max(Re,ut)}}),he.set(Se,Re)}),ue.selection.each(function(Se){et._assignZOrder(Se,he.get(Se.layer)+1)}),ue.commitTransaction("pullToFront")},et.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var he=new go.Map;ue.selection.each(function(Se){he.set(Se.layer,0)}),he.iteratorKeys.each(function(Se){var Re=0;Se.parts.each(function(Te){if(!Te.isSelected){var ut=Te.zOrder;isNaN(ut)?Te.zOrder=0:Re=Math.min(Re,ut)}}),he.set(Se,Re)}),ue.selection.each(function(Se){et._assignZOrder(Se,he.get(Se.layer)-1-et._findGroupDepth(Se))}),ue.commitTransaction("pushToBack")},et._assignZOrder=function(ue,he,Se){Se===void 0&&(Se=ue),ue.layer===Se.layer&&(ue.zOrder=he),ue instanceof go.Group&&ue.memberParts.each(function(Re){et._assignZOrder(Re,he+1,Se)})},et._findGroupDepth=function(ue){if(ue instanceof go.Group){var he=0;return ue.memberParts.each(function(Se){he=Math.max(he,et._findGroupDepth(Se))}),he+1}else return 0},et.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var he=ue.lastInput;if(he.key==="Up"||he.key==="Down"||he.key==="Left"||he.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 ue=new Array;return this.diagram.nodes.each(function(he){ue.push(he)}),this.diagram.parts.each(function(he){ue.push(he)}),ue},et.prototype._arrowKeyMove=function(){var ue=this.diagram,he=ue.lastInput,Se=0,Re=0;if(he.control||he.meta)Se=1,Re=1;else if(ue.grid!==null){var Te=ue.grid.gridCellSize;Re=Te.width,Se=Te.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function(ut){he.key==="Up"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y-Se)):he.key==="Down"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y+Se)):he.key==="Left"?ut.move(new go.Point(ut.actualBounds.x-Re,ut.actualBounds.y)):he.key==="Right"&&ut.move(new go.Point(ut.actualBounds.x+Re,ut.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},et.prototype._arrowKeySelect=function(){var ue=this.diagram,he=ue.lastInput,Se=null;he.key==="Up"?Se=this._findNearestPartTowards(270):he.key==="Down"?Se=this._findNearestPartTowards(90):he.key==="Left"?Se=this._findNearestPartTowards(180):he.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(he.shift?Se.isSelected=!0:he.control||he.meta?Se.isSelected=!Se.isSelected:ue.select(Se))},et.prototype._findNearestPartTowards=function(ue){var he=this.diagram.selection.first();if(he===null)return null;for(var Se=he.actualBounds.center,Re=this._getAllParts(),Te=1/0,ut=he,Rt=0;Rt<Re.length;Rt++){var bt=Re[Rt];if(bt!==he&&bt.canSelect()){var xe=bt.actualBounds.center,pe=Se.directionPoint(xe),Ke=this._angleCloseness(pe,ue);if(Ke<=45){var ve=Se.distanceSquaredPoint(xe);ve*=1+Math.sin(Ke*Math.PI/180),ve<Te&&(Te=ve,ut=bt)}}}return ut},et.prototype._angleCloseness=function(ue,he){return Math.min(Math.abs(he-ue),Math.min(Math.abs(he+360-ue),Math.abs(he-360-ue)))},et.prototype._arrowKeyTree=function(){var ue=this.diagram,he=ue.selection.first();if(he instanceof go.Node){var Se=ue.lastInput;if(Se.key==="Right"){if(!he.isTreeLeaf)if(!he.isTreeExpanded)ue.commandHandler.canExpandTree(he)&&ue.commandHandler.expandTree(he);else{var Re=this._sortTreeChildrenByY(he).first();Re!==null&&ue.select(Re)}}else if(Se.key==="Left")if(!he.isTreeLeaf&&he.isTreeExpanded)ue.commandHandler.canCollapseTree(he)&&ue.commandHandler.collapseTree(he);else{var Te=he.findTreeParentNode();Te!==null&&ue.select(Te)}else if(Se.key==="Up"){var Te=he.findTreeParentNode();if(Te!==null){var ut=this._sortTreeChildrenByY(Te),Rt=ut.indexOf(he);if(Rt>0){for(var bt=ut.elt(Rt-1);bt!==null&&bt.isTreeExpanded&&!bt.isTreeLeaf;){var xe=this._sortTreeChildrenByY(bt);bt=xe.last()}bt!==null&&ue.select(bt)}else ue.select(Te)}}else if(Se.key==="Down")if(he.isTreeExpanded&&!he.isTreeLeaf){var Re=this._sortTreeChildrenByY(he).first();Re!==null&&ue.select(Re)}else for(;he!==null;){var Te=he.findTreeParentNode();if(Te===null)break;var ut=this._sortTreeChildrenByY(Te),Rt=ut.indexOf(he);if(Rt<ut.length-1){ue.select(ut.elt(Rt+1));break}else he=Te}var pe=ue.selection.first();pe!==null&&ue.scrollToRect(pe.actualBounds)}},et.prototype._sortTreeChildrenByY=function(ue){var he=new go.List().addAll(ue.findTreeChildrenNodes());return he.sort(function(Se,Re){var Te=Se.location,ut=Re.location;return Te.y<ut.y?-1:Te.y>ut.y?1:Te.x<ut.x?-1:Te.x>ut.x?1:0}),he},et.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},et.prototype.pasteFromClipboard=function(){var ue=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ue,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ue},Object.defineProperty(et.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ue){if(ue!=="move"&&ue!=="select"&&ue!=="scroll"&&ue!=="tree"&&ue!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ue);this._arrowKeyBehavior=ue}}),Object.defineProperty(et.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ue){if(!(ue instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ue);this._pasteOffset.set(ue)}});var Ot=et,_t=ge(52050),Gt=ge(43604),Ge=ge(57223),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=ge(59301),Ie=(ue,he,Se)=>new Promise((Re,Te)=>{var ut=xe=>{try{bt(Se.next(xe))}catch(pe){Te(pe)}},Rt=xe=>{try{bt(Se.throw(xe))}catch(pe){Te(pe)}},bt=xe=>xe.done?Re(xe.value):Promise.resolve(xe.value).then(ut,Rt);bt((Se=Se.apply(ue,he)).next())});function je({onCancel:ue,callback:he}){let Se=(0,te.useRef)(),Re=(0,te.useRef)(),Te=(0,te.useRef)(),ut=(0,te.useRef)(!1);const Rt=(0,te.useRef)(!1),[bt,xe]=(0,te.useState)(0);function pe(){const ve=de.bx.make,Je={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(Re.current,{padding:20,grid:ve(de.s_,"Grid",ve(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ve(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ue=>{var at=Ue.diagram.commandHandler.addTopLevelParts(Ue.diagram.selection,!0);at||Ue.diagram.currentTool.doCancel()},commandHandler:ve(Ot),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ue=>{var at=Ue.subject;at.location=at.location.copy().snapToGridPoint(Ue.diagram.grid.gridOrigin,Ue.diagram.grid.gridCellSize),setTimeout(()=>{Ue.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ue=>{var at=Ue.subject;setTimeout(()=>{Ue.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ue=>{var at=Ue.parameter.part;at.invalidateConnectedLinks();var Ft=Ue.subject;Ue.diagram.toolManager.linkingTool.isForwards?Ft.toNode.invalidateConnectedLinks():Ft.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=ve(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),ve(de.bn,{name:"SHAPE",fill:Je.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")),ve(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ve(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=ve("ToolTip",ve(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},ve(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),ve(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function ct(Ue,at){var Ft=(dt,Xt)=>{dt.handled=!0,dt.diagram.model.commit(Ut=>{var en=Xt.part.adornedPart,Pn=new de.E9().setRectSpot(en.actualBounds,Ue);Pn.subtract(en.location),Pn.scale(2,2),Pn.x+=Math.sign(Pn.x)*130,Pn.y+=Math.sign(Pn.y)*130,Pn.add(en.location),Pn.snapToGridPoint(dt.diagram.grid.gridOrigin,dt.diagram.grid.gridCellSize);var Fn=Ut.copyNodeData(en.data);Ut.setGroupKeyForNodeData(Fn,Ut.getGroupKeyForNodeData(en.data)),Ut.addNodeData(Fn);var Un={from:en.key,to:Ut.getKeyForNodeData(Fn)};Ut.addLinkData(Un);var Mn=dt.diagram.findNodeForData(Fn);Mn.location=Pn,dt.diagram.select(Mn),setTimeout(()=>{dt.diagram.commandHandler.editTextBlock()},20)})};return ve(de.bn,{figure:at,alignment:Ue,alignmentFocus:Ue.opposite(),width:Ue.equals(de.z6.Top)||Ue.equals(de.z6.Bottom)?25:18,height:Ue.equals(de.z6.Top)||Ue.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Je.white,strokeWidth:4,mouseEnter:(dt,Xt)=>Xt.fill="dodgerblue",mouseLeave:(dt,Xt)=>Xt.fill="orange",isActionable:!0,click:Ft,contextClick:Ft})}function Ct(Ue){return ve(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:(at,Ft)=>Ft.fill="dodgerblue",mouseLeave:(at,Ft)=>Ft.fill="orange",click:(at,Ft)=>{at.diagram.commandHandler.showContextMenu(Ft.part.adornedPart)}},Ue||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=ve(de.uz,"Spot",ve(de.Vm,{padding:10}),ct(de.z6.Top,"TriangleUp"),ct(de.z6.Left,"TriangleLeft"),ct(de.z6.Right,"TriangleRight"),ct(de.z6.Bottom,"TriangleDown"),Ct({alignment:new de.z6(.75,0)}));function We(Ue,at){return(Ft,dt)=>{Ft.handled=!0,Ft.diagram.model.commit(Xt=>{Xt.set(dt.part.adornedPart.data,Ue,at)})}}function Pt(Ue,at){return at||(at="color"),ve(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ue,margin:1,background:"transparent",mouseEnter:(Ft,dt)=>dt.stroke="dodgerblue",mouseLeave:(Ft,dt)=>dt.stroke="lightgray",click:We(at,Ue),contextClick:We(at,Ue)})}function xt(){return[ve("ContextMenuButton",ve(de.s_,"Horizontal",Pt(Je.white,"fill"),Pt(Je.beige,"fill"),Pt(Je.extralightblue,"fill"),Pt(Je.extralightred,"fill"))),ve("ContextMenuButton",ve(de.s_,"Horizontal",Pt(Je.lightgray,"fill"),Pt(Je.lightgreen,"fill"),Pt(Je.lightblue,"fill"),Pt(Je.lightred,"fill")))]}function jt(){return[ve("ContextMenuButton",ve(de.s_,"Horizontal",Pt(Je.black),Pt(Je.green),Pt(Je.blue),Pt(Je.red))),ve("ContextMenuButton",ve(de.s_,"Horizontal",Pt(Je.white),Pt(Je.magenta),Pt(Je.purple),Pt(Je.orange)))]}function tt(Ue,at){return at||(at="thickness"),ve(de.bn,"LineH",{width:16,height:16,strokeWidth:Ue,margin:1,background:"transparent",mouseEnter:(Ft,dt)=>dt.background="dodgerblue",mouseLeave:(Ft,dt)=>dt.background="transparent",click:We(at,Ue),contextClick:We(at,Ue)})}function kt(Ue,at){return at||(at="dash"),ve(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ue,margin:1,background:"transparent",mouseEnter:(Ft,dt)=>dt.background="dodgerblue",mouseLeave:(Ft,dt)=>dt.background="transparent",click:We(at,Ue),contextClick:We(at,Ue)})}function Mt(){return[ve("ContextMenuButton",ve(de.s_,"Horizontal",tt(1),tt(2),tt(3),tt(4))),ve("ContextMenuButton",ve(de.s_,"Horizontal",kt(null),kt([2,4]),kt([4,4])))]}function Et(Ue,at){return at||(at="figure"),ve(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ue,margin:1,background:"transparent",mouseEnter:(Ft,dt)=>dt.fill="dodgerblue",mouseLeave:(Ft,dt)=>dt.fill="lightgray",click:We(at,Ue),contextClick:We(at,Ue)})}Se.current.nodeTemplate.contextMenu=ve("ContextMenu",ve("ContextMenuButton",ve(de.s_,"Horizontal",Et("Rectangle"),Et("RoundedRectangle"),Et("Ellipse"),Et("Diamond"))),ve("ContextMenuButton",ve(de.s_,"Horizontal",Et("Parallelogram2"),Et("ManualOperation"),Et("Procedure"),Et("Cylinder1"))),ve("ContextMenuButton",ve(de.s_,"Horizontal",Et("Terminator"),Et("CreateRequest"),Et("Document"),Et("TriangleDown"))),xt(),jt(),Mt()),Se.current.groupTemplate=ve(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ue,at)=>{var Ft=at.addMembers(at.diagram.selection,!0);Ft||at.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),ve(de.s_,"Auto",{name:"BODY"},ve(de.bn,{parameter1:10,fill:Je.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")),ve(de.Vm,{background:"transparent",margin:20})),ve(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=ve(de.uz,"Spot",ve(de.s_,"Auto",ve(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ve(de.Vm,{margin:1.5})),Ct({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Se.current.groupTemplate.contextMenu=ve("ContextMenu",xt(),jt(),Mt()),Se.current.linkTemplate=ve(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",Ue=>Ue>=1?10:0),new de.KX("toShortLength","dir",Ue=>Ue>=1?10:0),new de.KX("points").makeTwoWay(),ve(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),ve(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",Ue=>Ue===1)),ve(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",Ue=>Ue>=1),new de.KX("width","thickness",Ue=>7+3*Ue),new de.KX("height","thickness",Ue=>7+3*Ue),new de.KX("segmentOffset","thickness",Ue=>new de.E9(-15,4+1.5*Ue))),ve(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",Ue=>Ue===2),new de.KX("width","thickness",Ue=>7+3*Ue),new de.KX("height","thickness",Ue=>7+3*Ue),new de.KX("segmentOffset","thickness",Ue=>new de.E9(-15,4+1.5*Ue))),ve(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=ve(de.uz,ve(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Jt(2)},new de.KX("pathPattern","thickness",Jt)),Ct({alignmentFocus:new de.z6(0,0,-6,-4)}));function Jt(Ue){return ve(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ue+4).toString()+" H3"})}function qt(Ue){var at="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ue===0?at="M0 0 M16 16 M0 8 L16 8":Ue===2&&(at="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ve(de.bn,{geometryString:at,margin:2,background:"transparent",mouseEnter:(Ft,dt)=>dt.background="dodgerblue",mouseLeave:(Ft,dt)=>dt.background="transparent",click:We("dir",Ue),contextClick:We("dir",Ue)})}function dn(Ue){var at=(Ft,dt)=>{Ft.handled=!0,Ft.diagram.model.commit(Xt=>{var Ut=dt.part.adornedPart;Xt.set(Ut.data,Ue?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ue?Ut.toNode:Ut.fromNode).invalidateConnectedLinks()})};return ve(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ft,dt)=>dt.background="dodgerblue",mouseLeave:(Ft,dt)=>dt.background="transparent",click:at,contextClick:at})}function Oe(Ue,at){var Ft=0,dt=de.z6.RightSide;Ue.equals(de.z6.Top)?(Ft=270,dt=de.z6.TopSide):Ue.equals(de.z6.Left)?(Ft=180,dt=de.z6.LeftSide):Ue.equals(de.z6.Bottom)&&(Ft=90,dt=de.z6.BottomSide),at||(Ft-=180);var Xt=(Ut,en)=>{Ut.handled=!0,Ut.diagram.model.commit(Pn=>{var Fn=en.part.adornedPart;Pn.set(Fn.data,at?"toSpot":"fromSpot",de.z6.stringify(dt)),(at?Fn.toNode:Fn.fromNode).invalidateConnectedLinks()})};return ve(de.bn,{alignment:Ue,alignmentFocus:Ue.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ft,background:"transparent",mouseEnter:(Ut,en)=>en.background="dodgerblue",mouseLeave:(Ut,en)=>en.background="transparent",click:Xt,contextClick:Xt})}Se.current.linkTemplate.contextMenu=ve("ContextMenu",jt(),Mt(),ve("ContextMenuButton",ve(de.s_,"Horizontal",qt(0),qt(1),qt(2))),ve("ContextMenuButton",ve(de.s_,"Horizontal",ve(de.s_,"Spot",dn(!1),Oe(de.z6.Top,!1),Oe(de.z6.Left,!1),Oe(de.z6.Right,!1),Oe(de.z6.Bottom,!1)),ve(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},dn(!0),Oe(de.z6.Top,!0),Oe(de.z6.Left,!0),Oe(de.z6.Right,!0),Oe(de.z6.Bottom,!0)))));const Vn=`{ "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 wn=["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 vn(Ue){return console.log("shapeName:",Ue),wn.indexOf(Ue)>=0}var bn=new de.YI(Te.current,{maxSelectionCount:1,linkTemplate:ve(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:ve(de.uz,"Link",{locationSpot:de.z6.Center},ve(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ve(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),ve(de.bn,{isPanelMain:!0,strokeWidth:2}),ve(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(Ue=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ue.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(Ue){var at;const Ft=Ue.subject.part;var dt=(at=document.activeElement)==null?void 0:at.value;typeof dt=="string"&&dt.trim()===""&&Se.current.model.commit(function(Xt){Xt.set(Ft.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),bn.nodeTemplate=ve(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),ve(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")),ve(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=ve(de.s_,"Grid",ve(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ve(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 Ke=()=>Ie(this,null,function*(){var ve=Se.current.makeImage();const Je=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ve.src}});he({src:Je.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{pe()},500),xe(bt+1),()=>{Se.current=null}),[]),Pe.createElement("div",{ref:Rt,className:ut.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(Ee.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!bt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(Ve.Z,null,Pe.createElement(Gt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(Gt.Z,{onClick:()=>{var ve,Je,ct=Se.current.selection.first();if(ut.current=!ut.current,document.activeElement&&ct){let Ct=(Je=(ve=document.activeElement)==null?void 0:ve.value)==null?void 0:Je.trim();typeof Ct=="string"&&Se.current.model.commit(function(We){We.set(ct.data,"text",Ct||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}xe(bt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.flowChartWrp},Pe.createElement("div",{style:{display:"flex",height:"100%"}},Pe.createElement("div",{style:{width:"300px",height:"100%"}},Pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:Te})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:Re,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement($e.ZP,{size:"large",onClick:Ke,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var rt=je,ft=ge(5112),wt=ge(5871);const yt=ft.ZP.Group,zt={margin:"0 8px"};var vt=({callback:ue,onCancel:he})=>{function Se(Re){ue(Re)}return te.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:zt},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:zt},"\u884C\u6570"),te.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(wt.Z,null)),te.createElement("span",{style:zt},"\u5217\u6570"),te.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(wt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:zt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(me.default.Item,{name:"align"},te.createElement(yt,null,te.createElement(ft.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(ft.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(ft.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(ft.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement($e.ZP,{type:"ghost",onClick:he},"\u53D6\u6D88")))},It=ge(78673),nn=ge(72951),un=ge.n(nn),Kt=(0,te.forwardRef)(({use3d:ue,width:he,height:Se,callback:Re,showSaveButton:Te},ut)=>{const Rt=(0,te.useRef)(),bt=(0,te.useRef)(),[xe,pe]=(0,te.useState)(!1),Ke=(0,te.useRef)({id:Rt,appName:"graphing",width:he||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,te.useEffect)(()=>{bt.current=new(un())(Ke.current,!0),window.onload=function(){bt.current.inject("applet_container")}},[]);const ve=()=>{var Je=window.ggbApplet.getPNGBase64(1,!0,72);return Re&&Re(Je),Je};return(0,te.useEffect)(()=>{Ke.current.appName=xe?"3D":"graphing",bt.current.inject("applet_container")},[xe]),(0,te.useEffect)(()=>{pe(ue)},[ue]),(0,te.useImperativeHandle)(ut,()=>({getImgData:ve})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Rt}),te.createElement(Ve.Z,{align:"middle"},te.createElement(Gt.Z,{flex:1},te.createElement(It.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:xe,onChange:Je=>pe(Je)})),te.createElement(Gt.Z,null,te.createElement($e.ZP,{size:"large",onClick:ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),an=ge(90625),on=ge(1012),hn=ge(8591);const rn="link",cn="upload-image",Bn="add-flowchart",Sn="draw-image",Dn="add-flowchart",gn="code-block",En="add-table",Xn="------------",Jn={default:Xn,left:`:${Xn}`,center:`:${Xn}:`,right:`${Xn}:`};var la=ge(54646),ra=(ue,he,Se)=>new Promise((Re,Te)=>{var ut=xe=>{try{bt(Se.next(xe))}catch(pe){Te(pe)}},Rt=xe=>{try{bt(Se.throw(xe))}catch(pe){Te(pe)}},bt=xe=>xe.done?Re(xe.value):Promise.resolve(xe.value).then(ut,Rt);bt((Se=Se.apply(ue,he)).next())});function _n(){}let Pa=0;const oa=1e4,sa="\u2581",Kn="@\u2581\u2581@",Ze="@\u2581@",Xe=`
|
|
**\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`,ke=["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 it(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const Qt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",yn={[Qt+"-B"]:"bold",[Qt+"-I"]:"italic"},$t={[rn]:"\u6DFB\u52A0\u94FE\u63A5",[gn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[cn]:"\u6DFB\u52A0\u56FE\u7247",[Sn]:"\u6DFB\u52A0\u753B\u56FE",[Bn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[En]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Bt=({defaultValue:ue="",onChange:he,width:Se="100%",height:Re=400,miniToolbar:Te=!1,isFocus:ut=!1,watch:Rt,insertTemp:bt,mode:xe="markdown",id:pe="markdown-editor-id",showResizeBar:Ke=!1,noStorage:ve=!1,showNullButton:Je=!1,showNullProgramButton:ct=!1,hidetoolBar:Ct=!1,fullScreen:We=!1,onBlur:Pt,onCMBeforeChange:xt,onFullScreen:jt,className:tt="",disablePaste:kt=!1,disabled:Mt=!1,disabledFill:Et=!1,placeholder:Jt="",values:qt="",extraUse:dn})=>{const[Oe,Vn]=(0,te.useState)(null),[wn,vn]=(0,te.useState)(ue),[bn,Ue]=(0,te.useState)(Rt),[at,Ft]=(0,te.useState)(We),[dt,Xt]=(0,te.useState)(""),[Ut,en]=(0,te.useState)(0),[Pn,Fn]=(0,te.useState)(Re),[Un,Mn]=(0,te.useState)(!1),$n=(0,te.useRef)((0,on.Z)()),Qn=(0,te.useRef)(!1),Rn=(0,te.useRef)(),[kn,Yn]=(0,te.useState)(0),[qn,On]=(0,te.useState)(0),Tn=(0,te.useRef)(),fn=(0,te.useRef)(),xn=(0,te.useRef)(),In=(0,te.useRef)(),ea=()=>ra(void 0,null,function*(){var ht;const gt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:$n.current}});(ht=gt==null?void 0:gt.attachments)!=null&&ht.length&&(console.log("cm:",Oe,Tn),gt.attachments.map(mt=>{mt.content_type.indexOf("image")>-1?Oe.replaceSelection(``):mt.content_type.indexOf("video")>-1?Oe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):mt.content_type.indexOf("pdf")>-1?Oe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${mt.id}?type=${mt.content_type}&disposition=inline" target="_blank">${mt.name}</a>`):Oe.replaceSelection(`[${mt.name}](${ENV.API_SERVER}/api/attachments/${mt.id}?type=${mt.content_type})`)}))});(0,te.useEffect)(()=>{const ht=window.scrollY||window.pageYOffset;vn(qt),Oe==null||Oe.setValue(qt),window.scrollTo(0,ht)},[qt]),(0,te.useEffect)(()=>{jt==null||jt(at)},[at]),(0,te.useEffect)(()=>{if(Tn.current){let ht=function(mt,st){var Ht;if(kt){st.preventDefault();return}const mn=st.clipboardData;if(mn){const Cn=mn.types.toString(),pn=mn.items;if(Cn==="Files"||mn.types.indexOf("Files")>-1){if(st.preventDefault(),xe=="stex")return;try{let zn=pn[1];((Ht=pn[0])==null?void 0:Ht.kind)==="file"&&(zn=pn[0]);const Nn=zn.getAsFile(),da=Nn.name.split(".").pop();(0,we.I)(Nn,Wn=>{var ya,La,Ln;Wn.id?((ya=Nn==null?void 0:Nn.type)==null?void 0:ya.indexOf("image"))>-1?gt.replaceSelection(`<img width="100%" src="/api/attachments/${Wn.id}?type=${Wn.content_type})" alt="" />`):((La=Nn==null?void 0:Nn.type)==null?void 0:La.indexOf("video"))>-1?gt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Wn.id}"></video>`):((Ln=Nn==null?void 0:Nn.type)==null?void 0:Ln.indexOf("pdf"))>-1?gt.replaceSelection(`<a href="/api/attachments/${Wn.id}?type=${Nn.type}&disposition=inline" target="_blank">${Nn.name}</a>`):ke.includes(da)?gt.replaceSelection(`<a href="/api/attachments/${Wn.id}?type=office&disposition=inline" target="_blank">${Nn.name}</a>`):gt.replaceSelection(`[${Nn.name}](/api/attachments/${Wn.id}?type=${Wn.content_type})`):(Wn==null?void 0:Wn.status)===401&&(hn.ZP.warning((Wn==null?void 0:Wn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(zn){hn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const gt=He().fromTextArea(Tn.current,{mode:xe,lineNumbers:!Te,lineWrapping:!0,value:ue,autoCloseTags:!ct,autoCloseBrackets:!0});return gt.on("keyup",function(mt,st){st.keyCode===8&&(mt.getValue()==""?gt.setOption("placeholder",Jt):gt.setOption("placeholder",null))}),gt.on("keydown",function(mt,st){if(st.keyCode===8){var Ht=ga(mt);Ht&&st.preventDefault()}}),ut&>.focus(),gt.on("paste",ht),gt.on("dragleave",function(mt,st){fn.current.classList.remove("mouse-hover-md")}),Mt&>.on("beforeChange",function(mt,st){(st.origin==="paste"||st.origin==="+input")&&st.cancel()}),Vn(gt),()=>{gt.off("paste",ht)}}},[]);const ln=(0,te.useCallback)(()=>{if(fn.current)try{}catch(ht){console.log(ht,"---- to set md editor body height")}},[Pn,fn,at]);(0,te.useEffect)(()=>{function ht(){let gt=new De.Z(mt=>{for(let st of mt)(st.target.offsetHeight>0||st.target.offsetWidth>0)&&(ln(),Oe.setSize("100%","100%"),Oe.refresh())});return gt.observe(Tn.current.parentElement),gt}if(Oe){const gt=ht();return()=>{var mt,st;(mt=Tn.current)!=null&&mt.parentElement&>.unobserve((st=Tn.current)==null?void 0:st.parentElement)}}},[Oe,ln]),(0,te.useEffect)(()=>{if(Oe){let ht=[];for(const[gt,mt]of Object.entries(yn)){let st={[gt]:()=>{An(mt)}};ht.push(st),Oe.addKeyMap(st)}return Rn.current=setInterval(()=>{Qn.current&&ea()},4e3),()=>{clearInterval(Rn.current);for(let gt of ht)Oe.removeKeyMap(gt)}}},[Oe]),(0,te.useEffect)(()=>{We!==at&&Ft(We)},[We]),(0,la.Z)(()=>{if(!ve&&Ut>0){let ht=new Date().getTime(),gt=window.sessionStorage.getItem(pe);ht>=Ut+oa&&(!gt||gt!==wn)&&(window.sessionStorage.setItem(pe,wn),Mn(!0))}},oa),(0,te.useEffect)(()=>{Ue(Rt)},[Oe,Rt]),(0,te.useEffect)(()=>{Oe&&ut&&Oe.focus()},[Oe,ut]),(0,te.useEffect)(()=>{if(bn&&Oe){let ht=function(mt){let st=mt.target;if(In.current){let Ht=st.scrollTop/st.scrollHeight;In.current.scrollTop=In.current.scrollHeight*Ht}};const gt=Oe.getScrollerElement();return gt.addEventListener("scroll",ht),()=>{gt.removeEventListener("scroll",ht)}}},[Oe,bn]),(0,te.useEffect)(()=>{if(Oe&&xt){let ht=function(gt,mt){xt(gt,mt)};return Oe.on("beforeChange",ht),()=>{Oe.off("beforeChange",ht)}}},[Oe,xt]),(0,te.useEffect)(()=>{if(Oe&&Pt){let ht=function(){Pt(Oe.getValue())};return Oe.on("blur",ht),()=>{Oe.off("blur",ht)}}},[Oe,Pt]);function ga(ht,gt){var mt=ht.getDoc(),st=mt.getCursor(),Ht=mt.getLine(st.line),mn=Ht.charAt(st.ch-1),Cn=Ht.lastIndexOf("@\u2581@",st.ch),pn=Ht.lastIndexOf("@\u2581\u2581@",st.ch),zn=Cn>pn?Cn:pn,Nn=Cn>pn?3:4;if(Kn.indexOf(mn)===-1)return null;if(console.log("change1:",gt,ht,Ht,st,zn,Cn,pn,mn),zn>=0&&st.ch-zn<5){var da=zn+Nn;return mt.replaceRange("",{line:st.line,ch:zn},{line:st.line,ch:da}),{line:st.line,ch:da}}return null}(0,te.useEffect)(()=>{if(Oe){let ht=function(gt,mt){const st=gt.getValue();vn(st),en(new Date().getTime()),gt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),he&&(ct?he(st,ia(st)):he(st))};return Oe.on("change",ht),()=>{Oe.off("change",ht)}}},[Oe,he]),(0,te.useEffect)(()=>{if(Oe)if(ue==null)Oe.setValue(""),vn("");else{const ht=window.scrollY||window.pageYOffset;ue!==Oe.getValue()&&(Oe.setValue(ue),vn(ue),Oe.setCursor(Mt?1:Oe.lineCount(),0),window.scrollTo(0,ht))}},[Oe,ue]);const An=(0,te.useCallback)(ht=>{const gt=Oe.getCursor(),mt=Oe.getSelection();let st=mt.split(`
|
|
`);switch(ht){case"bold":return Oe.replaceSelection("**"+mt+"**"),mt===""&&Oe.setCursor(gt.line,gt.ch+2),Oe.focus();case"italic":return Oe.replaceSelection("*"+mt+"*"),mt===""&&Oe.setCursor(gt.line,gt.ch+1),Oe.focus();case"code":return Oe.replaceSelection("`"+mt+"`"),mt===""&&Oe.setCursor(gt.line,gt.ch+1),Oe.focus();case"inline-latex":return Xt("inline-latex"),Oe.focus();case"latex":return Oe.replaceSelection("```latex\n"+mt+"\n```"),Oe.setCursor(gt.line+1,mt.length+1),Oe.focus();case"line-break":return Oe.replaceSelection(`<br/>
|
|
`),Oe.focus();case"list-ul":return mt===""?Oe.replaceSelection("- "+mt):Oe.replaceSelection(st.map(Ht=>Ht===""?"":`- ${Ht}`).join(`
|
|
`)),Oe.focus();case"list-ol":return mt===""?Oe.replaceSelection("1. "+mt):Oe.replaceSelection(st.map((Ht,mn)=>Ht===""?"":`${mn+1}. ${Ht}`).join(`
|
|
`)),Oe.focus();case"add-null-ch":return mt===""&&Oe.setCursor(gt.line,gt.ch),Oe.replaceSelection(sa),Oe.focus();case"add-signal":return mt===""&&Oe.setCursor(gt.line,gt.ch),Oe.replaceSelection(Ze),Oe.focus();case"add-multiple":return mt===""&&Oe.setCursor(gt.line,gt.ch),Oe.replaceSelection(Kn),Oe.focus();case"inster-template-1":return mt===""&&Oe.setCursor(gt.line,gt.ch),Oe.replaceSelection(Xe),Oe.focus();case"eraser":return Oe.setValue(""),Oe.focus();case"trigger-watch":return Ue(!bn),Oe.focus();case"trigger-full-screen":return Ft(!at),Oe.focus();case rn:Xt(rn);return;case gn:Xt(gn);return;case cn:Xt(cn);return;case Sn:Xt(Sn);return;case"maths-latex":Xt("maths-latex");return;case Bn:Xt(Bn);return;case En:Xt(En);return;default:throw new Error}},[Oe,bn,at]),Gn=(0,te.useCallback)((ht,gt)=>{var mt,st,Ht,mn,Cn,pn;switch(Xt(""),dt){case rn:const{title:ya,link:La}=ht;return Oe.replaceSelection(`[${ya}](${La})`),Oe.focus();case gn:const{language:Ln,content:Zt}=ht;return Oe.replaceSelection(["```"+Ln,Zt,"```"].join(`
|
|
`)),Oe.focus();case"maths-latex":for(var zn=atob(ht),Nn=new Uint8Array(zn.length),da=0;da<zn.length;da++)Nn[da]=zn.charCodeAt(da);var Wn=new Blob([Nn],{type:"image/png"});(0,we.I)(Wn,aa=>{aa.id?Oe.replaceSelection(``):(aa==null?void 0:aa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Oe.replaceSelection("`$$"+ht+"$$`");break;case cn:case Sn:case Dn:const{src:na,alt:ca}=ht,tn=gt,ha=(Ht=(st=(mt=tn==null?void 0:tn.name)==null?void 0:mt.split("."))==null?void 0:st.pop)==null?void 0:Ht.call(st);return((mn=tn==null?void 0:tn.type)==null?void 0:mn.indexOf("image"))>-1||!(tn!=null&&tn.type)?tn.align||tn.width?Oe.replaceSelection(`<p style="text-align:${tn.align||"initial"}"><img width="${tn.width?tn.width+"%":"initial"}" src="${na}" alt="${ca||""}" /></p>`):Oe.replaceSelection(`<img width="100%" src="${na}" alt="${ca||""}" />`):((Cn=tn==null?void 0:tn.type)==null?void 0:Cn.indexOf("video"))>-1?Oe.replaceSelection(`<video width="100%" controls src="${na}"></video>`):((pn=tn==null?void 0:tn.type)==null?void 0:pn.indexOf("pdf"))>-1?Oe.replaceSelection(`<a href="${na}?type=${tn.type}&disposition=inline" target="_blank">${tn.name}</a>`):ke.includes(ha)?Oe.replaceSelection(`<a href="${na}?type=office&disposition=inline" target="_blank">${tn.name}</a>`):Oe.replaceSelection(`[${tn.name}](${na})`),Oe.focus();case En:const{row:pa,col:Sa,align:Ca}=ht;let ba=`
|
|
`;for(let aa=0;aa<pa;aa++){let xa=[],Ba=[];for(let Ea=0;Ea<Sa;Ea++)aa===1&&Ba.push(Jn[Ca]),xa.push(" ");aa===1&&(ba+=`| ${Ba.join(" | ")} |
|
|
`),ba+=`| ${xa.join(Sa===1?"":" | ")} |
|
|
`}return Oe.replaceSelection(ba+`
|
|
`),Oe.focus();default:throw new Error}},[Oe,dt]),va=(0,te.useMemo)(()=>{switch(dt){case rn:return te.createElement(At,{callback:Gn,onCancel:jn});case gn:return te.createElement(Vt.Z,{callback:Gn,onCancel:jn});case cn:return te.createElement(we.Z,{callback:Gn,onCancel:jn});case Bn:return te.createElement(rt,{callback:Gn,onCancel:jn});case En:return te.createElement(vt,{callback:Gn,onCancel:jn});case"maths-latex":return te.createElement(Kt,{showSaveButton:!0,callback:Gn});case"inline-latex":return te.createElement(an.Z,{showSaveButton:!0,callback:Gn});default:return null}},[dt]);function jn(){Xt("")}(0,te.useEffect)(()=>{if(xn.current){let ht=function(Cn){Ht=!0,mn=Cn.pageY},gt=function(){Ht=!1},mt=function(Cn){if(Ht){let pn=Cn.pageY-mn;pn<0&&(pn=0),pn>300&&(pn=300);let zn=Re+pn+"px";Fn(zn)}},st=xn.current,Ht=!1,mn=0;return st.addEventListener("mousedown",ht),document.addEventListener("mousemove",mt),document.addEventListener("mouseup",gt),()=>{st.removeEventListener("mousedown",ht),document.removeEventListener("mousemove",mt),document.removeEventListener("mouseup",gt)}}},[Oe,xn]),(0,te.useEffect)(()=>{Fn(Re)},[Re]);const ua=it(Se),ta=it(Pn),Zn={width:ua,height:ta},Hn=(0,te.useMemo)(()=>{if(Ut){let ht=new Date(Ut),gt=ht.getHours(),mt=ht.getMinutes(),st=ht.getSeconds();return gt=gt<10?"0"+gt:gt,mt=mt<10?"0"+mt:mt,st=st<10?"0"+st:st,`${gt}:${mt}:${st}`}return 0},[Ut]),ia=ht=>{const gt=[];if(ct){let mt=-1;ht=ht.replace(/(@▁▁@|@▁@)/g,function(st,Ht,mn){gt.push({multiLine:st!==Ze})})}return gt};function ma(){window.sessionStorage.removeItem(pe),Mn(!1),en(0)}function Fa(){Mn(!1),en(0),Oe.setValue(window.sessionStorage.getItem(pe))}(0,te.useEffect)(()=>{$t[dt]&&dt!==Sn&&dt!==Bn&&setTimeout(()=>{const ht=document.getElementsByClassName("markdown-popup-form")[0],gt=window.innerWidth/2-ht.offsetWidth/2,mt=window.innerHeight/2-ht.offsetHeight/2;Yn(gt),On(mt)},0)},[dt]);const wa=ht=>{ht.preventDefault();const gt=ht.clientX-kn,mt=ht.clientY-qn;document.body.onmousemove=st=>{let Ht=st.clientX-gt,mn=st.clientY-mt;const Cn=document.getElementsByClassName("markdown-popup-form")[0],pn=window.innerWidth-Cn.offsetWidth,zn=window.innerHeight-Cn.offsetHeight;Ht=Math.max(0,Math.min(Ht,pn)),mn=Math.max(0,Math.min(mn,zn)),fa(st.clientX,st.clientY,gt,mt)&&(Yn(Ht),On(mn))},document.body.onmouseup=function(){document.body.onmousemove=null}},fa=(ht,gt,mt,st)=>{const Ht=document.body.clientHeight,mn=document.body.clientWidth;return ht<20&&mt>ht||ht>mn-20&&mt<ht||gt<20&&st>gt||gt>Ht-20&&st<gt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:fn},te.createElement("div",{className:`markdown-editor-container ${tt} ${bn?"on-preview":""} ${Te?"mini":""} ${at?"full-screen":""}`,style:Zn},te.createElement(ie,{insertTemp:bt,watch:bn,fullScreen:at,showNullButton:Je,showNullProgramButton:ct,onActionCallback:An,hidetoolBar:Ct,extraUse:dn}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Tn,placeholder:Jt})),bn?te.createElement("div",{ref:In,className:"preview-container"},xe==="stex"&&te.createElement(ze,{value:wn}),xe!=="stex"&&te.createElement(Ae.Z,{disabledFill:Et,showProgramFill:ct,value:wn})):null))),Ke?te.createElement("a",{ref:xn,className:"editor-resize"}):null,dt===Sn&&te.createElement(pt,{callback:Gn,onCancel:jn}),dt===Bn&&te.createElement(rt,{callback:Gn,onCancel:jn}),te.createElement(ce.Z,null,$t[dt]&&dt!==Sn&&dt!==Bn?te.createElement(Ee.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:kn,top:qn},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:wa},$t[dt]),open:!0,onCancel:jn,footer:null,destroyOnClose:!0,width:dt===Bn?"1200px":null,height:dt===Bn?"80vh":null,className:"markdown-popup-form"},va):null))}},24983:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return re},I:function(){return ce}});var te=ge(78241),fe=ge(8591),He=ge(92832),De=ge(81327),le=ge(5871),Ce=ge(5112),se=ge(3113),_e=ge(46399),Ne=ge(59301),Me=ge(75322),Ae=ge(59301),ze=Object.defineProperty,Be=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(me,Fe,$e)=>Fe in me?ze(me,Fe,{enumerable:!0,configurable:!0,writable:!0,value:$e}):me[Fe]=$e,E=(me,Fe)=>{for(var $e in Fe||(Fe={}))y.call(Fe,$e)&&b(me,$e,Fe[$e]);if(a)for(var $e of a(Fe))x.call(Fe,$e)&&b(me,$e,Fe[$e]);return me},z=(me,Fe)=>Be(me,ae(Fe));const{useForm:ee}=te.default,ne={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:me,onCancel:Fe})=>{const[$e]=ee();let St=(0,Ne.useRef)();function Nt(Ye){St.current.width=$e.getFieldValue("width"),St.current.align=$e.getFieldValue("align"),me(Ye,St.current)}function Wt(Ye,nt){if(Ye.status===-1){fe.ZP.error(Ye.message);return}$e.setFieldsValue({src:`/api/attachments/${Ye.id}`,type:nt.type})}function ye(Ye){let nt=Ye.target.files[0];St.current=nt,ce(nt,Wt)}return Ae.createElement(te.default,z(E({form:$e},oe),{className:"upload-image-panel",onFinish:Nt,style:{width:470,overflow:"hidden"}}),Ae.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ae.createElement("div",{className:"flex-container"},Ae.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ae.createElement(He.default,{style:ne})),Ae.createElement(ie,{onFileChange:ye}))),Ae.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ae.createElement(He.default,{style:{width:264}})),Ae.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ae.createElement(De.Z,null,Ae.createElement(te.default.Item,{name:"width",style:{margin:0}},Ae.createElement(le.Z,{style:{width:264}})),Ae.createElement("span",{className:"ml8"},"%"))),Ae.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ae.createElement(Ce.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"}]})),Ae.createElement("aside",null,Ae.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ae.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ae.createElement(se.ZP,{type:"default",onClick:Fe},"\u53D6\u6D88"))))};function ie({onFileChange:me}){return Ae.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ae.createElement("input",{type:"file",onChange:me}))}function ce(me,Fe){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 $e=new FormData;$e.append("editormd-image-file",me),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var St=new window.XMLHttpRequest;St.withCredentials=!0,St.addEventListener("load",function(Nt){Fe(JSON.parse(Nt.target.responseText),me)},!1),St.addEventListener("error",function(Nt){console.error(Nt)},!1),St.open("POST",`${_e.KI}/api/attachments.json`),St.send($e)}},20342:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return He}});var te=ge(59301),fe=ge(4676);class He extends te.Component{constructor(le){super(le);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:le}=this.props;return(0,fe.createPortal)(le,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},54646:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return fe}});var te=ge(59301);function fe(He,De){const le=(0,te.useRef)();(0,te.useEffect)(()=>{le.current=He}),(0,te.useEffect)(()=>{function Ce(){le.current()}if(De!==null){let se=setInterval(Ce,De);return()=>clearInterval(se)}},[De])}},43086:function(be,ot,ge){"use strict";ge.r(ot),ge.d(ot,{default:function(){return Kn}});var te=ge(59301),fe=ge(98147),He=ge(29413),De=ge(95237),le=ge(43604),Ce=ge(3113),se={wrap:"wrap___oiJRJ",head:"head___zCLJu",recommendItem:"recommendItem___Z46_0",buttonWrap:"buttonWrap___Gol4S",privateMessage:"privateMessage___UCiuy",flex1:"flex1___FVk7y",mWidth147:"mWidth147___f_pcl"},_e=ge(13347),Ne=Object.defineProperty,Me=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(Ze,Xe,ke)=>Xe in Ze?Ne(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Ze[Xe]=ke,y=(Ze,Xe)=>{for(var ke in Xe||(Xe={}))Be.call(Xe,ke)&&a(Ze,ke,Xe[ke]);if(ze)for(var ke of ze(Xe))ae.call(Xe,ke)&&a(Ze,ke,Xe[ke]);return Ze},x=(Ze,Xe)=>Me(Ze,Ae(Xe)),b=(Ze,Xe)=>{var ke={};for(var it in Ze)Be.call(Ze,it)&&Xe.indexOf(it)<0&&(ke[it]=Ze[it]);if(Ze!=null&&ze)for(var it of ze(Ze))Xe.indexOf(it)<0&&ae.call(Ze,it)&&(ke[it]=Ze[it]);return ke},E=(Ze,Xe,ke)=>new Promise((it,Yt)=>{var Qt=Bt=>{try{$t(ke.next(Bt))}catch(ue){Yt(ue)}},yn=Bt=>{try{$t(ke.throw(Bt))}catch(ue){Yt(ue)}},$t=Bt=>Bt.done?it(Bt.value):Promise.resolve(Bt.value).then(Qt,yn);$t((ke=ke.apply(Ze,Xe)).next())});const z=Ze=>{var Xe=Ze,{user:ke,forumsDetail:it,globalSetting:Yt,loading:Qt,dispatch:yn}=Xe,$t=b(Xe,["user","forumsDetail","globalSetting","loading","dispatch"]),Bt,ue,he,Se;const{author_info:Re,memo:Te,recommend_shixuns:ut}=it.forumsDetailData||{},Rt=()=>E(void 0,null,function*(){(Re!=null&&Re.watched?yield(0,_e.Sr)({user_id:Re.login}):yield(0,_e.YP)({user_id:Re.login}))&&yn({type:"forumsDetail/setForumsDetailData",payload:x(y({},it.forumsDetailData),{author_info:x(y({},Re),{watched:!(Re!=null&&Re.watched)})})})});return te.createElement("section",{className:se.wrap},te.createElement("aside",{className:"ml20"},te.createElement("div",{className:`bg-white pt40 pb40 pl20 pr20 ${se.head}`},te.createElement("a",{href:`/users/${Re==null?void 0:Re.login}`,target:"_blank"},(Re==null?void 0:Re.image_url)&&te.createElement("img",{src:`${He.Z.API_SERVER}/images/${Re==null?void 0:Re.image_url}`})),te.createElement("div",{className:"tc font20"},Re==null?void 0:Re.username),te.createElement("div",{className:"tc c-grey-999"},Re==null?void 0:Re.identity),((Bt=ke.userInfo)==null?void 0:Bt.user_id)!==(Re==null?void 0:Re.user_id)&&te.createElement(De.Z,{justify:"center",className:`mt30 ${se.buttonWrap}`},te.createElement(le.Z,null,te.createElement(Ce.ZP,{type:"primary",className:"mr10",onClick:Rt},Re!=null&&Re.watched?"\u53D6\u6D88\u5173\u6CE8":"\u5173\u6CE8")),te.createElement(le.Z,null,te.createElement(Ce.ZP,{className:se.privateMessage,href:`/messages/${(ue=ke.userInfo)==null?void 0:ue.login}/message_detail?target_ids=${Re==null?void 0:Re.user_id}`,target:"_blank"},"\u79C1\u4FE1")))),!!((he=Te==null?void 0:Te.tag)!=null&&he.length)&&te.createElement("div",{className:"bg-white mt10 pt40 pb40 pl20 pr20"},te.createElement("div",{className:"font16"},"\u8BDD\u9898\u6807\u7B7E"),te.createElement("div",{className:`mt10 ${se.tag}`},(Se=Te==null?void 0:Te.tag)==null?void 0:Se.map((bt,xe)=>te.createElement("span",{key:xe,className:"c-light-primary mr10"},bt)))),te.createElement("div",{className:"pt10 pb10 pl10 pr10"},te.createElement("div",{className:"font16 mb20"},"\u63A8\u8350\u5B9E\u8BAD"),te.createElement("div",{className:se.recommend},ut==null?void 0:ut.map(bt=>te.createElement("div",{className:se.recommendItem},te.createElement("a",{href:`/shixuns/${bt.identifier}/challenges`,target:"_blank"},te.createElement("img",{alt:bt.id,src:`${bt.image_url}`})),te.createElement("div",{className:`${se.flex1} ml10`},te.createElement("a",{href:`/shixuns/${bt.identifier}/challenges`,target:"_blank",title:bt.name,className:`${se.mWidth147} multi-llipsis1e c-grey-666 mb10`},bt.name),te.createElement("div",{className:"c-grey-999"},bt.myshixuns_count," \u4EBA\u5B66\u4E60"))))))))};var ee=(0,fe.connect)(({user:Ze,forumsDetail:Xe,loading:ke,globalSetting:it})=>({user:Ze,forumsDetail:Xe,globalSetting:it,loading:ke.models.forumsDetail}))(z),ne=ge(66649),oe=ge.n(ne),re=ge(65344),ie=ge(8591),ce=ge(43418),me=ge(92832),Fe=ge(20834),$e=ge(66104),St=ge(38854),Nt=ge(6848),Wt=ge(97491),ye=ge(26227),Ye={flex_box_center:"flex_box_center___nMc3G",flex_space_between:"flex_space_between___gTlaF",flex_box_vertical_center:"flex_box_vertical_center___GQv6O",flex_box_center_end:"flex_box_center_end___nrFEP",flex_box_column:"flex_box_column___Ls1oQ",reply:"reply___jb23w",replyList:"replyList___ryiUt",comment:"comment___QJ1eT",content:"content___X2UnY",commentItem:"commentItem___h_wnY"},nt=Object.defineProperty,Qe=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Vt=(Ze,Xe,ke)=>Xe in Ze?nt(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Ze[Xe]=ke,we=(Ze,Xe)=>{for(var ke in Xe||(Xe={}))Tt.call(Xe,ke)&&Vt(Ze,ke,Xe[ke]);if(Dt)for(var ke of Dt(Xe))At.call(Xe,ke)&&Vt(Ze,ke,Xe[ke]);return Ze},Ee=(Ze,Xe)=>Qe(Ze,lt(Xe)),Ve=(Ze,Xe,ke)=>new Promise((it,Yt)=>{var Qt=Bt=>{try{$t(ke.next(Bt))}catch(ue){Yt(ue)}},yn=Bt=>{try{$t(ke.throw(Bt))}catch(ue){Yt(ue)}},$t=Bt=>Bt.done?it(Bt.value):Promise.resolve(Bt.value).then(Qt,yn);$t((ke=ke.apply(Ze,Xe)).next())});oe().locale("ZH-cn");function Lt({user:Ze,vlist:Xe=[],dispatch:ke,params:it,id:Yt,memo_replies:Qt,forumsDetail:yn}){return te.createElement("aside",{className:Ye.comment},Xe.map(function($t,Bt){var ue,he;return te.createElement(De.Z,{key:Bt,className:Ye.commentItem},te.createElement(le.Z,{span:24},te.createElement(De.Z,null,te.createElement(le.Z,{flex:"1"},te.createElement("a",{href:`/users/${$t.user_login}`,target:"_blank",className:"c-light-black"},$t==null?void 0:$t.username),te.createElement("span",{className:"c-light-black ml10"},$t.time)),($t.can_delete||$t.user_id===((ue=Ze.userInfo)==null?void 0:ue.user_id)||$t.user_login===((he=Ze.userInfo)==null?void 0:he.login))&&te.createElement(le.Z,{className:"forums-comment-delete",style:{display:"none"}},te.createElement(Nt.Z,{title:"\u5220\u9664"},te.createElement(ye.Z,{className:"current",onClick:()=>{ce.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Ve(this,null,function*(){const Se=yield(0,_e.sW)({id:$t.id}),Re=Qt.find(Te=>Te.id===Yt).children.filter(Te=>Te.id!==$t.id);Qt.find(Te=>Te.id===Yt).children=Re,ke({type:"forumsDetail/setForumsDetailData",payload:Ee(we({},yn.forumsDetailData),{memo_replies:[...Qt]})})})})}}))))),te.createElement(le.Z,null,te.createElement(re.Z,{value:$t.content})))}))}var qe=Lt,pt=ge(58331),de=Object.defineProperty,et=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Le=(Ze,Xe,ke)=>Xe in Ze?de(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Ze[Xe]=ke,Pe=(Ze,Xe)=>{for(var ke in Xe||(Xe={}))Gt.call(Xe,ke)&&Le(Ze,ke,Xe[ke]);if(_t)for(var ke of _t(Xe))Ge.call(Xe,ke)&&Le(Ze,ke,Xe[ke]);return Ze},Ie=(Ze,Xe)=>et(Ze,Ot(Xe)),je=(Ze,Xe)=>{var ke={};for(var it in Ze)Gt.call(Ze,it)&&Xe.indexOf(it)<0&&(ke[it]=Ze[it]);if(Ze!=null&&_t)for(var it of _t(Ze))Xe.indexOf(it)<0&&Ge.call(Ze,it)&&(ke[it]=Ze[it]);return ke},rt=(Ze,Xe,ke)=>new Promise((it,Yt)=>{var Qt=Bt=>{try{$t(ke.next(Bt))}catch(ue){Yt(ue)}},yn=Bt=>{try{$t(ke.throw(Bt))}catch(ue){Yt(ue)}},$t=Bt=>Bt.done?it(Bt.value):Promise.resolve(Bt.value).then(Qt,yn);$t((ke=ke.apply(Ze,Xe)).next())});oe().locale("ZH-cn");const ft=(Ze,Xe)=>{var ke=Ze,{user:it,forumsDetail:Yt,globalSetting:Qt,loading:yn,dispatch:$t,handleClick:Bt}=ke,ue=je(ke,["user","forumsDetail","globalSetting","loading","dispatch","handleClick"]);const{memo:he,memo_replies:Se}=Yt.forumsDetailData||{},Re=(0,fe.useParams)(),[Te,ut]=(0,te.useState)(""),[Rt,bt]=(0,te.useState)(""),[xe,pe]=(0,te.useState)(-1),[Ke,ve]=(0,te.useState)(!1),[Je,ct]=(0,te.useState)(1),[Ct,We]=(0,te.useState)(!1);(0,te.useImperativeHandle)(Xe,()=>({onMdFouch:jt})),(0,te.useEffect)(()=>{ve((he==null?void 0:he.replies_count)>10)},[he==null?void 0:he.replies_count]);const Pt=()=>rt(void 0,null,function*(){var tt;const kt=Je+1;ct(kt);const Mt=yield(0,_e.z5)({id:Re.memoId,page:kt});Mt!=null&&Mt.memo_replies&&($t({type:"forumsDetail/setForumsDetailData",payload:Ie(Pe({},Yt.forumsDetailData),{memo_replies:[...Se,...Mt.memo_replies]})}),ve(((tt=Mt.memo_replies)==null?void 0:tt.length)===10))}),xt=tt=>{var kt,Mt,Et,Jt;return Ie(Pe({},tt),{image_url:(kt=it.userInfo)==null?void 0:kt.image_url,children:[],user_id:(Mt=it.userInfo)==null?void 0:Mt.user_id,user_login:(Et=it.userInfo)==null?void 0:Et.login,username:(Jt=it.userInfo)==null?void 0:Jt.username,time:`${(0,pt.li)((new Date().getTime()-new Date(tt.created_at).getTime())/1e3)}\u524D`})},jt=()=>{We(!0)};return te.createElement("section",{className:Ye.wrap},!!(Se!=null&&Se.length)&&te.createElement("aside",{className:Ye.content},te.createElement("div",{style:{padding:"10px 15px 5px 15px",justifyContent:"space-between",display:"flex"}},te.createElement("span",null,"\u5168\u90E8\u56DE\u590D\uFF08",he.replies_count,"\uFF09")),te.createElement("aside",{className:Ye.replyList},Se==null?void 0:Se.map(function(tt,kt){var Mt;return te.createElement(De.Z,{gutter:[12,12],key:kt},te.createElement(le.Z,{flex:"40px"},te.createElement("a",{href:`/users/${tt.user_login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"50",height:"50",src:`${He.Z.IMG_SERVER}/images/${tt==null?void 0:tt.image_url}`}))),te.createElement(le.Z,{flex:"1"},te.createElement(De.Z,{align:"middle"},te.createElement(le.Z,{span:24},te.createElement("a",{href:`/users/${tt.user_login}`,target:"_blank"},te.createElement("span",{className:"c-light-black"},tt==null?void 0:tt.username)),te.createElement("span",{className:"c-light-black ml10"},tt.time)),te.createElement(le.Z,{span:24},te.createElement("div",{onClick:Bt},te.createElement(re.Z,{value:tt.content}))),!!((Mt=tt==null?void 0:tt.children)!=null&&Mt.length)&&te.createElement(qe,{user:it,id:tt==null?void 0:tt.id,vlist:tt==null?void 0:tt.children,dispatch:$t,params:Re,memo_replies:Se,forumsDetail:Yt}),te.createElement(le.Z,{span:24,className:"mt5 c-light-black"},xe===kt?te.createElement("aside",null,te.createElement(Wt.Z,{onChange:Et=>{bt(Et)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),te.createElement(De.Z,null,te.createElement(le.Z,{span:24,className:"tr"},te.createElement(Ce.ZP,{type:"primary",size:"middle",onClick:()=>rt(this,null,function*(){if(Rt==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Et=yield(0,_e.ts)({parent_id:tt.id,content:Rt});bt(null),Et&&(pe(-1),Se.find(Jt=>Jt.id===Et.parent_id).children.push(xt(Et)),$t({type:"forumsDetail/setForumsDetailData",payload:Ie(Pe({},Yt.forumsDetailData),{memo:Ie(Pe({},he),{replies_count:he.replies_count+1}),memo_replies:[...Se]})}))}})},"\u53D1\u9001")))):te.createElement("div",{className:"tr"},te.createElement("span",{className:"iconfont icon-huifu1 mr15 ml30 current",onClick:()=>pe(kt)}),te.createElement(Nt.Z,{title:tt.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("span",{className:tt.user_praise?"c-orange":"c-gery-888"},te.createElement("i",{className:"iconfont icon-dianzan mr3 current",onClick:()=>rt(this,null,function*(){const Et=yield(0,_e.vL)({id:tt.id,container_type:"Memo",type:tt.user_praise?0:1});(Et==null?void 0:Et.praise_count)>=0&&(Se.find(Jt=>Jt.id===tt.id).user_praise=!tt.user_praise,Se.find(Jt=>Jt.id===tt.id).praise_count=Et==null?void 0:Et.praise_count,$t({type:"forumsDetail/setForumsDetailData",payload:Ie(Pe({},Yt.forumsDetailData),{memo_replies:[...Se]})}))})}),tt.praise_count>0?tt.praise_count:"")))))))}))),Ke&&te.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center"}},te.createElement(De.Z,{justify:"space-between"},te.createElement(le.Z,null),te.createElement(le.Z,null,Ke&&te.createElement("a",{className:"c-black",onClick:Pt},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA")))),te.createElement("aside",{className:Ye.reply},te.createElement(Wt.Z,{onBlur:()=>We(!1),isFocus:Ct,defaultValue:Te,id:"writeForumsReviewId",onChange:tt=>{ut(tt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(De.Z,null,te.createElement(le.Z,{flex:"1"}),te.createElement(le.Z,null,te.createElement(Ce.ZP,{type:"primary",size:"middle",onClick:()=>rt(void 0,null,function*(){if(Te==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const tt=yield(0,_e.ts)({parent_id:he.id,content:Te});ut(null),tt&&$t({type:"forumsDetail/setForumsDetailData",payload:Ie(Pe({},Yt.forumsDetailData),{memo:Ie(Pe({},he),{replies_count:he.replies_count+1}),memo_replies:[xt(tt),...Se]})})}})},"\u53D1\u9001")))))};var wt=(0,fe.connect)(({user:Ze,forumsDetail:Xe,loading:ke,globalSetting:it})=>({user:Ze,forumsDetail:Xe,globalSetting:it,loading:ke.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.forwardRef)(ft)),yt={wrap:"wrap___Soi3l",header:"header___vk3EC",title:"title___WJAyR",menu:"menu___yMPKF",top:"top___ZqzEM",line:"line___EQKlG",flexCenter:"flexCenter___Rcnhr",like:"like___uNtmq",canLike:"canLike___Lu04z",attachmentName:"attachmentName___nwdzp"},zt=ge(87169),vt=ge(34817),It=ge(99248),nn=Object.defineProperty,un=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,hn=(Ze,Xe,ke)=>Xe in Ze?nn(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Ze[Xe]=ke,rn=(Ze,Xe)=>{for(var ke in Xe||(Xe={}))an.call(Xe,ke)&&hn(Ze,ke,Xe[ke]);if(Kt)for(var ke of Kt(Xe))on.call(Xe,ke)&&hn(Ze,ke,Xe[ke]);return Ze},cn=(Ze,Xe)=>un(Ze,sn(Xe)),Bn=(Ze,Xe)=>{var ke={};for(var it in Ze)an.call(Ze,it)&&Xe.indexOf(it)<0&&(ke[it]=Ze[it]);if(Ze!=null&&Kt)for(var it of Kt(Ze))Xe.indexOf(it)<0&&on.call(Ze,it)&&(ke[it]=Ze[it]);return ke},Sn=(Ze,Xe,ke)=>new Promise((it,Yt)=>{var Qt=Bt=>{try{$t(ke.next(Bt))}catch(ue){Yt(ue)}},yn=Bt=>{try{$t(ke.throw(Bt))}catch(ue){Yt(ue)}},$t=Bt=>Bt.done?it(Bt.value):Promise.resolve(Bt.value).then(Qt,yn);$t((ke=ke.apply(Ze,Xe)).next())});const Dn={5:"\u6280\u672F\u5206\u4EAB",3:"\u64CD\u4F5C\u6307\u5357",16:"\u901A\u77E5\u516C\u544A"},gn=Ze=>{var Xe=Ze,{user:ke,forumsDetail:it,globalSetting:Yt,loading:Qt,dispatch:yn}=Xe,$t=Bn(Xe,["user","forumsDetail","globalSetting","loading","dispatch"]),Bt,ue,he,Se;const{author_info:Re,memo:Te,attachments_list:ut}=it.forumsDetailData||{},Rt=(0,te.useRef)(),bt=(0,te.useRef)(),xe=()=>Sn(void 0,null,function*(){const We={id:Te.id,sticky:Te.sticky?0:1},Pt=yield(0,_e.B0)(We);(Pt==null?void 0:Pt.status)===0&&yn({type:"forumsDetail/setForumsDetailData",payload:cn(rn({},it.forumsDetailData),{memo:cn(rn({},Te),{sticky:!(Te!=null&&Te.sticky)})})})}),pe=()=>Sn(void 0,null,function*(){const We=yield(0,_e.sW)({id:Te==null?void 0:Te.id});(We==null?void 0:We.status)===0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),fe.history.push("/forums")),(We==null?void 0:We.status)===-1&&fe.history.push("/forums")}),Ke=()=>Sn(void 0,null,function*(){ce.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5956\u52B1\u8BBE\u7F6E",content:te.createElement("div",{className:"font14 tc"},te.createElement(me.default,{defaultValue:Rt.current,onChange:We=>Rt.current=We.target.value})),onOk:()=>Sn(void 0,null,function*(){const We=yield(0,_e.eh)({id:Te==null?void 0:Te.id,container_type:"Memo",score:Rt.current?Number(Rt.current):0,user_id:Re==null?void 0:Re.user_id});if(Rt.current=null,(We==null?void 0:We.code)>0){yn({type:"forumsDetail/setForumsDetailData",payload:cn(rn({},it.forumsDetailData),{memo:cn(rn({},Te),{reward:We==null?void 0:We.code})})}),ie.ZP.success("\u5956\u52B1\u6210\u529F");return}ie.ZP.success("\u5956\u52B1\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7CFB\u7EDF\u7BA1\u7406\u5458\uFF01")})})}),ve=()=>{bt.current.onMdFouch&&bt.current.onMdFouch()},Je=()=>Sn(void 0,null,function*(){const We=yield(0,_e.vL)({id:Te.id,container_type:"Memo",type:1});(We==null?void 0:We.praise_count)>=0&&yn({type:"forumsDetail/setForumsDetailData",payload:cn(rn({},it.forumsDetailData),{memo:cn(rn({},Te),{user_praise:!(Te!=null&&Te.user_praise),memo_praise_count:We==null?void 0:We.praise_count})})})}),ct=te.createElement(Fe.default,{className:yt.menu},((Bt=ke.userInfo)==null?void 0:Bt.admin)&&(Te==null?void 0:Te.sticky)&&te.createElement(Fe.default.Item,null,te.createElement("a",{onClick:()=>xe()},"\u53D6\u6D88\u7F6E\u9876")),((ue=ke.userInfo)==null?void 0:ue.admin)&&!(Te!=null&&Te.sticky)&&te.createElement(Fe.default.Item,null,te.createElement("a",{onClick:()=>xe()},"\u7F6E\xA0\xA0\u9876")),te.createElement(Fe.default.Item,null,te.createElement(fe.Link,{to:`/forums/${Te==null?void 0:Te.id}/edit`},"\u7F16\xA0\xA0\u8F91")),te.createElement(Fe.default.Item,null,te.createElement("a",{onClick:()=>{ce.default.confirm({title:"\u63D0\u793A",icon:te.createElement(zt.Z,null),content:"\u5E16\u5B50\u5C06\u88AB\u5220\u9664\uFF0C\u65E0\u6CD5\u6062\u590D\u3002\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",okText:"\u786E\u8BA4",onOk:()=>{pe()},cancelText:"\u53D6\u6D88"})}},"\u5220\xA0\xA0\u9664"))),Ct=We=>{let{nodeName:Pt,src:xt}=We.target;Pt==="IMG"&&(It.Z.publish("preview-image",xt),console.log("src:",xt))};return(0,te.useEffect)(()=>{},[]),te.createElement("section",{className:yt.wrap},te.createElement($e.Z,{separator:"/",className:"mb5"},te.createElement($e.Z.Item,null,te.createElement(fe.Link,{to:`/forums/categories/${Te==null?void 0:Te.forum_id}`},Dn[Te==null?void 0:Te.forum_id])),te.createElement($e.Z.Item,null,"\u8BE6\u60C5")),te.createElement("header",{className:`bg-white pt40 pb40 pl30 pr30 ${yt.header}`},te.createElement(De.Z,{align:"middle"},te.createElement(le.Z,{flex:1,className:"font24 mb5"},te.createElement("span",{className:yt.title},Te==null?void 0:Te.subject),(Te==null?void 0:Te.sticky)&&te.createElement("span",{className:yt.top},"\u7F6E\u9876")),te.createElement(le.Z,null,(((he=ke.userInfo)==null?void 0:he.admin)||((Se=ke.userInfo)==null?void 0:Se.user_id)===(Re==null?void 0:Re.user_id))&&te.createElement(St.Z,{dropdownRender:()=>ct},te.createElement("i",{className:"fa fa-bars font-16 current c-grey-bcb"})))),te.createElement(De.Z,{align:"middle",className:"font14"},te.createElement(le.Z,{flex:1,className:"c-grey-999"},te.createElement("span",null,oe()(Te==null?void 0:Te.time).fromNow()," \u66F4\u65B0")),te.createElement(le.Z,{className:"c-grey-999"},te.createElement("span",{className:`pr10 pl10 ${Te!=null&&Te.replies_count?yt.line:""}`},te.createElement("i",{className:"iconfont icon-liulanyan font18 mr5"}),Te==null?void 0:Te.viewed_count),!!(Te!=null&&Te.replies_count)&&te.createElement(Nt.Z,{placement:"bottom",title:"\u5199\u8BC4\u8BBA"},te.createElement("span",{className:"current pl10",onClick:ve},te.createElement("i",{className:"iconfont icon-huifu1 font18 mr5"}),Te==null?void 0:Te.replies_count))))),te.createElement("main",{className:"bg-white pt40 pb40 pl40 pr40"},te.createElement("div",{onClick:Ct},te.createElement(re.Z,{value:Te==null?void 0:Te.content})),te.createElement("div",{className:"bg-white pl40 pr40 mt40"},te.createElement("div",{className:`mt10 mb20 ${yt.flexCenter}`},te.createElement("div",{className:`${yt.like} ${Te!=null&&Te.user_praise?"":yt.canLike}`,onClick:Je},te.createElement("i",{className:"iconfont icon-dianzan font18"}),te.createElement("br",null),te.createElement("span",null,Te==null?void 0:Te.memo_praise_count)))),!!(ut!=null&&ut.length)&&te.createElement("div",{className:"mt40"},ut==null?void 0:ut.map(We=>te.createElement("div",{className:`c-grey-888 ${yt.flexCenter}`},te.createElement("i",{className:"iconfont icon-fujian mr10 font14 c-green-29b"}),te.createElement("a",{href:We==null?void 0:We.url,title:We==null?void 0:We.title,className:`${yt.attachmentName} mr10`},We==null?void 0:We.title),te.createElement("span",{className:"font12 c-grey-666 mt3"},We==null?void 0:We.filesize))))),te.createElement(wt,{ref:bt,handleClick:Ct}),te.createElement(vt.Z,null))};var En=(0,fe.connect)(({user:Ze,forumsDetail:Xe,loading:ke,globalSetting:it})=>({user:Ze,forumsDetail:Xe,globalSetting:it,loading:ke.effects}))(gn),Xn={flex:"flex___fgmSn"},Jn=ge(71418),la=Object.getOwnPropertySymbols,ra=Object.prototype.hasOwnProperty,_n=Object.prototype.propertyIsEnumerable,Pa=(Ze,Xe)=>{var ke={};for(var it in Ze)ra.call(Ze,it)&&Xe.indexOf(it)<0&&(ke[it]=Ze[it]);if(Ze!=null&&la)for(var it of la(Ze))Xe.indexOf(it)<0&&_n.call(Ze,it)&&(ke[it]=Ze[it]);return ke},oa=(Ze,Xe,ke)=>new Promise((it,Yt)=>{var Qt=Bt=>{try{$t(ke.next(Bt))}catch(ue){Yt(ue)}},yn=Bt=>{try{$t(ke.throw(Bt))}catch(ue){Yt(ue)}},$t=Bt=>Bt.done?it(Bt.value):Promise.resolve(Bt.value).then(Qt,yn);$t((ke=ke.apply(Ze,Xe)).next())});const sa=Ze=>{var Xe=Ze,{forumsDetail:ke,globalSetting:it,loading:Yt,dispatch:Qt}=Xe,yn=Pa(Xe,["forumsDetail","globalSetting","loading","dispatch"]);const $t=(0,fe.useParams)(),[Bt,ue]=(0,te.useState)(!1);(0,te.useEffect)(()=>{he()},[$t.memoId]);const he=()=>oa(void 0,null,function*(){ue(!0);let Se=yield Qt({type:"forumsDetail/getForumsDetailData",payload:{id:$t.memoId}});ue(!1)});return te.createElement(Jn.Z,{spinning:Bt},te.createElement("section",{className:`edu-container mb20 mt30 ${Xn.flex}`},te.createElement(En,null),te.createElement(ee,null)))};var Kn=(0,fe.connect)(({forumsDetail:Ze,loading:Xe,globalSetting:ke})=>({forumsDetail:Ze,globalSetting:ke,loading:Xe.models.forumsDetail}))(sa)},66104:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return Wt}});var te=ge(92310),fe=ge.n(te),He=ge(11592),De=ge(26112),le=ge(59301),Ce=ge(92343),se=ge(36355),_e=ge(84105),Ne=ge(91857);const Me=ye=>{let{children:Ye}=ye;const{getPrefixCls:nt}=le.useContext(se.E_),Qe=nt("breadcrumb");return le.createElement("li",{className:`${Qe}-separator`,"aria-hidden":"true"},Ye===""?Ye:Ye||"/")};Me.__ANT_BREADCRUMB_SEPARATOR=!0;var Ae=Me,ze=function(ye,Ye){var nt={};for(var Qe in ye)Object.prototype.hasOwnProperty.call(ye,Qe)&&Ye.indexOf(Qe)<0&&(nt[Qe]=ye[Qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Qe=Object.getOwnPropertySymbols(ye);lt<Qe.length;lt++)Ye.indexOf(Qe[lt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Qe[lt])&&(nt[Qe[lt]]=ye[Qe[lt]]);return nt};function Be(ye,Ye){if(ye.title===void 0||ye.title===null)return null;const nt=Object.keys(Ye).join("|");return typeof ye.title=="object"?ye.title:String(ye.title).replace(new RegExp(`:(${nt})`,"g"),(Qe,lt)=>Ye[lt]||Qe)}function ae(ye,Ye,nt,Qe){if(nt==null)return null;const{className:lt,onClick:Dt}=Ye,Tt=ze(Ye,["className","onClick"]),At=Object.assign(Object.assign({},(0,De.Z)(Tt,{data:!0,aria:!0})),{onClick:Dt});return Qe!==void 0?le.createElement("a",Object.assign({},At,{className:fe()(`${ye}-link`,lt),href:Qe}),nt):le.createElement("span",Object.assign({},At,{className:fe()(`${ye}-link`,lt)}),nt)}function a(ye,Ye){return(Qe,lt,Dt,Tt,At)=>{if(Ye)return Ye(Qe,lt,Dt,Tt);const Vt=Be(Qe,lt);return ae(ye,Qe,Vt,At)}}var y=function(ye,Ye){var nt={};for(var Qe in ye)Object.prototype.hasOwnProperty.call(ye,Qe)&&Ye.indexOf(Qe)<0&&(nt[Qe]=ye[Qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Qe=Object.getOwnPropertySymbols(ye);lt<Qe.length;lt++)Ye.indexOf(Qe[lt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Qe[lt])&&(nt[Qe[lt]]=ye[Qe[lt]]);return nt};const x=ye=>{const{prefixCls:Ye,separator:nt="/",children:Qe,menu:lt,overlay:Dt,dropdownProps:Tt,href:At}=ye,we=(Ee=>{if(lt||Dt){const Ve=Object.assign({},Tt);if(lt){const Lt=lt||{},{items:qe}=Lt,pt=y(Lt,["items"]);Ve.menu=Object.assign(Object.assign({},pt),{items:qe==null?void 0:qe.map((de,et)=>{var{key:Ot,title:_t,label:Gt,path:Ge}=de,Le=y(de,["key","title","label","path"]);let Pe=Gt!=null?Gt:_t;return Ge&&(Pe=le.createElement("a",{href:`${At}${Ge}`},Pe)),Object.assign(Object.assign({},Le),{key:Ot!=null?Ot:et,label:Pe})})})}else Dt&&(Ve.overlay=Dt);return le.createElement(Ne.Z,Object.assign({placement:"bottom"},Ve),le.createElement("span",{className:`${Ye}-overlay-link`},Ee,le.createElement(_e.Z,null)))}return Ee})(Qe);return we!=null?le.createElement(le.Fragment,null,le.createElement("li",null,we),nt&&le.createElement(Ae,null,nt)):null},b=ye=>{const{prefixCls:Ye,children:nt,href:Qe}=ye,lt=y(ye,["prefixCls","children","href"]),{getPrefixCls:Dt}=le.useContext(se.E_),Tt=Dt("breadcrumb",Ye);return le.createElement(x,Object.assign({},lt,{prefixCls:Tt}),ae(Tt,lt,nt,Qe))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ge(17313),ee=ge(83116),ne=ge(37613);const oe=ye=>{const{componentCls:Ye,iconCls:nt}=ye;return{[Ye]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[nt]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,z.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${Ye}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${Ye}-link`]:{[`
|
|
> ${nt} + span,
|
|
> ${nt} + a
|
|
`]:{marginInlineStart:ye.marginXXS}},[`${Ye}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${nt}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var re=(0,ee.Z)("Breadcrumb",ye=>{const Ye=(0,ne.TS)(ye,{});return[oe(Ye)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),ie=function(ye,Ye){var nt={};for(var Qe in ye)Object.prototype.hasOwnProperty.call(ye,Qe)&&Ye.indexOf(Qe)<0&&(nt[Qe]=ye[Qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Qe=Object.getOwnPropertySymbols(ye);lt<Qe.length;lt++)Ye.indexOf(Qe[lt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Qe[lt])&&(nt[Qe[lt]]=ye[Qe[lt]]);return nt};function ce(ye){const{breadcrumbName:Ye,children:nt}=ye,Qe=ie(ye,["breadcrumbName","children"]),lt=Object.assign({title:Ye},Qe);return nt&&(lt.menu={items:nt.map(Dt=>{var{breadcrumbName:Tt}=Dt,At=ie(Dt,["breadcrumbName"]);return Object.assign(Object.assign({},At),{title:Tt})})}),lt}function me(ye,Ye){return(0,le.useMemo)(()=>ye||(Ye?Ye.map(ce):null),[ye,Ye])}var Fe=function(ye,Ye){var nt={};for(var Qe in ye)Object.prototype.hasOwnProperty.call(ye,Qe)&&Ye.indexOf(Qe)<0&&(nt[Qe]=ye[Qe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Qe=Object.getOwnPropertySymbols(ye);lt<Qe.length;lt++)Ye.indexOf(Qe[lt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Qe[lt])&&(nt[Qe[lt]]=ye[Qe[lt]]);return nt};const $e=(ye,Ye)=>{if(Ye===void 0)return Ye;let nt=(Ye||"").replace(/^\//,"");return Object.keys(ye).forEach(Qe=>{nt=nt.replace(`:${Qe}`,ye[Qe])}),nt},St=ye=>{const{prefixCls:Ye,separator:nt="/",style:Qe,className:lt,rootClassName:Dt,routes:Tt,items:At,children:Vt,itemRender:we,params:Ee={}}=ye,Ve=Fe(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Lt,direction:qe,breadcrumb:pt}=le.useContext(se.E_);let de;const et=Lt("breadcrumb",Ye),[Ot,_t]=re(et),Gt=me(At,Tt),Ge=a(et,we);if(Gt&&Gt.length>0){const Ie=[],je=At||Tt;de=Gt.map((rt,ft)=>{const{path:wt,key:yt,type:zt,menu:vt,overlay:It,onClick:nn,className:un,separator:sn,dropdownProps:Kt}=rt,an=$e(Ee,wt);an!==void 0&&Ie.push(an);const on=yt!=null?yt:ft;if(zt==="separator")return le.createElement(Ae,{key:on},sn);const hn={},rn=ft===Gt.length-1;vt?hn.menu=vt:It&&(hn.overlay=It);let{href:cn}=rt;return Ie.length&&an!==void 0&&(cn=`#/${Ie.join("/")}`),le.createElement(x,Object.assign({key:on},hn,(0,De.Z)(rt,{data:!0,aria:!0}),{className:un,dropdownProps:Kt,href:cn,separator:rn?"":nt,onClick:nn,prefixCls:et}),Ge(rt,Ee,je,Ie,cn))})}else if(Vt){const Ie=(0,He.Z)(Vt).length;de=(0,He.Z)(Vt).map((je,rt)=>{if(!je)return je;const ft=rt===Ie-1;return(0,Ce.Tm)(je,{separator:ft?"":nt,key:rt})})}const Le=fe()(et,pt==null?void 0:pt.className,{[`${et}-rtl`]:qe==="rtl"},lt,Dt,_t),Pe=Object.assign(Object.assign({},pt==null?void 0:pt.style),Qe);return Ot(le.createElement("nav",Object.assign({className:Le,style:Pe},Ve),le.createElement("ol",null,de)))};St.Item=E,St.Separator=Ae;var Nt=St,Wt=Nt},91857:function(be,ot,ge){"use strict";var te=ge(59301),fe=ge(38819),He=ge(92310),De=ge.n(He),le=ge(31561),Ce=ge(70425),se=ge(18929),_e=ge(2738),Ne=ge(79676),Me=ge(53487),Ae=ge(92343),ze=ge(36355),Be=ge(20834),ae=ge(40875),a=ge(88088),y=ge(47211);const x=null,b=ne=>{const{menu:oe,arrow:re,prefixCls:ie,children:ce,trigger:me,disabled:Fe,dropdownRender:$e,getPopupContainer:St,overlayClassName:Nt,rootClassName:Wt,open:ye,onOpenChange:Ye,visible:nt,onVisibleChange:Qe,mouseEnterDelay:lt=.15,mouseLeaveDelay:Dt=.1,autoAdjustOverflow:Tt=!0,placement:At="",overlay:Vt,transitionName:we}=ne,{getPopupContainer:Ee,getPrefixCls:Ve,direction:Lt}=te.useContext(ze.E_),qe=te.useMemo(()=>{const vt=Ve();return we!==void 0?we:At.includes("top")?`${vt}-slide-down`:`${vt}-slide-up`},[Ve,At,we]),pt=te.useMemo(()=>At?At.includes("Center")?At.slice(0,At.indexOf("Center")):At:Lt==="rtl"?"bottomRight":"bottomLeft",[At,Lt]),de=Ve("dropdown",ie),[et,Ot]=(0,y.Z)(de),[,_t]=(0,a.Z)(),Gt=te.Children.only(ce),Ge=(0,Ae.Tm)(Gt,{className:De()(`${de}-trigger`,{[`${de}-rtl`]:Lt==="rtl"},Gt.props.className),disabled:Fe}),Le=Fe?[]:me;let Pe;Le&&Le.includes("contextMenu")&&(Pe=!0);const[Ie,je]=(0,se.Z)(!1,{value:ye!=null?ye:nt}),rt=(0,Ce.useEvent)(vt=>{Ye==null||Ye(vt),Qe==null||Qe(vt),je(vt)}),ft=De()(Nt,Wt,Ot,{[`${de}-rtl`]:Lt==="rtl"}),wt=(0,Ne.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:Tt,offset:_t.marginXXS,arrowWidth:re?_t.sizePopupArrow:0,borderRadius:_t.borderRadius}),yt=te.useCallback(()=>{je(!1)},[]),zt=()=>{let vt;return oe!=null&&oe.items?vt=te.createElement(Be.default,Object.assign({},oe)):typeof Vt=="function"?vt=Vt():vt=Vt,$e&&(vt=$e(vt)),vt=te.Children.only(typeof vt=="string"?te.createElement("span",null,vt):vt),te.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:te.createElement("span",{className:`${de}-menu-submenu-arrow`},te.createElement(fe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:yt,validator:It=>{let{mode:nn}=It}},vt)};return et(te.createElement(le.Z,Object.assign({alignPoint:Pe},(0,_e.Z)(ne,["rootClassName"]),{mouseEnterDelay:lt,mouseLeaveDelay:Dt,visible:Ie,builtinPlacements:wt,arrow:!!re,overlayClassName:ft,prefixCls:de,getPopupContainer:St||Ee,transitionName:qe,trigger:Le,overlay:zt,placement:pt,onVisibleChange:rt}),Ge))};function E(ne){return Object.assign(Object.assign({},ne),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Me.Z)(b,"dropdown",ne=>ne,E),ee=ne=>te.createElement(z,Object.assign({},ne),te.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,ot.Z=b},38854:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return a}});var te=ge(91857),fe=ge(92310),He=ge.n(fe),De=ge(59301),le=ge(18785),Ce=ge(3113),se=ge(36355),_e=ge(81327),Ne=ge(33234),Me=ge(47211),Ae=function(y,x){var b={};for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&x.indexOf(E)<0&&(b[E]=y[E]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,E=Object.getOwnPropertySymbols(y);z<E.length;z++)x.indexOf(E[z])<0&&Object.prototype.propertyIsEnumerable.call(y,E[z])&&(b[E[z]]=y[E[z]]);return b};const ze=y=>{const{getPopupContainer:x,getPrefixCls:b,direction:E}=De.useContext(se.E_),{prefixCls:z,type:ee="default",danger:ne,disabled:oe,loading:re,onClick:ie,htmlType:ce,children:me,className:Fe,menu:$e,arrow:St,autoFocus:Nt,overlay:Wt,trigger:ye,align:Ye,open:nt,onOpenChange:Qe,placement:lt,getPopupContainer:Dt,href:Tt,icon:At=De.createElement(le.Z,null),title:Vt,buttonsRender:we=zt=>zt,mouseEnterDelay:Ee,mouseLeaveDelay:Ve,overlayClassName:Lt,overlayStyle:qe,destroyPopupOnHide:pt,dropdownRender:de}=y,et=Ae(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Ot=b("dropdown",z),_t=`${Ot}-button`,[Gt,Ge]=(0,Me.Z)(Ot),Le={menu:$e,arrow:St,autoFocus:Nt,align:Ye,disabled:oe,trigger:oe?[]:ye,onOpenChange:Qe,getPopupContainer:Dt||x,mouseEnterDelay:Ee,mouseLeaveDelay:Ve,overlayClassName:Lt,overlayStyle:qe,destroyPopupOnHide:pt,dropdownRender:de},{compactSize:Pe,compactItemClassnames:Ie}=(0,Ne.ri)(Ot,E),je=He()(_t,Ie,Fe,Ge);"overlay"in y&&(Le.overlay=Wt),"open"in y&&(Le.open=nt),"placement"in y?Le.placement=lt:Le.placement=E==="rtl"?"bottomLeft":"bottomRight";const rt=De.createElement(Ce.ZP,{type:ee,danger:ne,disabled:oe,loading:re,onClick:ie,htmlType:ce,href:Tt,title:Vt},me),ft=De.createElement(Ce.ZP,{type:ee,danger:ne,icon:At}),[wt,yt]=we([rt,ft]);return Gt(De.createElement(_e.Z.Compact,Object.assign({className:je,size:Pe,block:!0},et),wt,De.createElement(te.Z,Object.assign({},Le),yt)))};ze.__ANT_BUTTON=!0;var Be=ze;const ae=te.Z;ae.Button=Be;var a=ae},47211:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return Ae}});var te=ge(17313),fe=ge(13826),He=ge(92899),De=ge(29878),le=ge(19447),Ce=ge(83116),se=ge(37613),Ne=ze=>{const{componentCls:Be,menuCls:ae,colorError:a,colorTextLightSolid:y}=ze,x=`${ae}-item`;return{[`${Be}, ${Be}-menu-submenu`]:{[`${ae} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Me=ze=>{const{componentCls:Be,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:oe,colorTextDisabled:re,fontSizeIcon:ie,controlPaddingHorizontal:ce,colorBgElevated:me}=ze;return[{[Be]:Object.assign(Object.assign({},(0,te.Wf)(ze)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ie}},[`${Be}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Be}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-topRight`]:{animationName:fe.ly}})},(0,le.ZP)(ze,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Be} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Be}, ${Be}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:ze.borderRadiusLG,outline:"none",boxShadow:ze.boxShadowSecondary},(0,te.Qy)(ze)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${ce}px`,color:ze.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:ze.marginXS,fontSize:ze.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${ce}px`,color:ze.colorText,fontWeight:"normal",fontSize:ne,lineHeight:ze.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ze.borderRadiusSM,"&:hover, &-active":{backgroundColor:ze.controlItemBgHover}},(0,te.Qy)(ze)),{"&-selected":{color:ze.colorPrimary,backgroundColor:ze.controlItemBgActive,"&:hover, &-active":{backgroundColor:ze.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ze.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ze.colorSplit},[`${Be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ze.paddingXS,[`${Be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ze.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ze.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ce+ze.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Be}-menu-submenu-title`]:{[`&, ${Be}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:me,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Be}-menu-submenu-title`]:{color:ze.colorPrimary}})}},[(0,fe.oN)(ze,"slide-up"),(0,fe.oN)(ze,"slide-down"),(0,He.Fm)(ze,"move-up"),(0,He.Fm)(ze,"move-down"),(0,De._y)(ze,"zoom-big")]]};var Ae=(0,Ce.Z)("Dropdown",(ze,Be)=>{let{rootPrefixCls:ae}=Be;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=ze,oe=(x-b*E)/2,{dropdownArrowOffset:re}=(0,le.fS)({contentRadius:ne}),ie=(0,se.TS)(ze,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Me(ie),Ne(ie)]},ze=>({zIndexPopup:ze.zIndexPopupBase+50}))},11611:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return bt}});var te=ge(59301),fe=ge(15277),He=ge(92310),De=ge.n(He),le=ge(54476),Ce=ge(33885),se=ge(20068),_e=ge(42978),Ne=ge(76190),Me=ge(75931),Ae=ge(55468),ze=ge(18929),Be=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ae=te.createContext(null),a=0;function y(xe,pe){var Ke=te.useState(function(){return a+=1,String(a)}),ve=(0,_e.Z)(Ke,1),Je=ve[0],ct=te.useContext(ae),Ct={data:pe,canPreview:xe};return te.useEffect(function(){if(ct)return ct.register(Je,Ct)},[]),te.useEffect(function(){ct&&ct.register(Je,Ct)},[xe,pe]),Je}function x(xe){return new Promise(function(pe){var Ke=document.createElement("img");Ke.onerror=function(){return pe(!1)},Ke.onload=function(){return pe(!0)},Ke.src=xe})}function b(xe){var pe=xe.src,Ke=xe.isCustomPlaceholder,ve=xe.fallback,Je=(0,te.useState)(Ke?"loading":"normal"),ct=(0,_e.Z)(Je,2),Ct=ct[0],We=ct[1],Pt=(0,te.useRef)(!1),xt=Ct==="error";(0,te.useEffect)(function(){x(pe).then(function(Mt){Mt||We("error")})},[pe]),(0,te.useEffect)(function(){Ke&&!Pt.current?We("loading"):xt&&We("normal")},[pe]);var jt=function(){We("normal")},tt=function(Et){Pt.current=!1,Ct==="loading"&&Et!=null&&Et.complete&&(Et.naturalWidth||Et.naturalHeight)&&(Pt.current=!0,jt())},kt=xt&&ve?{src:ve}:{onLoad:jt,src:pe};return[tt,kt,Ct]}var E=ge(86923),z=ge(8224),ee=ge(10228),ne=ge(48736);function oe(xe,pe,Ke,ve){var Je=pe+Ke,ct=(Ke-ve)/2;if(Ke>ve){if(pe>0)return(0,se.Z)({},xe,ct);if(pe<0&&Je<ve)return(0,se.Z)({},xe,-ct)}else if(pe<0||Je>ve)return(0,se.Z)({},xe,pe<0?ct:-ct);return{}}function re(xe,pe,Ke,ve){var Je=(0,Ae.g1)(),ct=Je.width,Ct=Je.height,We=null;return xe<=ct&&pe<=Ct?We={x:0,y:0}:(xe>ct||pe>Ct)&&(We=(0,Ce.Z)((0,Ce.Z)({},oe("x",Ke,xe,ct)),oe("y",ve,pe,Ct))),We}var ie=ge(13697),ce=ge(16089),me={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Fe(xe,pe,Ke,ve){var Je=(0,te.useRef)(null),ct=(0,te.useRef)([]),Ct=(0,te.useState)(me),We=(0,_e.Z)(Ct,2),Pt=We[0],xt=We[1],jt=function(Et){xt(me),ve&&!(0,ie.Z)(me,Pt)&&ve({transform:me,action:Et})},tt=function(Et,Jt){Je.current===null&&(ct.current=[],Je.current=(0,ce.Z)(function(){xt(function(qt){var dn=qt;return ct.current.forEach(function(Oe){dn=(0,Ce.Z)((0,Ce.Z)({},dn),Oe)}),Je.current=null,ve==null||ve({transform:dn,action:Jt}),dn})})),ct.current.push((0,Ce.Z)((0,Ce.Z)({},Pt),Et))},kt=function(Et,Jt,qt,dn){var Oe=xe.current,Vn=Oe.width,wn=Oe.height,vn=Oe.offsetWidth,bn=Oe.offsetHeight,Ue=Oe.offsetLeft,at=Oe.offsetTop,Ft=Et,dt=Pt.scale*Et;dt>Ke?(Ft=Ke/Pt.scale,dt=Ke):dt<pe&&(Ft=pe/Pt.scale,dt=pe);var Xt=qt!=null?qt:innerWidth/2,Ut=dn!=null?dn:innerHeight/2,en=Ft-1,Pn=en*Vn*.5,Fn=en*wn*.5,Un=en*(Xt-Pt.x-Ue),Mn=en*(Ut-Pt.y-at),$n=Pt.x-(Un-Pn),Qn=Pt.y-(Mn-Fn);if(Et<1&&dt===1){var Rn=vn*dt,kn=bn*dt,Yn=(0,Ae.g1)(),qn=Yn.width,On=Yn.height;Rn<=qn&&kn<=On&&($n=0,Qn=0)}tt({x:$n,y:Qn,scale:dt},Jt)};return{transform:Pt,resetTransform:jt,updateTransform:tt,dispatchZoomChange:kt}}var $e=ge(43403),St=ge(77900),Nt=function(pe){var Ke=pe.visible,ve=pe.maskTransitionName,Je=pe.getContainer,ct=pe.prefixCls,Ct=pe.rootClassName,We=pe.icons,Pt=pe.countRender,xt=pe.showSwitch,jt=pe.showProgress,tt=pe.current,kt=pe.transform,Mt=pe.count,Et=pe.scale,Jt=pe.minScale,qt=pe.maxScale,dn=pe.closeIcon,Oe=pe.onSwitchLeft,Vn=pe.onSwitchRight,wn=pe.onClose,vn=pe.onZoomIn,bn=pe.onZoomOut,Ue=pe.onRotateRight,at=pe.onRotateLeft,Ft=pe.onFlipX,dt=pe.onFlipY,Xt=pe.toolbarRender,Ut=(0,te.useContext)(ae),en=We.rotateLeft,Pn=We.rotateRight,Fn=We.zoomIn,Un=We.zoomOut,Mn=We.close,$n=We.left,Qn=We.right,Rn=We.flipX,kn=We.flipY,Yn="".concat(ct,"-operations-operation");te.useEffect(function(){var fn=function(In){In.keyCode===ee.Z.ESC&&wn()};return Ke&&window.addEventListener("keydown",fn),function(){window.removeEventListener("keydown",fn)}},[Ke]);var qn=[{icon:kn,onClick:dt,type:"flipY"},{icon:Rn,onClick:Ft,type:"flipX"},{icon:en,onClick:at,type:"rotateLeft"},{icon:Pn,onClick:Ue,type:"rotateRight"},{icon:Un,onClick:bn,type:"zoomOut",disabled:Et===Jt},{icon:Fn,onClick:vn,type:"zoomIn",disabled:Et===qt}],On=qn.map(function(fn){var xn,In=fn.icon,ea=fn.onClick,ln=fn.type,ga=fn.disabled;return te.createElement("div",{className:De()(Yn,(xn={},(0,se.Z)(xn,"".concat(ct,"-operations-operation-").concat(ln),!0),(0,se.Z)(xn,"".concat(ct,"-operations-operation-disabled"),!!ga),xn)),onClick:ea,key:ln},In)}),Tn=te.createElement("div",{className:"".concat(ct,"-operations")},On);return te.createElement(St.default,{visible:Ke,motionName:ve},function(fn){var xn=fn.className,In=fn.style;return te.createElement($e.Z,{open:!0,getContainer:Je!=null?Je:document.body},te.createElement("div",{className:De()("".concat(ct,"-operations-wrapper"),xn,Ct),style:In},dn===null?null:te.createElement("button",{className:"".concat(ct,"-close"),onClick:wn},dn||Mn),xt&&te.createElement(te.Fragment,null,te.createElement("div",{className:De()("".concat(ct,"-switch-left"),(0,se.Z)({},"".concat(ct,"-switch-left-disabled"),tt===0)),onClick:Oe},$n),te.createElement("div",{className:De()("".concat(ct,"-switch-right"),(0,se.Z)({},"".concat(ct,"-switch-right-disabled"),tt===Mt-1)),onClick:Vn},Qn)),te.createElement("div",{className:"".concat(ct,"-footer")},jt&&te.createElement("div",{className:"".concat(ct,"-progress")},Pt?Pt(tt+1,Mt):"".concat(tt+1," / ").concat(Mt)),Xt?Xt(Tn,(0,Ce.Z)({icons:{flipYIcon:On[0],flipXIcon:On[1],rotateLeftIcon:On[2],rotateRightIcon:On[3],zoomOutIcon:On[4],zoomInIcon:On[5]},actions:{onFlipY:dt,onFlipX:Ft,onRotateLeft:at,onRotateRight:Ue,onZoomOut:bn,onZoomIn:vn},transform:kt},Ut?{current:tt,total:Mt}:{})):Tn)))})},Wt=Nt,ye=1,Ye=1,nt=["fallback","src","imgRef"],Qe=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],lt=function(pe){var Ke=pe.fallback,ve=pe.src,Je=pe.imgRef,ct=(0,Me.Z)(pe,nt),Ct=b({src:ve,fallback:Ke}),We=(0,_e.Z)(Ct,2),Pt=We[0],xt=We[1];return te.createElement("img",(0,le.Z)({ref:function(tt){Je.current=tt,Pt(tt)}},ct,xt))},Dt=function(pe){var Ke=pe.prefixCls,ve=pe.src,Je=pe.alt,ct=pe.fallback,Ct=pe.movable,We=Ct===void 0?!0:Ct,Pt=pe.onClose,xt=pe.visible,jt=pe.icons,tt=jt===void 0?{}:jt,kt=pe.rootClassName,Mt=pe.closeIcon,Et=pe.getContainer,Jt=pe.current,qt=Jt===void 0?0:Jt,dn=pe.count,Oe=dn===void 0?1:dn,Vn=pe.countRender,wn=pe.scaleStep,vn=wn===void 0?.5:wn,bn=pe.minScale,Ue=bn===void 0?1:bn,at=pe.maxScale,Ft=at===void 0?50:at,dt=pe.transitionName,Xt=dt===void 0?"zoom":dt,Ut=pe.maskTransitionName,en=Ut===void 0?"fade":Ut,Pn=pe.imageRender,Fn=pe.imgCommonProps,Un=pe.toolbarRender,Mn=pe.onTransform,$n=pe.onChange,Qn=(0,Me.Z)(pe,Qe),Rn=(0,te.useRef)(),kn=(0,te.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Yn=(0,te.useState)(!1),qn=(0,_e.Z)(Yn,2),On=qn[0],Tn=qn[1],fn=(0,te.useContext)(ae),xn=fn&&Oe>1,In=fn&&Oe>=1,ea=Fe(Rn,Ue,Ft,Mn),ln=ea.transform,ga=ea.resetTransform,An=ea.updateTransform,Gn=ea.dispatchZoomChange,va=(0,te.useState)(!0),jn=(0,_e.Z)(va,2),ua=jn[0],ta=jn[1],Zn=ln.rotate,Hn=ln.scale,ia=ln.x,ma=ln.y,Fa=De()((0,se.Z)({},"".concat(Ke,"-moving"),On));(0,te.useEffect)(function(){ua||ta(!0)},[ua]);var wa=function(){ga("close")},fa=function(){Gn(ye+vn,"zoomIn")},ht=function(){Gn(ye/(ye+vn),"zoomOut")},gt=function(){An({rotate:Zn+90},"rotateRight")},mt=function(){An({rotate:Zn-90},"rotateLeft")},st=function(){An({flipX:!ln.flipX},"flipX")},Ht=function(){An({flipY:!ln.flipY},"flipY")},mn=function(Zt){Zt==null||Zt.preventDefault(),Zt==null||Zt.stopPropagation(),qt>0&&(ta(!1),ga("prev"),$n==null||$n(qt-1,qt))},Cn=function(Zt){Zt==null||Zt.preventDefault(),Zt==null||Zt.stopPropagation(),qt<Oe-1&&(ta(!1),ga("next"),$n==null||$n(qt+1,qt))},pn=function(){if(xt&&On){Tn(!1);var Zt=kn.current,na=Zt.transformX,ca=Zt.transformY,tn=ia!==na&&ma!==ca;if(!tn)return;var ha=Rn.current.offsetWidth*Hn,pa=Rn.current.offsetHeight*Hn,Sa=Rn.current.getBoundingClientRect(),Ca=Sa.left,ba=Sa.top,aa=Zn%180!==0,xa=re(aa?pa:ha,aa?ha:pa,Ca,ba);xa&&An((0,Ce.Z)({},xa),"dragRebound")}},zn=function(Zt){!We||Zt.button!==0||(Zt.preventDefault(),Zt.stopPropagation(),kn.current={deltaX:Zt.pageX-ln.x,deltaY:Zt.pageY-ln.y,transformX:ln.x,transformY:ln.y},Tn(!0))},Nn=function(Zt){xt&&On&&An({x:Zt.pageX-kn.current.deltaX,y:Zt.pageY-kn.current.deltaY},"move")},da=function(Zt){if(!(!xt||Zt.deltaY==0)){var na=Math.abs(Zt.deltaY/100),ca=Math.min(na,Ye),tn=ye+ca*vn;Zt.deltaY>0&&(tn=ye/tn),Gn(tn,"wheel",Zt.clientX,Zt.clientY)}},Wn=function(Zt){!xt||!xn||(Zt.keyCode===ee.Z.LEFT?mn():Zt.keyCode===ee.Z.RIGHT&&Cn())},ya=function(Zt){xt&&(Hn!==1?An({x:0,y:0,scale:1},"doubleClick"):Gn(ye+vn,"doubleClick",Zt.clientX,Zt.clientY))};(0,te.useEffect)(function(){var Ln,Zt,na,ca;if(We){na=(0,z.Z)(window,"mouseup",pn,!1),ca=(0,z.Z)(window,"mousemove",Nn,!1);try{window.top!==window.self&&(Ln=(0,z.Z)(window.top,"mouseup",pn,!1),Zt=(0,z.Z)(window.top,"mousemove",Nn,!1))}catch(tn){(0,ne.Kp)(!1,"[rc-image] ".concat(tn))}}return function(){var tn,ha,pa,Sa;(tn=na)===null||tn===void 0||tn.remove(),(ha=ca)===null||ha===void 0||ha.remove(),(pa=Ln)===null||pa===void 0||pa.remove(),(Sa=Zt)===null||Sa===void 0||Sa.remove()}},[xt,On,ia,ma,Zn,We]),(0,te.useEffect)(function(){var Ln=(0,z.Z)(window,"keydown",Wn,!1);return function(){Ln.remove()}},[xt,xn,qt]);var La=te.createElement(lt,(0,le.Z)({},Fn,{width:pe.width,height:pe.height,imgRef:Rn,className:"".concat(Ke,"-img"),alt:Je,style:{transform:"translate3d(".concat(ln.x,"px, ").concat(ln.y,"px, 0) scale3d(").concat(ln.flipX?"-":"").concat(Hn,", ").concat(ln.flipY?"-":"").concat(Hn,", 1) rotate(").concat(Zn,"deg)"),transitionDuration:!ua&&"0s"},fallback:ct,src:ve,onWheel:da,onMouseDown:zn,onDoubleClick:ya}));return te.createElement(te.Fragment,null,te.createElement(E.Z,(0,le.Z)({transitionName:Xt,maskTransitionName:en,closable:!1,keyboard:!0,prefixCls:Ke,onClose:Pt,visible:xt,wrapClassName:Fa,rootClassName:kt,getContainer:Et},Qn,{afterClose:wa}),te.createElement("div",{className:"".concat(Ke,"-img-wrapper")},Pn?Pn(La,(0,Ce.Z)({transform:ln},fn?{current:qt}:{})):La)),te.createElement(Wt,{visible:xt,transform:ln,maskTransitionName:en,closeIcon:Mt,getContainer:Et,prefixCls:Ke,rootClassName:kt,icons:tt,countRender:Vn,showSwitch:xn,showProgress:In,current:qt,count:Oe,scale:Hn,minScale:Ue,maxScale:Ft,toolbarRender:Un,onSwitchLeft:mn,onSwitchRight:Cn,onZoomIn:fa,onZoomOut:ht,onRotateRight:gt,onRotateLeft:mt,onFlipX:st,onFlipY:Ht,onClose:Pt}))},Tt=Dt,At=ge(94480);function Vt(xe){var pe=te.useState({}),Ke=(0,_e.Z)(pe,2),ve=Ke[0],Je=Ke[1],ct=te.useCallback(function(We,Pt){return Je(function(xt){return(0,Ce.Z)((0,Ce.Z)({},xt),{},(0,se.Z)({},We,Pt))}),function(){Je(function(xt){var jt=(0,Ce.Z)({},xt);return delete jt[We],jt})}},[]),Ct=te.useMemo(function(){return xe?xe.map(function(We){if(typeof We=="string")return{data:{src:We}};var Pt={};return Object.keys(We).forEach(function(xt){["src"].concat((0,At.Z)(Be)).includes(xt)&&(Pt[xt]=We[xt])}),{data:Pt}}):Object.keys(ve).reduce(function(We,Pt){var xt=ve[Pt],jt=xt.canPreview,tt=xt.data;return jt&&We.push({data:tt,id:Pt}),We},[])},[xe,ve]);return[Ct,ct]}var we=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ee=["src"],Ve=function(pe){var Ke,ve=pe.previewPrefixCls,Je=ve===void 0?"rc-image-preview":ve,ct=pe.children,Ct=pe.icons,We=Ct===void 0?{}:Ct,Pt=pe.items,xt=pe.preview,jt=pe.fallback,tt=(0,Ne.Z)(xt)==="object"?xt:{},kt=tt.visible,Mt=tt.onVisibleChange,Et=tt.getContainer,Jt=tt.current,qt=tt.movable,dn=tt.minScale,Oe=tt.maxScale,Vn=tt.countRender,wn=tt.closeIcon,vn=tt.onChange,bn=tt.onTransform,Ue=tt.toolbarRender,at=tt.imageRender,Ft=(0,Me.Z)(tt,we),dt=Vt(Pt),Xt=(0,_e.Z)(dt,2),Ut=Xt[0],en=Xt[1],Pn=(0,ze.Z)(0,{value:Jt}),Fn=(0,_e.Z)(Pn,2),Un=Fn[0],Mn=Fn[1],$n=(0,te.useState)(!1),Qn=(0,_e.Z)($n,2),Rn=Qn[0],kn=Qn[1],Yn=((Ke=Ut[Un])===null||Ke===void 0?void 0:Ke.data)||{},qn=Yn.src,On=(0,Me.Z)(Yn,Ee),Tn=(0,ze.Z)(!!kt,{value:kt,onChange:function(Zn,Hn){Mt==null||Mt(Zn,Hn,Un)}}),fn=(0,_e.Z)(Tn,2),xn=fn[0],In=fn[1],ea=(0,te.useState)(null),ln=(0,_e.Z)(ea,2),ga=ln[0],An=ln[1],Gn=te.useCallback(function(ta,Zn,Hn){var ia=Ut.findIndex(function(ma){return ma.id===ta});In(!0),An({x:Zn,y:Hn}),Mn(ia<0?0:ia),kn(!0)},[Ut]);te.useEffect(function(){xn?Rn||Mn(0):kn(!1)},[xn]);var va=function(Zn,Hn){Mn(Zn),vn==null||vn(Zn,Hn)},jn=function(){In(!1),An(null)},ua=te.useMemo(function(){return{register:en,onPreview:Gn}},[en,Gn]);return te.createElement(ae.Provider,{value:ua},ct,te.createElement(Tt,(0,le.Z)({"aria-hidden":!xn,movable:qt,visible:xn,prefixCls:Je,closeIcon:wn,onClose:jn,mousePosition:ga,imgCommonProps:On,src:qn,fallback:jt,icons:We,minScale:dn,maxScale:Oe,getContainer:Et,current:Un,count:Ut.length,countRender:Vn,onTransform:bn,toolbarRender:Ue,imageRender:at,onChange:va},Ft)))},Lt=Ve,qe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],pt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],de=function(pe){var Ke=pe.src,ve=pe.alt,Je=pe.onPreviewClose,ct=pe.prefixCls,Ct=ct===void 0?"rc-image":ct,We=pe.previewPrefixCls,Pt=We===void 0?"".concat(Ct,"-preview"):We,xt=pe.placeholder,jt=pe.fallback,tt=pe.width,kt=pe.height,Mt=pe.style,Et=pe.preview,Jt=Et===void 0?!0:Et,qt=pe.className,dn=pe.onClick,Oe=pe.onError,Vn=pe.wrapperClassName,wn=pe.wrapperStyle,vn=pe.rootClassName,bn=(0,Me.Z)(pe,qe),Ue=xt&&xt!==!0,at=(0,Ne.Z)(Jt)==="object"?Jt:{},Ft=at.src,dt=at.visible,Xt=dt===void 0?void 0:dt,Ut=at.onVisibleChange,en=Ut===void 0?Je:Ut,Pn=at.getContainer,Fn=Pn===void 0?void 0:Pn,Un=at.mask,Mn=at.maskClassName,$n=at.movable,Qn=at.icons,Rn=at.scaleStep,kn=at.minScale,Yn=at.maxScale,qn=at.imageRender,On=at.toolbarRender,Tn=(0,Me.Z)(at,pt),fn=Ft!=null?Ft:Ke,xn=(0,ze.Z)(!!Xt,{value:Xt,onChange:en}),In=(0,_e.Z)(xn,2),ea=In[0],ln=In[1],ga=b({src:Ke,isCustomPlaceholder:Ue,fallback:jt}),An=(0,_e.Z)(ga,3),Gn=An[0],va=An[1],jn=An[2],ua=(0,te.useState)(null),ta=(0,_e.Z)(ua,2),Zn=ta[0],Hn=ta[1],ia=(0,te.useContext)(ae),ma=!!Jt,Fa=function(){ln(!1),Hn(null)},wa=De()(Ct,Vn,vn,(0,se.Z)({},"".concat(Ct,"-error"),jn==="error")),fa=(0,te.useMemo)(function(){var st={};return Be.forEach(function(Ht){pe[Ht]!==void 0&&(st[Ht]=pe[Ht])}),st},Be.map(function(st){return pe[st]})),ht=(0,te.useMemo)(function(){return(0,Ce.Z)((0,Ce.Z)({},fa),{},{src:fn})},[fn,fa]),gt=y(ma,ht),mt=function(Ht){var mn=(0,Ae.os)(Ht.target),Cn=mn.left,pn=mn.top;ia?ia.onPreview(gt,Cn,pn):(Hn({x:Cn,y:pn}),ln(!0)),dn==null||dn(Ht)};return te.createElement(te.Fragment,null,te.createElement("div",(0,le.Z)({},bn,{className:wa,onClick:ma?mt:dn,style:(0,Ce.Z)({width:tt,height:kt},wn)}),te.createElement("img",(0,le.Z)({},fa,{className:De()("".concat(Ct,"-img"),(0,se.Z)({},"".concat(Ct,"-img-placeholder"),xt===!0),qt),style:(0,Ce.Z)({height:kt},Mt),ref:Gn},va,{width:tt,height:kt,onError:Oe})),jn==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(Ct,"-placeholder")},xt),Un&&ma&&te.createElement("div",{className:De()("".concat(Ct,"-mask"),Mn),style:{display:(Mt==null?void 0:Mt.display)==="none"?"none":void 0}},Un)),!ia&&ma&&te.createElement(Tt,(0,le.Z)({"aria-hidden":!ea,visible:ea,prefixCls:Pt,onClose:Fa,mousePosition:Zn,src:fn,alt:ve,fallback:jt,getContainer:Fn,icons:Qn,movable:$n,scaleStep:Rn,minScale:kn,maxScale:Yn,rootClassName:vn,imageRender:qn,imgCommonProps:fa,toolbarRender:On},Tn)))};de.PreviewGroup=Lt,de.displayName="Image";var et=de,Ot=et,_t=ge(62892),Gt=ge(36355),Ge=ge(31724),Le=ge(99267),Pe=ge(33853),Ie=ge(38819),je={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"},rt=je,ft=ge(7657),wt=function(pe,Ke){return te.createElement(ft.Z,(0,le.Z)({},pe,{ref:Ke,icon:rt}))},yt=te.forwardRef(wt),zt=yt,vt={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"},It=vt,nn=function(pe,Ke){return te.createElement(ft.Z,(0,le.Z)({},pe,{ref:Ke,icon:It}))},un=te.forwardRef(nn),sn=un,Kt={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"},an=Kt,on=function(pe,Ke){return te.createElement(ft.Z,(0,le.Z)({},pe,{ref:Ke,icon:an}))},hn=te.forwardRef(on),rn=hn,cn={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"},Bn=cn,Sn=function(pe,Ke){return te.createElement(ft.Z,(0,le.Z)({},pe,{ref:Ke,icon:Bn}))},Dn=te.forwardRef(Sn),gn=Dn,En={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"},Xn=En,Jn=function(pe,Ke){return te.createElement(ft.Z,(0,le.Z)({},pe,{ref:Ke,icon:Xn}))},la=te.forwardRef(Jn),ra=la,_n=ge(64993),Pa=ge(73819),oa=ge(17313),sa=ge(29878),Kn=ge(1950),Ze=ge(83116),Xe=ge(37613);const ke=xe=>({position:xe||"absolute",inset:0}),it=xe=>{const{iconCls:pe,motionDurationSlow:Ke,paddingXXS:ve,marginXXS:Je,prefixCls:ct,colorTextLightSolid:Ct}=xe;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Ct,background:new _n.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Ke}`,[`.${ct}-mask-info`]:Object.assign(Object.assign({},oa.vS),{padding:`0 ${ve}px`,[pe]:{marginInlineEnd:Je,svg:{verticalAlign:"baseline"}}})}},Yt=xe=>{const{previewCls:pe,modalMaskBg:Ke,paddingSM:ve,marginXL:Je,margin:ct,paddingLG:Ct,previewOperationColorDisabled:We,previewOperationHoverColor:Pt,motionDurationSlow:xt,iconCls:jt,colorTextLightSolid:tt}=xe,kt=new _n.C(Ke).setAlpha(.1),Mt=kt.clone().setAlpha(.2);return{[`${pe}-footer`]:{position:"fixed",bottom:Je,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:xe.previewOperationColor},[`${pe}-progress`]:{marginBottom:ct},[`${pe}-close`]:{position:"fixed",top:Je,right:{_skip_check_:!0,value:Je},display:"flex",color:tt,backgroundColor:kt.toRgbString(),borderRadius:"50%",padding:ve,outline:0,border:0,cursor:"pointer",transition:`all ${xt}`,"&:hover":{backgroundColor:Mt.toRgbString()},[`& > ${jt}`]:{fontSize:xe.previewOperationSize}},[`${pe}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ct}px`,backgroundColor:kt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:ve,padding:ve,cursor:"pointer",transition:`all ${xt}`,userSelect:"none",[`&:not(${pe}-operations-operation-disabled):hover > ${jt}`]:{color:Pt},"&-disabled":{color:We,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${jt}`]:{fontSize:xe.previewOperationSize}}}}},Qt=xe=>{const{modalMaskBg:pe,iconCls:Ke,previewOperationColorDisabled:ve,previewCls:Je,zIndexPopup:ct,motionDurationSlow:Ct}=xe,We=new _n.C(pe).setAlpha(.1),Pt=We.clone().setAlpha(.2);return{[`${Je}-switch-left, ${Je}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:ct+1,display:"flex",alignItems:"center",justifyContent:"center",width:xe.imagePreviewSwitchSize,height:xe.imagePreviewSwitchSize,marginTop:-xe.imagePreviewSwitchSize/2,color:xe.previewOperationColor,background:We.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Ct}`,userSelect:"none","&:hover":{background:Pt.toRgbString()},"&-disabled":{"&, &:hover":{color:ve,background:"transparent",cursor:"not-allowed",[`> ${Ke}`]:{cursor:"not-allowed"}}},[`> ${Ke}`]:{fontSize:xe.previewOperationSize}},[`${Je}-switch-left`]:{insetInlineStart:xe.marginSM},[`${Je}-switch-right`]:{insetInlineEnd:xe.marginSM}}},yn=xe=>{const{motionEaseOut:pe,previewCls:Ke,motionDurationSlow:ve,componentCls:Je}=xe;return[{[`${Je}-preview-root`]:{[Ke]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Ke}-body`]:Object.assign(Object.assign({},ke()),{overflow:"hidden"}),[`${Ke}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${ve} ${pe} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ke()),{transition:`transform ${ve} ${pe} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Ke}-moving`]:{[`${Ke}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Je}-preview-root`]:{[`${Ke}-wrap`]:{zIndex:xe.zIndexPopup}}},{[`${Je}-preview-operations-wrapper`]:{position:"fixed",zIndex:xe.zIndexPopup+1},"&":[Yt(xe),Qt(xe)]}]},$t=xe=>{const{componentCls:pe}=xe;return{[pe]:{position:"relative",display:"inline-block",[`${pe}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${pe}-img-placeholder`]:{backgroundColor:xe.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${pe}-mask`]:Object.assign({},it(xe)),[`${pe}-mask:hover`]:{opacity:1},[`${pe}-placeholder`]:Object.assign({},ke())}}},Bt=xe=>{const{previewCls:pe}=xe;return{[`${pe}-root`]:(0,sa._y)(xe,"zoom"),"&":(0,Kn.J$)(xe,!0)}};var ue=(0,Ze.Z)("Image",xe=>{const pe=`${xe.componentCls}-preview`,Ke=(0,Xe.TS)(xe,{previewCls:pe,modalMaskBg:new _n.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:xe.controlHeightLG});return[$t(Ke),yn(Ke),(0,Pa.QA)((0,Xe.TS)(Ke,{componentCls:pe})),Bt(Ke)]},xe=>({zIndexPopup:xe.zIndexPopupBase+80,previewOperationColor:new _n.C(xe.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new _n.C(xe.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new _n.C(xe.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:xe.fontSizeIcon*1.5})),he=function(xe,pe){var Ke={};for(var ve in xe)Object.prototype.hasOwnProperty.call(xe,ve)&&pe.indexOf(ve)<0&&(Ke[ve]=xe[ve]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ve=Object.getOwnPropertySymbols(xe);Je<ve.length;Je++)pe.indexOf(ve[Je])<0&&Object.prototype.propertyIsEnumerable.call(xe,ve[Je])&&(Ke[ve[Je]]=xe[ve[Je]]);return Ke};const Se={rotateLeft:te.createElement(zt,null),rotateRight:te.createElement(sn,null),zoomIn:te.createElement(gn,null),zoomOut:te.createElement(ra,null),close:te.createElement(Le.Z,null),left:te.createElement(Pe.Z,null),right:te.createElement(Ie.Z,null),flipX:te.createElement(rn,null),flipY:te.createElement(rn,{rotate:90})};var Te=xe=>{var{previewPrefixCls:pe,preview:Ke}=xe,ve=he(xe,["previewPrefixCls","preview"]);const{getPrefixCls:Je}=te.useContext(Gt.E_),ct=Je("image",pe),Ct=`${ct}-preview`,We=Je(),[Pt,xt]=ue(ct),jt=te.useMemo(()=>{var tt;if(Ke===!1)return Ke;const kt=typeof Ke=="object"?Ke:{},Mt=De()(xt,(tt=kt.rootClassName)!==null&&tt!==void 0?tt:"");return Object.assign(Object.assign({},kt),{transitionName:(0,_t.m)(We,"zoom",kt.transitionName),maskTransitionName:(0,_t.m)(We,"fade",kt.maskTransitionName),rootClassName:Mt})},[Ke]);return Pt(te.createElement(Ot.PreviewGroup,Object.assign({preview:jt,previewPrefixCls:Ct,icons:Se},ve)))},ut=function(xe,pe){var Ke={};for(var ve in xe)Object.prototype.hasOwnProperty.call(xe,ve)&&pe.indexOf(ve)<0&&(Ke[ve]=xe[ve]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ve=Object.getOwnPropertySymbols(xe);Je<ve.length;Je++)pe.indexOf(ve[Je])<0&&Object.prototype.propertyIsEnumerable.call(xe,ve[Je])&&(Ke[ve[Je]]=xe[ve[Je]]);return Ke};const Rt=xe=>{const{prefixCls:pe,preview:Ke,className:ve,rootClassName:Je,style:ct}=xe,Ct=ut(xe,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:We,locale:Pt=Ge.Z,getPopupContainer:xt,image:jt}=te.useContext(Gt.E_),tt=We("image",pe),kt=We(),Mt=Pt.Image||Ge.Z.Image,[Et,Jt]=ue(tt),qt=De()(Je,Jt),dn=De()(ve,Jt,jt==null?void 0:jt.className),Oe=te.useMemo(()=>{if(Ke===!1)return Ke;const wn=typeof Ke=="object"?Ke:{},{getContainer:vn}=wn,bn=ut(wn,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${tt}-mask-info`},te.createElement(fe.Z,null),Mt==null?void 0:Mt.preview),icons:Se},bn),{getContainer:vn||xt,transitionName:(0,_t.m)(kt,"zoom",wn.transitionName),maskTransitionName:(0,_t.m)(kt,"fade",wn.maskTransitionName)})},[Ke,Mt]),Vn=Object.assign(Object.assign({},jt==null?void 0:jt.style),ct);return Et(te.createElement(Ot,Object.assign({prefixCls:tt,preview:Oe,rootClassName:qt,className:dn,style:Vn},Ct)))};Rt.PreviewGroup=Te;var bt=Rt},45818:function(be,ot,ge){"use strict";ge.d(ot,{D:function(){return z},Z:function(){return oe}});var te=ge(54476),fe=ge(59301),He={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"},De=He,le=ge(7657),Ce=function(ie,ce){return fe.createElement(le.Z,(0,te.Z)({},ie,{ref:ce,icon:De}))},se=fe.forwardRef(Ce),_e=se,Ne=ge(33853),Me=ge(38819),Ae=ge(92310),ze=ge.n(Ae),Be=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 Fe=0,me=Object.getOwnPropertySymbols(re);Fe<me.length;Fe++)ie.indexOf(me[Fe])<0&&Object.prototype.propertyIsEnumerable.call(re,me[Fe])&&(ce[me[Fe]]=re[me[Fe]]);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:Fe,children:$e,defaultCollapsed:St=!1,theme:Nt="dark",style:Wt={},collapsible:ye=!1,reverseArrow:Ye=!1,width:nt=200,collapsedWidth:Qe=80,zeroWidthTriggerStyle:lt,breakpoint:Dt,onCollapse:Tt,onBreakpoint:At}=re,Vt=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:we}=(0,fe.useContext)(x.Gs),[Ee,Ve]=(0,fe.useState)("collapsed"in re?re.collapsed:St),[Lt,qe]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in re&&Ve(re.collapsed)},[re.collapsed]);const pt=(Ge,Le)=>{"collapsed"in re||Ve(Ge),Tt==null||Tt(Ge,Le)},de=(0,fe.useRef)();de.current=Ge=>{qe(Ge.matches),At==null||At(Ge.matches),Ee!==Ge.matches&&pt(Ge.matches,"responsive")},(0,fe.useEffect)(()=>{function Ge(Pe){return de.current(Pe)}let Le;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&Dt&&Dt in E){Le=Pe(`(max-width: ${E[Dt]})`);try{Le.addEventListener("change",Ge)}catch(Ie){Le.addListener(Ge)}Ge(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",Ge)}catch(Pe){Le==null||Le.removeListener(Ge)}}},[Dt]),(0,fe.useEffect)(()=>{const Ge=ee("ant-sider-");return we.addSider(Ge),()=>we.removeSider(Ge)},[]);const et=()=>{pt(!Ee,"clickTrigger")},{getPrefixCls:Ot}=(0,fe.useContext)(y.E_),_t=()=>{const Ge=Ot("layout-sider",ce),Le=(0,Be.Z)(Vt,["collapsed"]),Pe=Ee?Qe:nt,Ie=a(Pe)?`${Pe}px`:String(Pe),je=parseFloat(String(Qe||0))===0?fe.createElement("span",{onClick:et,className:ze()(`${Ge}-zero-width-trigger`,`${Ge}-zero-width-trigger-${Ye?"right":"left"}`),style:lt},Fe||fe.createElement(_e,null)):null,wt={expanded:Ye?fe.createElement(Me.Z,null):fe.createElement(Ne.Z,null),collapsed:Ye?fe.createElement(Ne.Z,null):fe.createElement(Me.Z,null)}[Ee?"collapsed":"expanded"],yt=Fe!==null?je||fe.createElement("div",{className:`${Ge}-trigger`,onClick:et,style:{width:Ie}},Fe||wt):null,zt=Object.assign(Object.assign({},Wt),{flex:`0 0 ${Ie}`,maxWidth:Ie,minWidth:Ie,width:Ie}),vt=ze()(Ge,`${Ge}-${Nt}`,{[`${Ge}-collapsed`]:!!Ee,[`${Ge}-has-trigger`]:ye&&Fe!==null&&!je,[`${Ge}-below`]:!!Lt,[`${Ge}-zero-width`]:parseFloat(Ie)===0},me);return fe.createElement("aside",Object.assign({className:vt},Le,{style:zt,ref:ie}),fe.createElement("div",{className:`${Ge}-children`},$e),ye||Lt&&je?yt:null)},Gt=fe.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return fe.createElement(z.Provider,{value:Gt},_t())})},84966:function(be,ot,ge){"use strict";ge.d(ot,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Be},ZP:function(){return ee}});var te=ge(94480),fe=ge(92310),He=ge.n(fe),De=ge(2738),le=ge(59301),Ce=ge(36355),se=ge(83116),Ne=ne=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:ce,lightTriggerColor:me}=ne;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=ne=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:ce,footerBg:me,triggerBg:Fe,headerHeight:$e,headerPadding:St,headerColor:Nt,footerPadding:Wt,triggerHeight:ye,zeroTriggerHeight:Ye,zeroTriggerWidth:nt,motionDurationMid:Qe,motionDurationSlow:lt,fontSize:Dt,borderRadius:Tt,bodyBg:At,headerBg:Vt,siderBg:we}=ne;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:At,"&, *":{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 ${Qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ye},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ye,color:ce,lineHeight:`${ye}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:$e,insetInlineEnd:-nt,zIndex:1,width:nt,height:Ye,color:ce,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:we,borderStartStartRadius:0,borderStartEndRadius:Tt,borderEndEndRadius:Tt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${lt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${lt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-nt,borderStartStartRadius:Tt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Tt}}}}},Ne(ne)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:$e,padding:St,color:Nt,lineHeight:`${$e}px`,background:Vt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:Wt,color:ie,fontSize:Dt,background:me},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Ae=(0,se.Z)("Layout",ne=>[Me(ne)],ne=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:ce,controlHeightSM:me,marginXXS:Fe,colorTextLightSolid:$e,colorBgContainer:St}=ne,Nt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${Nt}px`,headerColor:ce,footerPadding:`${me}px ${Nt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Fe*2,triggerBg:"#002140",triggerColor:$e,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:St,lightTriggerBg:St,lightTriggerColor:ce}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ze=function(ne,oe){var re={};for(var ie in ne)Object.prototype.hasOwnProperty.call(ne,ie)&&oe.indexOf(ie)<0&&(re[ie]=ne[ie]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ie=Object.getOwnPropertySymbols(ne);ce<ie.length;ce++)oe.indexOf(ie[ce])<0&&Object.prototype.propertyIsEnumerable.call(ne,ie[ce])&&(re[ie[ce]]=ne[ie[ce]]);return re};const Be=le.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:oe,tagName:re,displayName:ie}=ne;return ce=>le.forwardRef((Fe,$e)=>le.createElement(ce,Object.assign({ref:$e,suffixCls:oe,tagName:re},Fe)))}const a=le.forwardRef((ne,oe)=>{const{prefixCls:re,suffixCls:ie,className:ce,tagName:me}=ne,Fe=ze(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:$e}=le.useContext(Ce.E_),St=$e("layout",re),[Nt,Wt]=Ae(St),ye=ie?`${St}-${ie}`:St;return Nt(le.createElement(me,Object.assign({className:He()(re||ye,ce,Wt),ref:oe},Fe)))}),y=le.forwardRef((ne,oe)=>{const{direction:re}=le.useContext(Ce.E_),[ie,ce]=le.useState([]),{prefixCls:me,className:Fe,rootClassName:$e,children:St,hasSider:Nt,tagName:Wt,style:ye}=ne,Ye=ze(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),nt=(0,De.Z)(Ye,["suffixCls"]),{getPrefixCls:Qe,layout:lt}=le.useContext(Ce.E_),Dt=Qe("layout",me),[Tt,At]=Ae(Dt),Vt=He()(Dt,{[`${Dt}-has-sider`]:typeof Nt=="boolean"?Nt:ie.length>0,[`${Dt}-rtl`]:re==="rtl"},lt==null?void 0:lt.className,Fe,$e,At),we=le.useMemo(()=>({siderHook:{addSider:Ee=>{ce(Ve=>[].concat((0,te.Z)(Ve),[Ee]))},removeSider:Ee=>{ce(Ve=>Ve.filter(Lt=>Lt!==Ee))}}}),[]);return Tt(le.createElement(Be.Provider,{value:we},le.createElement(Wt,Object.assign({ref:oe,className:Vt,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),ye)},nt),St)))}),x=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(be,ot,ge){"use strict";ge.d(ot,{J:function(){return Ce}});var te=ge(59301),fe=ge(33234),He=ge(70425),De=function(se,_e){var Ne={};for(var Me in se)Object.prototype.hasOwnProperty.call(se,Me)&&_e.indexOf(Me)<0&&(Ne[Me]=se[Me]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Me=Object.getOwnPropertySymbols(se);Ae<Me.length;Ae++)_e.indexOf(Me[Ae])<0&&Object.prototype.propertyIsEnumerable.call(se,Me[Ae])&&(Ne[Me[Ae]]=se[Me[Ae]]);return Ne};const le=te.createContext(null),Ce=te.forwardRef((se,_e)=>{const{children:Ne}=se,Me=De(se,["children"]),Ae=te.useContext(le),ze=te.useMemo(()=>Object.assign(Object.assign({},Ae),Me),[Ae,Me.prefixCls,Me.mode,Me.selectable]);return te.createElement(le.Provider,{value:ze},te.createElement(fe.BR,null,(0,He.supportNodeRef)(Ne)?te.cloneElement(Ne,{ref:_e}):Ne))});ot.Z=le},20834:function(be,ot,ge){"use strict";ge.d(ot,{default:function(){return Gt}});var te=ge(15285),fe=ge(59301),He=ge(45818),De=ge(92310),le=ge.n(De),Ce=ge(36355),se=function(Ge,Le){var Pe={};for(var Ie in Ge)Object.prototype.hasOwnProperty.call(Ge,Ie)&&Le.indexOf(Ie)<0&&(Pe[Ie]=Ge[Ie]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ie=Object.getOwnPropertySymbols(Ge);je<Ie.length;je++)Le.indexOf(Ie[je])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Ie[je])&&(Pe[Ie[je]]=Ge[Ie[je]]);return Pe},Ne=Ge=>{const{prefixCls:Le,className:Pe,dashed:Ie}=Ge,je=se(Ge,["prefixCls","className","dashed"]),{getPrefixCls:rt}=fe.useContext(Ce.E_),ft=rt("menu",Le),wt=le()({[`${ft}-item-divider-dashed`]:!!Ie},Pe);return fe.createElement(te.iz,Object.assign({className:wt},je))},Me=ge(11592),Ae=ge(2738),ze=ge(6848),Be=ge(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ge=>{var Le;const{className:Pe,children:Ie,icon:je,title:rt,danger:ft}=Ge,{prefixCls:wt,firstLevel:yt,direction:zt,disableMenuItemTitleTooltip:vt,inlineCollapsed:It}=fe.useContext(a),nn=hn=>{const rn=fe.createElement("span",{className:`${wt}-title-content`},Ie);return(!je||(0,Be.l$)(Ie)&&Ie.type==="span")&&Ie&&hn&&yt&&typeof Ie=="string"?fe.createElement("div",{className:`${wt}-inline-collapsed-noicon`},Ie.charAt(0)):rn},{siderCollapsed:un}=fe.useContext(He.D);let sn=rt;typeof rt=="undefined"?sn=yt?Ie:"":rt===!1&&(sn="");const Kt={title:sn};!un&&!It&&(Kt.title=null,Kt.open=!1);const an=(0,Me.Z)(Ie).length;let on=fe.createElement(te.ck,Object.assign({},(0,Ae.Z)(Ge,["title","icon","danger"]),{className:le()({[`${wt}-item-danger`]:ft,[`${wt}-item-only-child`]:(je?an+1:an)===1},Pe),title:typeof rt=="string"?rt:void 0}),(0,Be.Tm)(je,{className:le()((0,Be.l$)(je)?(Le=je.props)===null||Le===void 0?void 0:Le.className:"",`${wt}-item-icon`)}),nn(It));return vt||(on=fe.createElement(ze.Z,Object.assign({},Kt,{placement:zt==="rtl"?"left":"right",overlayClassName:`${wt}-inline-collapsed-tooltip`}),on)),on},E=Ge=>{var Le;const{popupClassName:Pe,icon:Ie,title:je,theme:rt}=Ge,ft=fe.useContext(a),{prefixCls:wt,inlineCollapsed:yt,theme:zt}=ft,vt=(0,te.Xl)();let It;if(!Ie)It=yt&&!vt.length&&je&&typeof je=="string"?fe.createElement("div",{className:`${wt}-inline-collapsed-noicon`},je.charAt(0)):fe.createElement("span",{className:`${wt}-title-content`},je);else{const un=(0,Be.l$)(je)&&je.type==="span";It=fe.createElement(fe.Fragment,null,(0,Be.Tm)(Ie,{className:le()((0,Be.l$)(Ie)?(Le=Ie.props)===null||Le===void 0?void 0:Le.className:"",`${wt}-item-icon`)}),un?je:fe.createElement("span",{className:`${wt}-title-content`},je))}const nn=fe.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]);return fe.createElement(a.Provider,{value:nn},fe.createElement(te.Wd,Object.assign({},(0,Ae.Z)(Ge,["icon"]),{title:It,popupClassName:le()(wt,Pe,`${wt}-${rt||zt}`)})))},z=ge(18785),ee=ge(70425),ne=ge(62892),oe=ge(40875),re=function(Ge,Le){var Pe={};for(var Ie in Ge)Object.prototype.hasOwnProperty.call(Ge,Ie)&&Le.indexOf(Ie)<0&&(Pe[Ie]=Ge[Ie]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ie=Object.getOwnPropertySymbols(Ge);je<Ie.length;je++)Le.indexOf(Ie[je])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Ie[je])&&(Pe[Ie[je]]=Ge[Ie[je]]);return Pe};function ie(Ge){return(Ge||[]).map((Le,Pe)=>{if(Le&&typeof Le=="object"){const Ie=Le,{label:je,children:rt,key:ft,type:wt}=Ie,yt=re(Ie,["label","children","key","type"]),zt=ft!=null?ft:`tmp-${Pe}`;return rt||wt==="group"?wt==="group"?fe.createElement(te.BW,Object.assign({key:zt},yt,{title:je}),ie(rt)):fe.createElement(E,Object.assign({key:zt},yt,{title:je}),ie(rt)):wt==="divider"?fe.createElement(Ne,Object.assign({key:zt},yt)):fe.createElement(x,Object.assign({key:zt},yt),je)}return null}).filter(Le=>Le)}function ce(Ge){return fe.useMemo(()=>Ge&&ie(Ge),[Ge])}var me=ge(64993),Fe=ge(17313),$e=ge(8378),St=ge(13826),Nt=ge(29878),Wt=ge(83116),ye=ge(37613),nt=Ge=>{const{componentCls:Le,motionDurationSlow:Pe,horizontalLineHeight:Ie,colorSplit:je,lineWidth:rt,lineType:ft,itemPaddingInline:wt}=Ge;return{[`${Le}-horizontal`]:{lineHeight:Ie,border:0,borderBottom:`${rt}px ${ft} ${je}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:wt},[`> ${Le}-item:hover,
|
|
> ${Le}-item-active,
|
|
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},lt=Ge=>{let{componentCls:Le,menuArrowOffset:Pe}=Ge;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
|
|
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const Dt=Ge=>Object.assign({},(0,Fe.oN)(Ge));var At=(Ge,Le)=>{const{componentCls:Pe,itemColor:Ie,itemSelectedColor:je,groupTitleColor:rt,itemBg:ft,subMenuItemBg:wt,itemSelectedBg:yt,activeBarHeight:zt,activeBarWidth:vt,activeBarBorderWidth:It,motionDurationSlow:nn,motionEaseInOut:un,motionEaseOut:sn,itemPaddingInline:Kt,motionDurationMid:an,itemHoverColor:on,lineType:hn,colorSplit:rn,itemDisabledColor:cn,dangerItemColor:Bn,dangerItemHoverColor:Sn,dangerItemSelectedColor:Dn,dangerItemActiveBg:gn,dangerItemSelectedBg:En,itemHoverBg:Xn,itemActiveBg:Jn,menuSubMenuBg:la,horizontalItemSelectedColor:ra,horizontalItemSelectedBg:_n,horizontalItemBorderRadius:Pa,horizontalItemHoverBg:oa,popupBg:sa}=Ge;return{[`${Pe}-${Le}, ${Pe}-${Le} > ${Pe}`]:{color:Ie,background:ft,[`&${Pe}-root:focus-visible`]:Object.assign({},Dt(Ge)),[`${Pe}-item-group-title`]:{color:rt},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:je}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${cn} !important`},[`${Pe}-item:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{[`&:hover, > ${Pe}-submenu-title:hover`]:{color:on}},[`&:not(${Pe}-horizontal)`]:{[`${Pe}-item:not(${Pe}-item-selected)`]:{"&:hover":{backgroundColor:Xn},"&:active":{backgroundColor:Jn}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:Xn},"&:active":{backgroundColor:Jn}}},[`${Pe}-item-danger`]:{color:Bn,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Sn}},[`&${Pe}-item:active`]:{background:gn}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:je,[`&${Pe}-item-danger`]:{color:Dn},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:yt,[`&${Pe}-item-danger`]:{backgroundColor:En}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},Dt(Ge))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:la},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:sa},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:It,marginTop:-It,marginBottom:0,borderRadius:Pa,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${zt}px solid transparent`,transition:`border-color ${nn} ${un}`,content:'""'},"&:hover, &-active, &-open":{background:oa,"&::after":{borderBottomWidth:zt,borderBottomColor:ra}},"&-selected":{color:ra,backgroundColor:_n,"&:hover":{backgroundColor:_n},"&::after":{borderBottomWidth:zt,borderBottomColor:ra}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${It}px ${hn} ${rn}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:wt},[`${Pe}-item, ${Pe}-submenu-title`]:It&&vt?{width:`calc(100% + ${It}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${vt}px solid ${je}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${an} ${sn}`,`opacity ${an} ${sn}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:Dn}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${an} ${un}`,`opacity ${an} ${un}`].join(",")}}}}}};const Vt=Ge=>{const{componentCls:Le,itemHeight:Pe,itemMarginInline:Ie,padding:je,menuArrowSize:rt,marginXS:ft,itemMarginBlock:wt}=Ge,yt=je+rt+ft;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:je,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ie,marginBlock:wt,width:`calc(100% - ${Ie*2}px)`},[`> ${Le}-item,
|
|
> ${Le}-submenu > ${Le}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${Le}-item-group-list ${Le}-submenu-title,
|
|
${Le}-submenu-title`]:{paddingInlineEnd:yt}}};var Ee=Ge=>{const{componentCls:Le,iconCls:Pe,itemHeight:Ie,colorTextLightSolid:je,dropdownWidth:rt,controlHeightLG:ft,motionDurationMid:wt,motionEaseOut:yt,paddingXL:zt,itemMarginInline:vt,fontSizeLG:It,motionDurationSlow:nn,paddingXS:un,boxShadowSecondary:sn,collapsedWidth:Kt,collapsedIconSize:an}=Ge,on={height:Ie,lineHeight:`${Ie}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},Vt(Ge))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},Vt(Ge)),{boxShadow:sn})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:rt,maxHeight:`calc(100vh - ${ft*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 ${nn}`,`background ${nn}`,`padding ${wt} ${yt}`].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`]:on,[`& ${Le}-item-group-title`]:{paddingInlineStart:zt}},[`${Le}-item`]:on}},{[`${Le}-inline-collapsed`]:{width:Kt,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:It,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% - ${It/2}px - ${vt}px)`,textOverflow:"clip",[`
|
|
${Le}-submenu-arrow,
|
|
${Le}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Le}-item-icon, ${Pe}`]:{margin:0,fontSize:an,lineHeight:`${Ie}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:je}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:un})}}]};const Ve=Ge=>{const{componentCls:Le,motionDurationSlow:Pe,motionDurationMid:Ie,motionEaseInOut:je,motionEaseOut:rt,iconCls:ft,iconSize:wt,iconMarginInlineEnd:yt}=Ge;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${je}`].join(","),[`${Le}-item-icon, ${ft}`]:{minWidth:wt,fontSize:wt,transition:[`font-size ${Ie} ${rt}`,`margin ${Pe} ${je}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:yt,opacity:1,transition:[`opacity ${Pe} ${je}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${Le}-item-only-child`]:{[`> ${ft}, > ${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=Ge=>{const{componentCls:Le,motionDurationSlow:Pe,motionEaseInOut:Ie,borderRadius:je,menuArrowSize:rt,menuArrowOffset:ft}=Ge;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ge.margin,width:rt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${Ie}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:rt*.6,height:rt*.15,backgroundColor:"currentcolor",borderRadius:je,transition:[`background ${Pe} ${Ie}`,`transform ${Pe} ${Ie}`,`top ${Pe} ${Ie}`,`color ${Pe} ${Ie}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ft})`},"&::after":{transform:`rotate(-45deg) translateY(${ft})`}}}}},qe=Ge=>{const{antCls:Le,componentCls:Pe,fontSize:Ie,motionDurationSlow:je,motionDurationMid:rt,motionEaseInOut:ft,paddingXS:wt,padding:yt,colorSplit:zt,lineWidth:vt,zIndexPopup:It,borderRadiusLG:nn,subMenuItemBorderRadius:un,menuArrowSize:sn,menuArrowOffset:Kt,lineType:an,menuPanelMaskInset:on,groupTitleLineHeight:hn,groupTitleFontSize:rn}=Ge;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${Pe}-submenu-hidden`]:{display:"none"}},{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(Ge)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ie,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${je} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Pe}-item`]:{flex:"none"}},[`${Pe}-item, ${Pe}-submenu, ${Pe}-submenu-title`]:{borderRadius:Ge.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${wt}px ${yt}px`,fontSize:rn,lineHeight:hn,transition:`all ${je}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${je} ${ft}`,`background ${je} ${ft}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${je} ${ft}`,`background ${je} ${ft}`,`padding ${rt} ${ft}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${je} ${ft}`,`padding ${je} ${ft}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${je}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:zt,borderStyle:an,borderWidth:0,borderTopWidth:vt,marginBlock:vt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ve(Ge)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${Ie*2}px ${yt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:It,borderRadius:nn,boxShadow:"none",transformOrigin:"0 0",[`&${Pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${on}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:on},"\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:Ge.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ge.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ge.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ge.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:nn},Ve(Ge)),Lt(Ge)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:un},[`${Pe}-submenu-title::after`]:{transition:`transform ${je} ${ft}`}})}}),Lt(Ge)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
|
|
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Kt})`},"&::after":{transform:`rotate(45deg) translateX(-${Kt})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${sn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Kt})`},"&::before":{transform:`rotate(45deg) translateX(${Kt})`}}})},{[`${Le}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var pt=(Ge,Le)=>(0,Wt.Z)("Menu",Ie=>{if(Le===!1)return[];const{colorBgElevated:je,colorPrimary:rt,colorTextLightSolid:ft,controlHeightLG:wt,fontSize:yt,darkItemColor:zt,darkDangerItemColor:vt,darkItemBg:It,darkSubMenuItemBg:nn,darkItemSelectedColor:un,darkItemSelectedBg:sn,darkDangerItemSelectedBg:Kt,darkItemHoverBg:an,darkGroupTitleColor:on,darkItemHoverColor:hn,darkItemDisabledColor:rn,darkDangerItemHoverColor:cn,darkDangerItemSelectedColor:Bn,darkDangerItemActiveBg:Sn}=Ie,Dn=yt/7*5,gn=(0,ye.TS)(Ie,{menuArrowSize:Dn,menuHorizontalHeight:wt*1.15,menuArrowOffset:`${Dn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:je}),En=(0,ye.TS)(gn,{itemColor:zt,itemHoverColor:hn,groupTitleColor:on,itemSelectedColor:un,itemBg:It,popupBg:It,subMenuItemBg:nn,itemActiveBg:"transparent",itemSelectedBg:sn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:an,itemDisabledColor:rn,dangerItemColor:vt,dangerItemHoverColor:cn,dangerItemSelectedColor:Bn,dangerItemActiveBg:Sn,dangerItemSelectedBg:Kt,menuSubMenuBg:nn,horizontalItemSelectedColor:ft,horizontalItemSelectedBg:rt});return[qe(gn),nt(gn),Ee(gn),At(gn,"light"),At(En,"dark"),lt(gn),(0,$e.Z)(gn),(0,St.oN)(gn,"slide-up"),(0,St.oN)(gn,"slide-down"),(0,Nt._y)(gn,"zoom-big")]},Ie=>{const{colorPrimary:je,colorError:rt,colorTextDisabled:ft,colorErrorBg:wt,colorText:yt,colorTextDescription:zt,colorBgContainer:vt,colorFillAlter:It,colorFillContent:nn,lineWidth:un,lineWidthBold:sn,controlItemBgActive:Kt,colorBgTextHover:an,controlHeightLG:on,lineHeight:hn,colorBgElevated:rn,marginXXS:cn,padding:Bn,fontSize:Sn,controlHeightSM:Dn,fontSizeLG:gn,colorTextLightSolid:En,colorErrorHover:Xn}=Ie,Jn=new me.C(En).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ie.zIndexPopupBase+50,radiusItem:Ie.borderRadiusLG,itemBorderRadius:Ie.borderRadiusLG,radiusSubMenuItem:Ie.borderRadiusSM,subMenuItemBorderRadius:Ie.borderRadiusSM,colorItemText:yt,itemColor:yt,colorItemTextHover:yt,itemHoverColor:yt,colorItemTextHoverHorizontal:je,horizontalItemHoverColor:je,colorGroupTitle:zt,groupTitleColor:zt,colorItemTextSelected:je,itemSelectedColor:je,colorItemTextSelectedHorizontal:je,horizontalItemSelectedColor:je,colorItemBg:vt,itemBg:vt,colorItemBgHover:an,itemHoverBg:an,colorItemBgActive:nn,itemActiveBg:Kt,colorSubItemBg:It,subMenuItemBg:It,colorItemBgSelected:Kt,itemSelectedBg:Kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:un,activeBarBorderWidth:un,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:rt,dangerItemColor:rt,colorDangerItemTextHover:rt,dangerItemHoverColor:rt,colorDangerItemTextSelected:rt,dangerItemSelectedColor:rt,colorDangerItemBgActive:wt,dangerItemActiveBg:wt,colorDangerItemBgSelected:wt,dangerItemSelectedBg:wt,itemMarginInline:Ie.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:on,groupTitleLineHeight:hn,collapsedWidth:on*2,popupBg:rn,itemMarginBlock:cn,itemPaddingInline:Bn,horizontalLineHeight:`${on*1.15}px`,iconSize:Sn,iconMarginInlineEnd:Dn-Sn,collapsedIconSize:gn,groupTitleFontSize:Sn,darkItemDisabledColor:new me.C(En).setAlpha(.25).toRgbString(),darkItemColor:Jn,darkDangerItemColor:rt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:En,darkItemSelectedBg:je,darkDangerItemSelectedBg:rt,darkItemHoverBg:"transparent",darkGroupTitleColor:Jn,darkItemHoverColor:En,darkDangerItemHoverColor:Xn,darkDangerItemSelectedColor:En,darkDangerItemActiveBg:rt}},{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"]]})(Ge),de=function(Ge,Le){var Pe={};for(var Ie in Ge)Object.prototype.hasOwnProperty.call(Ge,Ie)&&Le.indexOf(Ie)<0&&(Pe[Ie]=Ge[Ie]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ie=Object.getOwnPropertySymbols(Ge);je<Ie.length;je++)Le.indexOf(Ie[je])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Ie[je])&&(Pe[Ie[je]]=Ge[Ie[je]]);return Pe},Ot=(0,fe.forwardRef)((Ge,Le)=>{var Pe,Ie;const je=fe.useContext(oe.Z),rt=je||{},{getPrefixCls:ft,getPopupContainer:wt,direction:yt,menu:zt}=fe.useContext(Ce.E_),vt=ft(),{prefixCls:It,className:nn,style:un,theme:sn="light",expandIcon:Kt,_internalDisableMenuItemTitleTooltip:an,inlineCollapsed:on,siderCollapsed:hn,items:rn,children:cn,rootClassName:Bn,mode:Sn,selectable:Dn,onClick:gn,overflowedIndicatorPopupClassName:En}=Ge,Xn=de(Ge,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Jn=(0,Ae.Z)(Xn,["collapsedWidth"]),la=ce(rn)||cn;(Pe=rt.validator)===null||Pe===void 0||Pe.call(rt,{mode:Sn});const ra=(0,ee.useEvent)(function(){var Qt;gn==null||gn.apply(void 0,arguments),(Qt=rt.onClick)===null||Qt===void 0||Qt.call(rt)}),_n=rt.mode||Sn,Pa=Dn!=null?Dn:rt.selectable,oa=fe.useMemo(()=>hn!==void 0?hn:on,[on,hn]),sa={horizontal:{motionName:`${vt}-slide-up`},inline:(0,ne.Z)(vt),other:{motionName:`${vt}-zoom-big`}},Kn=ft("menu",It||rt.prefixCls),[Ze,Xe]=pt(Kn,!je),ke=le()(`${Kn}-${sn}`,zt==null?void 0:zt.className,nn);let it;if(typeof Kt=="function")it=Kt;else if(Kt===null||Kt===!1)it=null;else if(rt.expandIcon===null||rt.expandIcon===!1)it=null;else{const Qt=Kt!=null?Kt:rt.expandIcon;it=(0,Be.Tm)(Qt,{className:le()(`${Kn}-submenu-expand-icon`,(0,Be.l$)(Qt)?(Ie=Qt.props)===null||Ie===void 0?void 0:Ie.className:"")})}const Yt=fe.useMemo(()=>({prefixCls:Kn,inlineCollapsed:oa||!1,direction:yt,firstLevel:!0,theme:sn,mode:_n,disableMenuItemTitleTooltip:an}),[Kn,oa,yt,an,sn]);return Ze(fe.createElement(oe.Z.Provider,{value:null},fe.createElement(a.Provider,{value:Yt},fe.createElement(te.ZP,Object.assign({getPopupContainer:wt,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:le()(Kn,`${Kn}-${sn}`,En),mode:_n,selectable:Pa,onClick:ra},Jn,{inlineCollapsed:oa,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),un),className:ke,prefixCls:Kn,direction:yt,defaultMotions:sa,expandIcon:it,ref:Le,rootClassName:le()(Bn,Xe)}),la))))});const _t=(0,fe.forwardRef)((Ge,Le)=>{const Pe=(0,fe.useRef)(null),Ie=fe.useContext(He.D);return(0,fe.useImperativeHandle)(Le,()=>({menu:Pe.current,focus:je=>{var rt;(rt=Pe.current)===null||rt===void 0||rt.focus(je)}})),fe.createElement(Ot,Object.assign({ref:Pe},Ge,Ie))});_t.Item=x,_t.SubMenu=E,_t.Divider=Ne,_t.ItemGroup=te.BW;var Gt=_t},8224:function(be,ot,ge){"use strict";ge.d(ot,{Z:function(){return fe}});var te=ge(4676);function fe(He,De,le,Ce){var se=te.unstable_batchedUpdates?function(Ne){te.unstable_batchedUpdates(le,Ne)}:le;return He!=null&&He.addEventListener&&He.addEventListener(De,se,Ce),{remove:function(){He!=null&&He.removeEventListener&&He.removeEventListener(De,se,Ce)}}}},55468:function(be,ot,ge){"use strict";ge.d(ot,{g1:function(){return Ae},os:function(){return Be}});var te=/margin|padding|width|height|max|min|offset/,fe={left:!0,top:!0},He={cssFloat:1,styleFloat:1,float:1};function De(ae){return ae.nodeType===1?ae.ownerDocument.defaultView.getComputedStyle(ae,null):{}}function le(ae,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ae.offsetHeight;if(a==="width")return ae.offsetWidth}return a in fe||(fe[a]=te.test(a)),fe[a]?parseFloat(y)||0:y}function Ce(ae,a){var y=arguments.length,x=De(ae);return a=He[a]?"cssFloat"in ae.style?"cssFloat":"styleFloat":a,y===1?x:le(ae,a,x[a]||ae.style[a])}function se(ae,a,y){var x=arguments.length;if(a=He[a]?"cssFloat"in ae.style?"cssFloat":"styleFloat":a,x===3)return typeof y=="number"&&te.test(a)&&(y="".concat(y,"px")),ae.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&se(ae,b,a[b]);return De(ae)}function _e(ae){return ae===document.body?document.documentElement.clientWidth:ae.offsetWidth}function Ne(ae){return ae===document.body?window.innerHeight||document.documentElement.clientHeight:ae.offsetHeight}function Me(){var ae=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ae,height:a}}function Ae(){var ae=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ae,height:a}}function ze(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Be(ae){var a=ae.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)}}}}]);
|