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
386 KiB
130 lines
386 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[508],{26227:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return Me}});var te=ge(92413),he=ge(59301),Ze={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"},Re=Ze,se=ge(7657),Ne=function(De,Ve){return he.createElement(se.Z,(0,te.Z)({},De,{ref:Ve,icon:Re}))},me=he.forwardRef(Ne),Me=me},87169:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return Me}});var te=ge(92413),he=ge(59301),Ze={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"},Re=Ze,se=ge(7657),Ne=function(De,Ve){return he.createElement(se.Z,(0,te.Z)({},De,{ref:Ve,icon:Re}))},me=he.forwardRef(Ne),Me=me},33853:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return Me}});var te=ge(92413),he=ge(59301),Ze={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"},Re=Ze,se=ge(7657),Ne=function(De,Ve){return he.createElement(se.Z,(0,te.Z)({},De,{ref:Ve,icon:Re}))},me=he.forwardRef(Ne),Me=me},38819:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return Me}});var te=ge(92413),he=ge(59301),Ze={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"},Re=Ze,se=ge(7657),Ne=function(De,Ve){return he.createElement(se.Z,(0,te.Z)({},De,{ref:Ve,icon:Re}))},me=he.forwardRef(Ne),Me=me},11570:function(we,rt){"use strict";rt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},29277:function(){"use strict";function we(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(we.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(we.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(we.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(we.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 we))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 rt=[];function ge(ae,a){var y=rt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=rt.pop();return ae===void 0?new go.Point:ae}function he(ae){rt.push(ae)}function Ze(ae,a,y,x,b,E,z,ee,ne){ne||(ne=new go.Point);var oe=ae-y,re=b-z,ie=NaN,ue=NaN;if(oe===0)if(re===0)ae===y&&(ie=ae,ue=a);else{var ce=(E-ee)/re,Ge=E-ce*b;ie=ae,ue=ce*ie+Ge}else if(re===0){var We=(a-x)/oe,ft=a-We*ae;ie=b,ue=We*ie+ft}else{var We=(a-x)/oe,ce=(E-ee)/re,ft=a-We*ae,Ge=E-ce*b;ie=(Ge-ft)/(We-ce),ue=We*ie+ft}return ne.x=ie,ne.y=ue,ne}function Re(ae,a,y,x,b,E,z,ee,ne,oe,re,ie,ue,ce){var Ge=1-ne,We=ne,ft=ae*Ge+y*We,Et=a*Ge+x*We,Zt=y*Ge+b*We,Le=x*Ge+E*We,Ye=b*Ge+z*We,ot=E*Ge+ee*We,Je=ft*Ge+Zt*We,dt=Et*Ge+Le*We,Gt=Zt*Ge+Ye*We,It=Le*Ge+ot*We,Dt=Je*Ge+Gt*We,Ut=dt*Ge+It*We;oe.x=ft,oe.y=Et,re.x=Je,re.y=dt,ie.x=Dt,ie.y=Ut,ue.x=Gt,ue.y=It,ce.x=Ye,ce.y=ot}var se=new go.Spot(.156,.156),Ne=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new we("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*me,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=se,b.spot2=Ne,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,me*a,0,a,(1-me)*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,me*y,(1-me)*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,me*y,me*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-me)*a,0,0,(1-me)*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 we("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 we("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 we("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 we("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 we("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 Me=[];function be(){var ae=Me.pop();return ae===void 0?[]:ae}function De(ae){ae.length=0,Me.push(ae)}function Ve(ae){for(var a=be(),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 Be(ae){var a=Ce(ae),y=be();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return De(a),y}function Ce(ae){for(var a=Ve(ae),y=be(),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]=Ze(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],De(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var x=Ve(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()),De(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=Ve(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()),De(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=Ve(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()),De(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=Ve(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()),De(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=Ve(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()),De(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=Ve(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()),De(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=Ve(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()),De(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=Ce(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(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=Ce(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(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=Ce(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(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=Ce(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(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=Ce(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(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=Ce(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(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=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<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(),De(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=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<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(),De(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=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<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(),De(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=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<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(),De(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=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<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(),De(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=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<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(),De(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new we("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new we("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 we("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=se,E.spot2=Ne,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 we("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new we("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=me/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 we("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 we("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 we("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 we("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 we("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 we("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,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*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*me;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*me,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*me,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=me*.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=me*.4;var oe=te(),re=te(),ie=te(),ue=te();Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,ue,ue);var ce=te(),Ge=te(),We=te();Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,ue,ue,We,ce,Ge);var ft=te(),Et=te(),Zt=te();Re(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,ft,Et,Zt,ue,ue);var Le=te(),Ye=te(),ot=te();return Re(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,ue,ue,ot,Le,Ye),ne.add(new go.PathSegment(go.PathSegment.Move,ot.x*a,ot.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Le.x*a,Le.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,ot.x*a,ot.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Zt.x*a,Zt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,We.x*a,We.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ce.x*a,ce.y*y,Ge.x*a,Ge.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,Zt.x*a,Zt.y*y,ft.x*a,ft.y*y,Et.x*a,Et.y*y).close()),he(oe),he(re),he(ie),he(ue),he(ce),he(Ge),he(We),he(ft),he(Et),he(Zt),he(Le),he(Ye),he(ot),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 we("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=me*.4,E=.4,z=.5,ee=.5,ne=te(),oe=te(),re=te(),ie=te(),ue=new go.PathFigure((z-E)*a,ee*y,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,ne,ne),ue.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 ce=ge(oe.x,oe.y);Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,ne,ne,oe,re,ie);var Ge=ge(oe.x,oe.y);ue.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Ge.x*.1+.9)*a,.15*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(Ge.x*.1+.9)*a,(Ge.y*.1+.05*.9)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ue.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=me*.35;var We=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),We.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),We.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),We.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 ft=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(ft),he(ne),he(oe),he(re),he(ie),he(ce),he(Ge),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*me,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*me;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 we("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new we("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=Ze(0,ee/y,1,ee/y,E/a,1,1,.5,te());return ne.spot2=new go.Spot(re.x,re.y),he(re),ne}),go.Shape.setFigureParameter("Arrow2",0,new we("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new we("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=Ze(0,ee/y,1,ee/y,E/a,1,1,.5,te());return ne.spot2=new go.Spot(re.x,re.y),he(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 we("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=Ze(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=Ze(.7,1,1,.5,0,E/y,1,E/y,ne),z.spot2=new go.Spot(ne.x,ne.y),he(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new we("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new we("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=Ze(0,.5,.3,ee/y,0,E/y,1,E/y,te());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ze(.7,ne/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new we("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=Ze(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),he(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new we("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new we("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=Ze(.7,ne/y,1,.5,0,z/y,1,z/y,te());return oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new we("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=Ze(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new we("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=Ze(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new we("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=Ze(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),he(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new we("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=Ze(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),he(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new we("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=me*.5,E=me*.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=me*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,me*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-me*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-me*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-me*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-me*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=me*.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,me*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,me*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-me*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-me*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-me*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-me*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=me*.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-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*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+me*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+me*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=me*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-me*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,me*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-me*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-me*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=me*b,ee=me*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,ue=me*ie;ne=.05,oe=.25;var ce=new go.PathFigure(.5*a,.2*y,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ie)*a,oe*y,(ne+ue)*a,(oe-ie)*y,(ne+ie)*a,(oe-ue)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,ue=me*ie,ne=.825,oe=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ue)*y,(ne+ue)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ue)*a,(oe-ie)*y,(ne-ie)*a,(oe-ue)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,ue=me*ie,ne=.5,oe=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ue)*y,(ne+ue)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ue)*a,(oe-ie)*y,(ne-ie)*a,(oe-ue)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,ue=me*ie,ne=.175,oe=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-ue)*y,(ne+ue)*a,(oe-ie)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-ue)*a,(oe-ie)*y,(ne-ie)*a,(oe-ue)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,ue=me*ie,ne=.05,oe=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne-ie)*a,(oe-ue)*y,(ne-ue)*a,(oe-ie)*y)),ce.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 we("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=me*.5,E=me*.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=me*.5,E=me*.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=me*.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=me*.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=me*.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=me*.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=me*.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=me*.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=me*.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=me*.5,E=me*.4,z=me*.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=me*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=me*.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=me*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=me*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=me*.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=me*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=me*.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=me*.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=me*.8,ee=.8,ne=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,ue=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);x.add(ue),ue.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)),ue.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)),ue.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)),ue.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=me*.4,ee=.4,ne=.2,oe=.5;var 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=me*.2,ee=.2,ne=.5,oe=.5;var Ge=new go.PathFigure((ne-ee)*a+re,oe*y+ie,!0);x.add(Ge),Ge.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)),Ge.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)),Ge.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)),Ge.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=me*.4,ee=.4,ne=.8,oe=.5;var We=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);x.add(We),We.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)),We.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)),We.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)),We.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=me*.8,ee=.8,ne=1,oe=.5;var ft=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);return x.add(ft),ft.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)),ft.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)),ft.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)),ft.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=me*.4,E=.4,z=.5,ee=.5,ne=te(),oe=te(),re=te(),ie=te();Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,oe,re,ie);var ue=ge(oe.x,oe.y),ce=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(ce),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)),Re(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,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)),b=me*.3,E=.3,Re(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.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)),Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,oe,re,ie),ce.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 ce=new go.PathFigure(.45*a,0,!0);return x.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(ne),he(oe),he(re),he(ie),he(ue),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*me,ne=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,ue=.5,ce=0,Ge=new go.PathFigure(ne*a,(1-oe)*y,!1);return x.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ue+E)*a,(ce+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Ge.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)),Ge.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)),Ge.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Ge.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Ge.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,ue=z,ce=z,Ge=re*ue,We=re*ce;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ue)*a,ne*y,(ee-(Ge+ue)/2)*a,(ne+(ce+We)/2)*y,(ee-ue)*a,(ne+We)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-ue)*a,(ne-We)*y,(ee-Ge)*a,(ne-ce)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ue)*a,ne*y,(ee+Ge)*a,(ne-ce)*y,(ee+ue)*a,(ne-We)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ue)*a,(ne+We)*y,(ee+(Ge+ue)/2)*a,(ne+(ce+We)/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 ft=new go.PathFigure(.2*a,y,!1);x.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Et=new go.PathFigure(.8*a,y,!1);return x.add(Et),Et.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=me*.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=me*.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=me*.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=me*.1,re=.1,ie=.9,ue=new go.PathFigure((re-ne)*a,ie*y,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),ue.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=me*.1,re=.4,ie=.9;var ce=new go.PathFigure((re-ne)*a,ie*y,!0);return 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)),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=me*.05,ue=.175,ce=.95,ee=new go.PathFigure((ue-re)*a,ce*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce-re)*y,(ue-re)*a,(ce-ie)*y,(ue-ie)*a,(ce-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,ce*y,(ue+ie)*a,(ce-re)*y,(ue+re)*a,(ce-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce+re)*y,(ue+re)*a,(ce+ie)*y,(ue+ie)*a,(ce+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,ce*y,(ue-ie)*a,(ce+re)*y,(ue-re)*a,(ce+ie)*y));var re=.05,ie=me*.05,ue=.375,ce=.95,ne=new go.PathFigure((ue-re)*a,ce*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce-re)*y,(ue-re)*a,(ce-ie)*y,(ue-ie)*a,(ce-re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,ce*y,(ue+ie)*a,(ce-re)*y,(ue+re)*a,(ce-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce+re)*y,(ue+re)*a,(ce+ie)*y,(ue+ie)*a,(ce+re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,ce*y,(ue-ie)*a,(ce+re)*y,(ue-re)*a,(ce+ie)*y));var re=.05,ie=me*.05,ue=.625,ce=.95,oe=new go.PathFigure((ue-re)*a,ce*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce-re)*y,(ue-re)*a,(ce-ie)*y,(ue-ie)*a,(ce-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,ce*y,(ue+ie)*a,(ce-re)*y,(ue+re)*a,(ce-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce+re)*y,(ue+re)*a,(ce+ie)*y,(ue+ie)*a,(ce+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,ce*y,(ue-ie)*a,(ce+re)*y,(ue-re)*a,(ce+ie)*y));var re=.05,ie=me*.05,ue=.825,ce=.95,Ge=new go.PathFigure((ue-re)*a,ce*y,!0);x.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce-re)*y,(ue-re)*a,(ce-ie)*y,(ue-ie)*a,(ce-re)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*a,ce*y,(ue+ie)*a,(ce-re)*y,(ue+re)*a,(ce-ie)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ce+re)*y,(ue+re)*a,(ce+ie)*y,(ue+ie)*a,(ce+re)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*a,ce*y,(ue-ie)*a,(ce+re)*y,(ue-re)*a,(ce+ie)*y).close());var We=new go.PathFigure(0,y,!1);return x.add(We),We.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=me*.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=me*.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=me*.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=me*.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=me*.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*me,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*me,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*me,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")},5559: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 we={},rt="5.0",ge={},te=null,he=!1,Ze=!1,Re=null,se=!1,Ne=null,me=null,Me=0;Me<arguments.length;Me++){var be=arguments[Me];if(be!==null)switch(typeof be){case"number":rt=be.toFixed(1);break;case"string":be.match(new RegExp("^[0-9]\\.[0-9]+$"))?rt=be:Re=be;break;case"object":typeof be.is3D!="undefined"?te=be:ge=be;break;case"boolean":he=be,Ze=!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&&!Ze&&(he=!0)),Re!==null&&ge.id===void 0&&(ge.id=Re);var De="",Ve="",Be=!1,Ce=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(ye){return parseFloat(ye)>4?parseFloat(ye):5};we.setHTML5Codebase=function(ye,Ee){me=ye,It(ye,Ee)},we.setJavaCodebase=we.setJavaCodebaseVersion=we.isCompiledInstalled=we.setPreCompiledScriptPath=we.setPreCompiledResourcePath=function(){},we.setHTML5CodebaseVersion=function(ye,Ee){var Xe=parseFloat(ye);if(Xe!==NaN&&Xe<5){console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead.");return}Ne=ye,Gt(ye,Ee)},we.getHTML5CodebaseVersion=function(){return ae},we.getParameters=function(){return ge},we.setFontsCSSURL=function(ye){z=ye},we.setGiacJSURL=function(ye){},we.setJNLPFile=function(ye){De=ye},we.setJNLPBaseDir=function(ye){},we.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ee="auto",Xe=ge.id,Lt,Ue=!1,ht=0;ht<arguments.length;ht++){var de=arguments[ht];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ee=de:Xe=arguments[ht]):typeof de=="boolean"?Ue=de:de instanceof HTMLElement&&(Lt=de)}Qe();function Qe(){if(!se){setTimeout(Qe,200);return}Ee=Je(Ee);var Ft=Lt||document.getElementById(Xe);if(!Ft){console.log("possibly bug on ajax loading? ");return}if(we.removeExistingApplet(Ft,!1),ge.width===void 0&&Ft.clientWidth&&(ge.width=Ft.clientWidth),ge.height===void 0&&Ft.clientHeight&&(ge.height=Ft.clientHeight),!(ge.width&&ge.height)&&Ee==="html5"&&(delete ge.width,delete ge.height),Ce=Ee,Ee==="screenshot")Et(Ft,ge);else{var At=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?At=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(At=(!oe()||ye())&&re()),At?(Ce="screenshot",Le(Ft,ge,Ue,Ee)):ft(Ft,ge,Ue)}}};function oe(){try{return window.self!==window.top}catch(ye){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}we.getViews=function(){return te},we.isJavaInstalled=function(){return!1};var ie=function(ye){var Ee=function(ht){var de=JSON.parse(ht),Qe=function(Bt){return Bt.type=="G"||Bt.type=="E"},Ft=de.elements?de.elements.filter(Qe)[0]:de;if(!Ft||!Ft.url){Xe();return}ge.fileName=Ft.url,ue(Ft.settings||{}),te.is3D=!0;var At="https://www.geogebra.org/images/";we.setPreviewImage(x||Ft.previewUrl,At+"GeoGebra_loading.png",At+"applet_play.png"),ye()},Xe=function(){ge.onError&&ge.onError(),Dt("Error: Fetching material (id "+ge.material_id+") failed.",ge)},Lt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ue="/materials/"+ge.material_id+"?scope=basic";ce("https://"+Lt+"/api/proxy.php?path="+encodeURIComponent(Ue),Ee,Xe)};function ue(ye){var Ee=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Xe){ye[Xe]=!!ye[Xe]}),Ee.forEach(function(Xe){ge[Xe]===void 0&&ye[Xe]!==void 0&&(ge[Xe]=ye[Xe])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function ce(ye,Ee,Xe){var Lt=new XMLHttpRequest;Lt.open("GET",ye),Lt.onload=function(){Ee(Lt.responseText)},Lt.onerror=Xe,Lt.send()}we.isHTML5Installed=function(){return!0},we.getLoadedAppletType=function(){return Ce},we.setPreviewImage=function(ye,Ee,Xe){x=ye,b=Ee,E=Xe},we.removeExistingApplet=function(ye,Ee){var Xe;typeof ye=="string"&&(ye=document.getElementById(ye)),Ce=null;var Lt=null;for(Xe=0;Xe<ye.childNodes.length;Xe++){var Ue=ye.childNodes[Xe],ht=Ue.className;ht==="applet_screenshot"?Ee?(Ue.style.display="block",Ce="screenshot"):Ue.style.display="none":ht!=="applet_scaler prerender"&&(ye.removeChild(Ue),Lt=ht&&ht.indexOf("appletParameters")!=-1?Ue.id:null,Xe--)}var de=ge.id!==void 0?ge.id:Lt,Qe=window[de];Qe&&typeof Qe.getBase64=="function"&&(Qe.remove(),window[de]=null)},we.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=we.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},we.startAnimation=function(){var ye=we.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},we.stopAnimation=function(){var ye=we.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},we.getAppletObject=function(){var ye=ge.id!==void 0?ge.id:"ggbApplet";return window[ye]},we.resize=function(){};var Ge=function(ye,Ee,Xe){var Lt=document.createElement("param");Lt.setAttribute("name",Ee),Lt.setAttribute("value",Xe),ye.appendChild(Lt)},We=function(ye){return ye&&ye!=="false"},ft=function(ye,Ee,Xe){ne(ae)<=4.2&&(Xe=!0);var Lt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Lt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ue=document.createElement("div");Ue.classList.add("appletParameters","notranslate");var ht=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)We(Ee.showToolBar)&&(Ee.height-=7),We(Ee.showAlgebraInput)&&(Ee.height-=37),Ee.width<605&&We(Ee.showToolBar)&&(Ee.width=605,ht=605);else{var Qe=100;(We(Ee.showToolBar)||We(Ee.showMenuBar))&&(Ee.hasOwnProperty("customToolBar")&&(Ee.customToolbar=Ee.customToolBar),Qe=We(Ee.showMenuBar)?245:155),ht<Qe&&(Ee.width=Qe,ht=Qe)}Ue.style.border="none",Ue.style.display="inline-block";for(var Ft in Ee)Ee.hasOwnProperty(Ft)&&Ft!=="appletOnLoad"&&Ue.setAttribute("data-param-"+Ft,Ee[Ft]);z&&Ue.setAttribute("data-param-fontscssurl",z),we.resize=function(){GGBAppletUtils.responsiveResize(ye,Ee)},window.addEventListener("resize",function(wt){we.resize()});var At=typeof Ee.appletOnLoad=="function"?Ee.appletOnLoad:function(){};if(!Xe&&Ee.width!==void 0){Ee.hasOwnProperty("showSplash")||Ue.setAttribute("data-param-showSplash","false");var Bt=ye.querySelector(".applet_scaler.prerender"),Fe=Bt!==null;if(Fe)var ve=Bt.querySelector(".ggb_preview");else{var ve=ot(ht,de,Ee.borderColor,!1);Bt=document.createElement("div"),Bt.className="applet_scaler",Bt.style.position="relative",Bt.style.display="block",Bt.style.width=ht+"px",Bt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Bt,"66%"),ne(ae)>=5?(Ee.appletOnLoad=function(wt){var Tt=ye.querySelector(".ggb_preview");Tt&&Tt.parentNode.removeChild(Tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Bt),window.GGBT_wsf_view&&$(window).trigger("resize"),At(wt)},Fe||Bt.appendChild(ve)):Ue.appendChild(ve),Bt.appendChild(Ue),Fe||ye.appendChild(Bt),setTimeout(function(){we.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(Ue),ye.appendChild(fe),Ee.appletOnLoad=function(wt){we.resize(),At(wt)}}function Oe(wt,Tt){Tt&&typeof Tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wt,Tt.appletOnLoad):renderGGBElement(wt),Dt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Tt)}function ke(wt,Tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wt,params:Tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(an){Oe(an.article,an.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(wt.className+=" geogebraweb")):Oe(wt,Tt)}if(Lt){scriptLoadStarted=!0;for(var et=0;et<Ue.childNodes.length;et++){var pt=Ue.childNodes[et].tagName;pt==="TABLE"&&(Ue.removeChild(Ue.childNodes[et]),et--)}if(ggbHTML5LoadedScript!==null){var yt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');yt!=null&&yt.parentNode.removeChild(yt)}var bt=document.createElement("script"),$t=function(){ke(Ue,Ee)};bt.src=Ve+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=bt.src,Dt("GeoGebra HTML5 codebase loaded: '"+Ve+"'.",Ee),!me&&(!Ne||Ne=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),$t()):Ve.requirejs?__webpack_require__.e(777).then(function(){var wt=[__webpack_require__(70777)];$t.apply(null,wt)}.bind(this)).catch(__webpack_require__.oe):(bt.onload=$t,ye.appendChild(bt))}else ke(Ue,Ee);Ee.height=de,Ee.width=ht},Et=function(ye,Ee,Xe){var Lt=ot(Ee.width,Ee.height,Ee.borderColor,Xe),Ue=document.createElement("div");Ue.style.position="relative",Ue.style.display="block",Ue.style.width=Ee.width+"px",Ue.style.height=Ee.height+"px",Ue.className="applet_screenshot applet_scaler"+(Xe?" applet_screenshot_play":""),Ue.appendChild(Lt);var ht=GGBAppletUtils.getScale(Ee,ye,Xe);Xe?(ye.appendChild(Ye()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ue,"66%"),ye.appendChild(Ue),ht!==1&&!isNaN(ht)&&(GGBAppletUtils.scaleElement(Ue,ht),Ue.style.width=Ee.width+"px",Ue.style.height=Ee.height+"px",Ue.parentNode.style.width=Ee.width*ht+"px",Ue.parentNode.style.height=Ee.height*ht+"px"),we.resize=function(){Zt(ye,Lt,Ue,Xe)},window.addEventListener("resize",function(de){we.resize()}),we.resize()};function Zt(ye,Ee,Xe,Lt){if(ye.contains(Ee)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var Ue=GGBAppletUtils.getScale(ge,ye,Lt);Xe.parentNode!==null&&(!isNaN(Ue)&&Ue!==1?(GGBAppletUtils.scaleElement(Xe,Ue),Xe.parentNode.style.width=ge.width*Ue+"px",Xe.parentNode.style.height=ge.height*Ue+"px"):(GGBAppletUtils.scaleElement(Xe,1),Xe.parentNode.style.width=ge.width+"px",Xe.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}we.onExitFullscreen=function(ye,Ee){Ee.appendChild(ye)};var Le=function(ye,Ee,Xe,Lt){Et(ye,Ee,!0);for(var Ue=function(){var Qe=[];for(de=0;de<ye.childNodes.length;de++)Qe.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var Ft=window.GGBT_wsf_view.renderFullScreen(ye,Ee.id),At=document.getElementById("fullscreencontainer"),Bt=jQuery(ye).find(".fullscreencontent");Bt.length>0?(Ft.remove(),Bt.attr("id","fullscreencontent").show(),jQuery(At).append(Bt),window.dispatchEvent(new Event("resize"))):ft(Ft,Ee,!1),window.GGBT_wsf_view.launchFullScreen(At)}else Ce=Lt,ft(ye,Ee,!1);if(!window.GGBT_wsf_view)for(de=0;de<Qe.length;de++)ye.removeChild(Qe[de])},ht=ye.getElementsByClassName("ggb_preview_play"),de=0;de<ht.length;de++)ht[de].addEventListener("click",Ue,!1),ht[de].addEventListener("ontouchstart",Ue,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ye=function(){var ye=document.createElement("div");if(ye.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");}',Xe=document.createElement("style");Xe.styleSheet?Xe.styleSheet.cssText=Ee:Xe.appendChild(document.createTextNode(Ee)),document.getElementsByTagName("head")[0].appendChild(Xe)}return ye},ot=function(ye,Ee,Xe,Lt){var Ue=document.createElement("div");Ue.className="ggb_preview",Ue.style.position="absolute",Ue.style.zIndex="90",Ue.style.width=ye-2+"px",Ue.style.height=Ee-2+"px",Ue.style.top="0px",Ue.style.left="0px",Ue.style.overflow="hidden",Ue.style.backgroundColor="white";var ht="lightgrey";Xe!==void 0&&(Xe==="none"?ht="transparent":ht=Xe),Ue.style.border="1px solid "+ht;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 Qe,Ft,At;if(!Lt){Qe=document.createElement("img"),Qe.style.position="absolute",Qe.style.zIndex="1001",Qe.style.opacity=1,de.style.opacity=.3,Ft=360,Ft>ye/4*3&&(Ft=ye/4*3),At=Ft/5.8,Qe.setAttribute("src",b),Qe.setAttribute("width",Ft),Qe.setAttribute("height",At);var Bt=(ye-Ft)/2,Fe=(Ee-At)/2;Qe.style.left=Bt+"px",Qe.style.top=Fe+"px",Ue.appendChild(Qe)}}return Ue.appendChild(de),Ue},Je=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},dt=["web","webSimple","web3d","tablet","tablet3d","phone"],Gt=function(ye,Ee){if(ae=ye,Ee){It(ae,!0);return}var Xe=!he;if(Xe){var Lt=ne(ae);!isNaN(Lt)&&Lt<4.4&&(Xe=!1)}var Ue,ht;window.location.protocol.substr(0,4)==="http"?Ue=window.location.protocol:Ue="http:";var de=ae.indexOf("//");de>0?ht=ae:de===0?ht=Ue+ae:ht="https://www.geogebra.org/apps/5.2.814.0/";for(var Qe in dt)if(ae.slice(dt[Qe].length*-1)===dt[Qe]||ae.slice((dt[Qe].length+1)*-1)===dt[Qe]+"/"){It(ht,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Xe&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!We(ge.showToolBar)&&!We(ge.showMenuBar)&&!We(ge.showAlgebraInput)&&!We(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?ht+="webSimple/":ht+="web3d/",It(ht,!1)},It=function(ye,Ee){if(ye.requirejs){Ve=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),Ve=ye,Ee===null&&(Ee=ye.indexOf("http")===-1),Be=Ee,a="web.nocache.js",y=!1;var Xe=Ve.split("/");Xe.length>1&&(!Ee&&Xe[Xe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):dt.indexOf(Xe[Xe.length-2])>=0&&(a=Xe[Xe.length-2]+".nocache.js")),Xe=ye.split("/"),ae=Xe[Xe.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&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Lt+" is deprecated. Using version latest instead."),Gt("5.0",Ee))},Dt=function(ye,Ee){window.console&&window.console.log&&(!Ee||typeof Ee.showLogging=="undefined"||Ee.showLogging&&Ee.showLogging!=="false")&&console.log(ye)};ge.material_id!==void 0?ie(Ut):Ut();function Ut(){var ye=rt;Ne!==null?ye=Ne:parseFloat(ye)<5&&(ye="5.0"),Gt(ye,!1),me!==null&&It(me,Be),se=!0}return we},GGBAppletUtils=function(){"use strict";function we(){return window.GGBT_wsf_edit!==void 0}function rt(se,Ne){Ne!=1?(se.style.transformOrigin="0% 0% 0px",se.style.webkitTransformOrigin="0% 0% 0px",se.style.transform="scale("+Ne+","+Ne+")",se.style.webkitTransform="scale("+Ne+","+Ne+")",se.style.maxWidth="initial",se.querySelector(".ggb_preview")!==null&&(se.querySelector(".ggb_preview").style.maxWidth="initial"),se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(se.style.transform="none",se.style.webkitTransform="none")}function ge(se,Ne,me,Me,be,De){var Ve=null;if(De!=null&&De!="")for(var Be=se.parentNode;Be!=null;)if((" "+Be.className+" ").indexOf(" "+De+" ")>-1){Ve=Be;break}else Be=Be.parentNode;var Ce=0,ae=0,a=0,y=0,x=0,b=0,E=0;if(Ve)Ce=Ve.offsetWidth,ae=Math.max(Me?Ve.offsetWidth:0,Ve.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ce):(Ce=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),se){var z=se.getBoundingClientRect();z.left>0&&z.left<=Ce&&(be===void 0||!be)&&(document.dir==="rtl"?(x=Ce-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return se&&((me===void 0||!me)&&Ne>0&&Ne+y<Ce?Ce=Ne:Ce-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ae-=E)),{width:Ce,height:ae}}function te(se,Ne,me,Me,be){if(se.isScreenshoGenerator)return 1;var De=Me!==void 0&&Me,Ve=se.noScaleMargin!=null&&se.noScaleMargin,Be=function(ee){return ee&&ee!=="false"},Ce=Be(se.autoHeight),ae=ge(Ne,se.width,me,Ce,De&&window.GGBT_wsf_view||Ve,be),a=parseInt(ae.width),y=se.width,x=se.height;if(y===void 0){var b=Ne.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=De?1:ae.height/x;return me!==void 0&&!me&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function he(se,Ne,me){var Me=1,be,De=!1;if(se.hasOwnProperty("allowUpscale")&&(De=se.allowUpscale),se.hasOwnProperty("scale")&&(Me=parseFloat(se.scale),(isNaN(Me)||Me===null||Me===0)&&(Me=1),Me>1&&(De=!0)),Ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(se.hasOwnProperty("disableAutoScale")&&se.disableAutoScale))be=te(se,Ne,De,me,se.scaleContainerClass);else return Me;return De&&(!se.hasOwnProperty("scale")||Me===1)?be:Math.min(Me,be)}function Ze(se){var Ne=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),Me=se.getBoundingClientRect(),be=(Ne-Me.width)/2,De=(me-Me.height)/2;De<0&&(De=0),se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(be<40?se.style.left="40px":se.style.left=be+"px",se.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?se.style.top="40px":se.style.top=De+"px",se.style.left=be+"px")}function Re(se,Ne){var me=se.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ne.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(se)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var Me=he(Ne,se);we()&&me.setAttribute("data-param-scale",Me);for(var be=null,De=0;De<se.childNodes.length;De++)if(se.childNodes[De].className!==void 0&&se.childNodes[De].className.match(/^applet_scaler/)){be=se.childNodes[De];break}if(be!==null&&be.querySelector(".noscale")!==null)return;var Ve=Ne.id!==void 0?Ne.id:"ggbApplet",Be=window[Ve];(Be==null||!Be.recalculateEnvironments)&&be!==null&&!be.className.match(/fullscreen/)&&(be.parentNode.style.transform="",!isNaN(Me)&&Me!==1?(be.parentNode.style.width=Ne.width*Me+"px",be.parentNode.style.height=Ne.height*Me+"px",rt(be,Me)):(rt(be,1),be.parentNode.style.width=Ne.width+"px",be.parentNode.style.height=Ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ze(se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Re,isFlexibleWorksheetEditor:we,positionCenter:Ze,getScale:he,scaleElement:rt}}();__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 we=n.location.search;return we.indexOf(J)!=-1||we.indexOf(K)!=-1}function q(we,rt){}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(we){var rt=s[L].bindings;s[L].bindings=function(){for(var ge=rt?rt():{},te=we[webModule.__softPermutationId],he=O;he<te.length;he++){var Ze=te[he];ge[Ze[O]]=Ze[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var we=o.createElement(Q);if(we.id=L,we.style.cssText=R+S,we.tabIndex=-1,o.body.appendChild(we),t=we.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var rt=document.compatMode==U?V:W;t.write(rt+X),t.close()}}}function w(we){function rt(te){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ze=he();if(Ze){te();return}function Re(){if(!Ze){if(!he())return;Ze=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Re,!1),se&&clearInterval(se)}}o.addEventListener&&o.addEventListener(Z,Re,!1);var se=setInterval(function(){Re()},$)}function ge(te){var he=u(),Ze=he.body,Re=he.createElement(_);Re.language=ab,Re.crossOrigin=W,Re.src=te,webModule.__errFn&&(Re.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Ze.appendChild(Re)}rt(function(){ge(we)})}webModule.__startLoadingFragment=function(we){return C(we)},webModule.__installRunAsyncCode=function(we){var rt=u(),ge=rt.body,te=rt.createElement(_);te.language=ab,te.text=we,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(we){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(we){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(we){var rt=c[we];return rt==null?null:rt},r=d,webModule.__errFn=e}function B(){function we(se){var Ne=se.lastIndexOf(rb);Ne==-1&&(Ne=se.length);var me=se.indexOf(sb);me==-1&&(me=se.length);var Me=se.lastIndexOf(tb,Math.min(me,Ne));return Me>=O?se.substring(O,Me+P):W}function rt(se){if(!se.match(/^\w+:\/\//)){var Ne=o.createElement(ub);Ne.src=se+vb,se=we(Ne.src)}return se}function ge(){var se=__gwt_getMetaProperty(wb);return se!=null?se:W}function te(){for(var se=o.getElementsByTagName(_),Ne=O;Ne<se.length;++Ne)if(se[Ne].src.indexOf(xb)!=-1)return we(se[Ne].src);return W}function he(){var se=o.getElementsByTagName(yb);return se.length>O?se[se.length-P].href:W}function Ze(){var se=o.location;return se.href==se.protocol+zb+se.host+se.pathname+se.search+se.hash}var Re=ge();return Re==W&&(Re=te()),Re==W&&(Re=he()),Re==W&&Ze()&&(Re=we(o.location.href)),Re=rt(Re),Re}function C(we){return we.match(/^\//)||we.match(/^[a-zA-Z]+:\/\//)?we:webModule.__moduleBase+we}function D(){var we=[],rt=O,ge=[],te=[];function he(se){var Ne=te[se](),me=ge[se];if(Ne in me)return Ne;var Me=[];for(var be in me)Me[me[be]]=be;throw r&&r(se,Me,Ne),null}if(__gwt_isKnownPropertyValue=function(se,Ne){return Ne in ge[se]},webModule.__getPropMap=function(){var se={};for(var Ne in ge)ge.hasOwnProperty(Ne)&&(se[Ne]=he(Ne));return se},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var Re=Ze.indexOf(Db);Re!=-1&&(rt=parseInt(Ze.substring(Re+P),$),Ze=Ze.substring(O,Re))}catch(se){}return webModule.__softPermutationId=rt,C(Ze+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})()},49291:function(we,rt,ge){"use strict";ge.d(rt,{Ax:function(){return Re},Ds:function(){return se},KI:function(){return me},SI:function(){return Ze},f1:function(){return he}});var te=ge(38446);function he(Me){let be=!0;if(Me.length>0){for(let De=0;De<Me.length;De++)if(Me[De].compile_success==0||!Me[De].compile_success){be=!1;break}}else be=!1;return be}function Ze(Me,be=""){let De=[];for(let Ve=0;Ve<Me.length;Ve++){let Be=Me[Ve],Ce=be?`${be}/${Be.name}`:`${Be.name}`;De.push({title:Be.name,type:Be.type,isLeaf:Be.type!=="tree",key:Ce})}return De}function Re(Me,be,De){for(let Ve=0;Ve<Me.length;Ve++){let Be=Me[Ve];if(Be.key===be){Be.children=De;break}Be.children&&Re(Be.children,be,De)}return Me}function se(Me,be,De){let Ve;return function(){let Be=this,Ce=arguments,ae=function(){Ve=null,De||Me.apply(Be,Ce)},a=De&&!Ve;clearTimeout(Ve),Ve=setTimeout(ae,be),a&&Me.apply(Be,Ce)}}const Ne=!0,me=te.Z.API_SERVER},14573:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return Ve}});var te=ge(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=ge(92310),Re=ge.n(Ze),se=ge(71418),Ne=ge(2859),me=ge(7660),Me=ge(88230),be=(Be,Ce,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(Be,Ce)).next())}),Ve=({data:Be,className:Ce,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),[ue,ce]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Be!=null&&Be.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Be!=null&&Be.src&&Ge()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Be==null?void 0:Be.visible]);const Ge=()=>be(void 0,null,function*(){ie(!0),ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,Me.ZJ)(Be==null?void 0:Be.src);z.current.src="",z.current.src=Le,z.current.onload=function(){Zt()},ie(!1),ce("")}),We=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},ft=Le=>be(void 0,null,function*(){ie(!0),ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ye=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Be.title,file:Le.dataUrl}});Ye!=null&&Ye.id&&!E?(yield(0,me.ZP)(`/api/attachments/${Be.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ye==null?void 0:Ye.id,settings:JSON.stringify(Le.state)}})).status===0&&x():Ye!=null&&Ye.id&&x(Ye),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",ie(!1),ce("")}),Et=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.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(ot=>{const Je=document.querySelector(ot.name);Je&&Je.setAttribute("title",ot.title)})},Zt=()=>{ee.current=new Ne.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",ft),ee.current.addEventListener("beforeclose",We),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(),Be!=null&&Be.snapshotData&&ee.current.restoreState(Be.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Et()},300)};return te.createElement(te.Fragment,null,(Be==null?void 0:Be.visible)&&te.createElement(se.Z,{spinning:re,tip:ue,style:{position:"absolute"}},te.createElement("div",{ref:oe,className:Re()(he.imageDimensions,Ce,ae?he.fullWidth:""),style:a},te.createElement("img",{className:he.img,ref:z}))))}},46531:function(we,rt,ge){"use strict";var te=ge(59301),he=ge(95237),Ze=ge(43604),Re=ge(99313),se=ge(3113),Ne=ge(99325),me=ge(11570),Me=ge(48136),be=ge(59301);const De=(0,te.forwardRef)(({callback:Ve,showSaveButton:Be,value:Ce=""},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:be.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,ne)=>be.createElement(Ze.Z,{flex:"110px",className:me.Z.item},be.createElement("div",null,be.createElement(Ne.Z,{value:`$$${ee.value}$$`}),ee.name),be.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>be.createElement("div",{key:re},be.createElement("h1",null,oe.name),be.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>be.createElement(Ze.Z,{key:ue,onClick:()=>b(ie),className:me.Z.diamond},be.createElement(Ne.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:be.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},x.map((ee,ne)=>be.createElement(Ze.Z,{flex:"110px",className:me.Z.item},be.createElement("div",null,be.createElement(Ne.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),be.createElement("div",{className:me.Z.children},ee.children.map((oe,re)=>be.createElement("div",{key:re},oe.name&&be.createElement("h1",null,oe.name),be.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,ue)=>be.createElement(Ze.Z,{key:ue,onClick:()=>b(ie),className:me.Z.diamond},be.createElement(Ne.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Ve&&Ve(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),be.createElement("div",{className:me.Z.mathWrap},be.createElement(Re.default,{defaultActiveKey:"1",items:E}),be.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ce||""),Be&&be.createElement("div",{className:me.Z.button},be.createElement(se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});rt.Z=De},85469:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return en}});var te=ge(59301),he=ge(50484),Ze=ge(15277),Re=ge(92310),se=ge.n(Re),Ne=ge(92413),me=ge(33708),Me=ge(400),be=ge(33606),De=ge(39559),Ve=ge(37061),Be=ge(55468),Ce=ge(18929),ae=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],a=te.createContext(null),y=0;function x(Te,le){var ze=te.useState(function(){return y+=1,String(y)}),qe=(0,be.Z)(ze,1),it=qe[0],je=te.useContext(a),st={data:le,canPreview:Te};return te.useEffect(function(){if(je)return je.register(it,st)},[]),te.useEffect(function(){je&&je.register(it,st)},[Te,le]),it}function b(Te){return new Promise(function(le){var ze=document.createElement("img");ze.onerror=function(){return le(!1)},ze.onload=function(){return le(!0)},ze.src=Te})}function E(Te){var le=Te.src,ze=Te.isCustomPlaceholder,qe=Te.fallback,it=(0,te.useState)(ze?"loading":"normal"),je=(0,be.Z)(it,2),st=je[0],ct=je[1],zt=(0,te.useRef)(!1),tt=st==="error";(0,te.useEffect)(function(){b(le).then(function(Rt){Rt||ct("error")})},[le]),(0,te.useEffect)(function(){ze&&!zt.current?ct("loading"):tt&&ct("normal")},[le]);var Mt=function(){ct("normal")},vt=function(Vt){zt.current=!1,st==="loading"&&Vt!=null&&Vt.complete&&(Vt.naturalWidth||Vt.naturalHeight)&&(zt.current=!0,Mt())},Ct=tt&&qe?{src:qe}:{onLoad:Mt,src:le};return[vt,Ct,st]}var z=ge(86923),ee=ge(8224),ne=ge(10228),oe=ge(48736);function re(Te,le,ze,qe){var it=le+ze,je=(ze-qe)/2;if(ze>qe){if(le>0)return(0,Me.Z)({},Te,je);if(le<0&&it<qe)return(0,Me.Z)({},Te,-je)}else if(le<0||it>qe)return(0,Me.Z)({},Te,le<0?je:-je);return{}}function ie(Te,le,ze,qe){var it=(0,Be.g1)(),je=it.width,st=it.height,ct=null;return Te<=je&&le<=st?ct={x:0,y:0}:(Te>je||le>st)&&(ct=(0,me.Z)((0,me.Z)({},re("x",ze,Te,je)),re("y",qe,le,st))),ct}var ue=ge(13697),ce=ge(16089),Ge={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function We(Te,le,ze,qe){var it=(0,te.useRef)(null),je=(0,te.useRef)([]),st=(0,te.useState)(Ge),ct=(0,be.Z)(st,2),zt=ct[0],tt=ct[1],Mt=function(Vt){tt(Ge),qe&&!(0,ue.Z)(Ge,zt)&&qe({transform:Ge,action:Vt})},vt=function(Vt,xn){it.current===null&&(je.current=[],it.current=(0,ce.Z)(function(){tt(function(xe){var gn=xe;return je.current.forEach(function(Jt){gn=(0,me.Z)((0,me.Z)({},gn),Jt)}),it.current=null,qe==null||qe({transform:gn,action:xn}),gn})})),je.current.push((0,me.Z)((0,me.Z)({},zt),Vt))},Ct=function(Vt,xn,xe,gn){var Jt=Te.current,Mn=Jt.width,Qt=Jt.height,_e=Jt.offsetWidth,mt=Jt.offsetHeight,Nt=Jt.offsetLeft,at=Jt.offsetTop,Wt=Vt,Xt=zt.scale*Vt;Xt>ze?(Wt=ze/zt.scale,Xt=ze):Xt<le&&(Wt=le/zt.scale,Xt=le);var dn=xe!=null?xe:innerWidth/2,ln=gn!=null?gn:innerHeight/2,hn=Wt-1,Vn=hn*Mn*.5,An=hn*Qt*.5,Yn=hn*(dn-zt.x-Nt),ta=hn*(ln-zt.y-at),In=zt.x-(Yn-Vn),Jn=zt.y-(ta-An);if(Vt<1&&Xt===1){var Rn=_e*Xt,kn=mt*Xt,Qn=(0,Be.g1)(),Dn=Qn.width,Cn=Qn.height;Rn<=Dn&&kn<=Cn&&(In=0,Jn=0)}vt({x:In,y:Jn,scale:Xt},xn)};return{transform:zt,resetTransform:Mt,updateTransform:vt,dispatchZoomChange:Ct}}var ft=ge(43403),Et=ge(77900),Zt=function(le){var ze=le.visible,qe=le.maskTransitionName,it=le.getContainer,je=le.prefixCls,st=le.rootClassName,ct=le.icons,zt=le.countRender,tt=le.showSwitch,Mt=le.showProgress,vt=le.current,Ct=le.transform,Rt=le.count,Vt=le.scale,xn=le.minScale,xe=le.maxScale,gn=le.closeIcon,Jt=le.onSwitchLeft,Mn=le.onSwitchRight,Qt=le.onClose,_e=le.onZoomIn,mt=le.onZoomOut,Nt=le.onRotateRight,at=le.onRotateLeft,Wt=le.onFlipX,Xt=le.onFlipY,dn=le.toolbarRender,ln=(0,te.useContext)(a),hn=ct.rotateLeft,Vn=ct.rotateRight,An=ct.zoomIn,Yn=ct.zoomOut,ta=ct.close,In=ct.left,Jn=ct.right,Rn=ct.flipX,kn=ct.flipY,Qn="".concat(je,"-operations-operation");te.useEffect(function(){var pn=function(jn){jn.keyCode===ne.Z.ESC&&Qt()};return ze&&window.addEventListener("keydown",pn),function(){window.removeEventListener("keydown",pn)}},[ze]);var Dn=[{icon:kn,onClick:Xt,type:"flipY"},{icon:Rn,onClick:Wt,type:"flipX"},{icon:hn,onClick:at,type:"rotateLeft"},{icon:Vn,onClick:Nt,type:"rotateRight"},{icon:Yn,onClick:mt,type:"zoomOut",disabled:Vt===xn},{icon:An,onClick:_e,type:"zoomIn",disabled:Vt===xe}],Cn=Dn.map(function(pn){var Gn,jn=pn.icon,na=pn.onClick,un=pn.type,zn=pn.disabled;return te.createElement("div",{className:se()(Qn,(Gn={},(0,Me.Z)(Gn,"".concat(je,"-operations-operation-").concat(un),!0),(0,Me.Z)(Gn,"".concat(je,"-operations-operation-disabled"),!!zn),Gn)),onClick:na,key:un},jn)}),qn=te.createElement("div",{className:"".concat(je,"-operations")},Cn);return te.createElement(Et.default,{visible:ze,motionName:qe},function(pn){var Gn=pn.className,jn=pn.style;return te.createElement(ft.Z,{open:!0,getContainer:it!=null?it:document.body},te.createElement("div",{className:se()("".concat(je,"-operations-wrapper"),Gn,st),style:jn},gn===null?null:te.createElement("button",{className:"".concat(je,"-close"),onClick:Qt},gn||ta),tt&&te.createElement(te.Fragment,null,te.createElement("div",{className:se()("".concat(je,"-switch-left"),(0,Me.Z)({},"".concat(je,"-switch-left-disabled"),vt===0)),onClick:Jt},In),te.createElement("div",{className:se()("".concat(je,"-switch-right"),(0,Me.Z)({},"".concat(je,"-switch-right-disabled"),vt===Rt-1)),onClick:Mn},Jn)),te.createElement("div",{className:"".concat(je,"-footer")},Mt&&te.createElement("div",{className:"".concat(je,"-progress")},zt?zt(vt+1,Rt):"".concat(vt+1," / ").concat(Rt)),dn?dn(qn,(0,me.Z)({icons:{flipYIcon:Cn[0],flipXIcon:Cn[1],rotateLeftIcon:Cn[2],rotateRightIcon:Cn[3],zoomOutIcon:Cn[4],zoomInIcon:Cn[5]},actions:{onFlipY:Xt,onFlipX:Wt,onRotateLeft:at,onRotateRight:Nt,onZoomOut:mt,onZoomIn:_e},transform:Ct},ln?{current:vt,total:Rt}:{})):qn)))})},Le=Zt,Ye=1,ot=1,Je=["fallback","src","imgRef"],dt=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Gt=function(le){var ze=le.fallback,qe=le.src,it=le.imgRef,je=(0,Ve.Z)(le,Je),st=E({src:qe,fallback:ze}),ct=(0,be.Z)(st,2),zt=ct[0],tt=ct[1];return te.createElement("img",(0,Ne.Z)({ref:function(vt){it.current=vt,zt(vt)}},je,tt))},It=function(le){var ze=le.prefixCls,qe=le.src,it=le.alt,je=le.fallback,st=le.movable,ct=st===void 0?!0:st,zt=le.onClose,tt=le.visible,Mt=le.icons,vt=Mt===void 0?{}:Mt,Ct=le.rootClassName,Rt=le.closeIcon,Vt=le.getContainer,xn=le.current,xe=xn===void 0?0:xn,gn=le.count,Jt=gn===void 0?1:gn,Mn=le.countRender,Qt=le.scaleStep,_e=Qt===void 0?.5:Qt,mt=le.minScale,Nt=mt===void 0?1:mt,at=le.maxScale,Wt=at===void 0?50:at,Xt=le.transitionName,dn=Xt===void 0?"zoom":Xt,ln=le.maskTransitionName,hn=ln===void 0?"fade":ln,Vn=le.imageRender,An=le.imgCommonProps,Yn=le.toolbarRender,ta=le.onTransform,In=le.onChange,Jn=(0,Ve.Z)(le,dt),Rn=(0,te.useRef)(),kn=(0,te.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Qn=(0,te.useState)(!1),Dn=(0,be.Z)(Qn,2),Cn=Dn[0],qn=Dn[1],pn=(0,te.useContext)(a),Gn=pn&&Jt>1,jn=pn&&Jt>=1,na=We(Rn,Nt,Wt,ta),un=na.transform,zn=na.resetTransform,Zn=na.updateTransform,$n=na.dispatchZoomChange,La=(0,te.useState)(!0),Pa=(0,be.Z)(La,2),fa=Pa[0],ra=Pa[1],Hn=un.rotate,Wn=un.scale,ua=un.x,da=un.y,xa=se()((0,Me.Z)({},"".concat(ze,"-moving"),Cn));(0,te.useEffect)(function(){fa||ra(!0)},[fa]);var Pt=function(){zn("close")},nt=function(){$n(Ye+_e,"zoomIn")},lt=function(){$n(Ye/(Ye+_e),"zoomOut")},St=function(){Zn({rotate:Hn+90},"rotateRight")},Yt=function(){Zn({rotate:Hn-90},"rotateLeft")},nn=function(){Zn({flipX:!un.flipX},"flipX")},yn=function(){Zn({flipY:!un.flipY},"flipY")},wn=function(jt){jt==null||jt.preventDefault(),jt==null||jt.stopPropagation(),xe>0&&(ra(!1),zn("prev"),In==null||In(xe-1,xe))},En=function(jt){jt==null||jt.preventDefault(),jt==null||jt.stopPropagation(),xe<Jt-1&&(ra(!1),zn("next"),In==null||In(xe+1,xe))},Fn=function(){if(tt&&Cn){qn(!1);var jt=kn.current,Nn=jt.transformX,pa=jt.transformY,aa=ua!==Nn&&da!==pa;if(!aa)return;var ha=Rn.current.offsetWidth*Wn,va=Rn.current.offsetHeight*Wn,ca=Rn.current.getBoundingClientRect(),ga=ca.left,Ba=ca.top,Ca=Hn%180!==0,Ea=ie(Ca?va:ha,Ca?ha:va,ga,Ba);Ea&&Zn((0,me.Z)({},Ea),"dragRebound")}},la=function(jt){!ct||jt.button!==0||(jt.preventDefault(),jt.stopPropagation(),kn.current={deltaX:jt.pageX-un.x,deltaY:jt.pageY-un.y,transformX:un.x,transformY:un.y},qn(!0))},_n=function(jt){tt&&Cn&&Zn({x:jt.pageX-kn.current.deltaX,y:jt.pageY-kn.current.deltaY},"move")},ya=function(jt){if(!(!tt||jt.deltaY==0)){var Nn=Math.abs(jt.deltaY/100),pa=Math.min(Nn,ot),aa=Ye+pa*_e;jt.deltaY>0&&(aa=Ye/aa),$n(aa,"wheel",jt.clientX,jt.clientY)}},wa=function(jt){!tt||!Gn||(jt.keyCode===ne.Z.LEFT?wn():jt.keyCode===ne.Z.RIGHT&&En())},ba=function(jt){tt&&(Wn!==1?Zn({x:0,y:0,scale:1},"doubleClick"):$n(Ye+_e,"doubleClick",jt.clientX,jt.clientY))};(0,te.useEffect)(function(){var vn,jt,Nn,pa;if(ct){Nn=(0,ee.Z)(window,"mouseup",Fn,!1),pa=(0,ee.Z)(window,"mousemove",_n,!1);try{window.top!==window.self&&(vn=(0,ee.Z)(window.top,"mouseup",Fn,!1),jt=(0,ee.Z)(window.top,"mousemove",_n,!1))}catch(aa){(0,oe.Kp)(!1,"[rc-image] ".concat(aa))}}return function(){var aa,ha,va,ca;(aa=Nn)===null||aa===void 0||aa.remove(),(ha=pa)===null||ha===void 0||ha.remove(),(va=vn)===null||va===void 0||va.remove(),(ca=jt)===null||ca===void 0||ca.remove()}},[tt,Cn,ua,da,Hn,ct]),(0,te.useEffect)(function(){var vn=(0,ee.Z)(window,"keydown",wa,!1);return function(){vn.remove()}},[tt,Gn,xe]);var Fa=te.createElement(Gt,(0,Ne.Z)({},An,{width:le.width,height:le.height,imgRef:Rn,className:"".concat(ze,"-img"),alt:it,style:{transform:"translate3d(".concat(un.x,"px, ").concat(un.y,"px, 0) scale3d(").concat(un.flipX?"-":"").concat(Wn,", ").concat(un.flipY?"-":"").concat(Wn,", 1) rotate(").concat(Hn,"deg)"),transitionDuration:!fa&&"0s"},fallback:je,src:qe,onWheel:ya,onMouseDown:la,onDoubleClick:ba}));return te.createElement(te.Fragment,null,te.createElement(z.Z,(0,Ne.Z)({transitionName:dn,maskTransitionName:hn,closable:!1,keyboard:!0,prefixCls:ze,onClose:zt,visible:tt,wrapClassName:xa,rootClassName:Ct,getContainer:Vt},Jn,{afterClose:Pt}),te.createElement("div",{className:"".concat(ze,"-img-wrapper")},Vn?Vn(Fa,(0,me.Z)({transform:un},pn?{current:xe}:{})):Fa)),te.createElement(Le,{visible:tt,transform:un,maskTransitionName:hn,closeIcon:Rt,getContainer:Vt,prefixCls:ze,rootClassName:Ct,icons:vt,countRender:Mn,showSwitch:Gn,showProgress:jn,current:xe,count:Jt,scale:Wn,minScale:Nt,maxScale:Wt,toolbarRender:Yn,onSwitchLeft:wn,onSwitchRight:En,onZoomIn:nt,onZoomOut:lt,onRotateRight:St,onRotateLeft:Yt,onFlipX:nn,onFlipY:yn,onClose:zt}))},Dt=It,Ut=ge(26407);function ye(Te){var le=te.useState({}),ze=(0,be.Z)(le,2),qe=ze[0],it=ze[1],je=te.useCallback(function(ct,zt){return it(function(tt){return(0,me.Z)((0,me.Z)({},tt),{},(0,Me.Z)({},ct,zt))}),function(){it(function(tt){var Mt=(0,me.Z)({},tt);return delete Mt[ct],Mt})}},[]),st=te.useMemo(function(){return Te?Te.map(function(ct){if(typeof ct=="string")return{data:{src:ct}};var zt={};return Object.keys(ct).forEach(function(tt){["src"].concat((0,Ut.Z)(ae)).includes(tt)&&(zt[tt]=ct[tt])}),{data:zt}}):Object.keys(qe).reduce(function(ct,zt){var tt=qe[zt],Mt=tt.canPreview,vt=tt.data;return Mt&&ct.push({data:vt,id:zt}),ct},[])},[Te,qe]);return[st,je]}var Ee=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Xe=["src"],Lt=function(le){var ze,qe=le.previewPrefixCls,it=qe===void 0?"rc-image-preview":qe,je=le.children,st=le.icons,ct=st===void 0?{}:st,zt=le.items,tt=le.preview,Mt=le.fallback,vt=(0,De.Z)(tt)==="object"?tt:{},Ct=vt.visible,Rt=vt.onVisibleChange,Vt=vt.getContainer,xn=vt.current,xe=vt.movable,gn=vt.minScale,Jt=vt.maxScale,Mn=vt.countRender,Qt=vt.closeIcon,_e=vt.onChange,mt=vt.onTransform,Nt=vt.toolbarRender,at=vt.imageRender,Wt=(0,Ve.Z)(vt,Ee),Xt=ye(zt),dn=(0,be.Z)(Xt,2),ln=dn[0],hn=dn[1],Vn=(0,Ce.Z)(0,{value:xn}),An=(0,be.Z)(Vn,2),Yn=An[0],ta=An[1],In=(0,te.useState)(!1),Jn=(0,be.Z)(In,2),Rn=Jn[0],kn=Jn[1],Qn=((ze=ln[Yn])===null||ze===void 0?void 0:ze.data)||{},Dn=Qn.src,Cn=(0,Ve.Z)(Qn,Xe),qn=(0,Ce.Z)(!!Ct,{value:Ct,onChange:function(Hn,Wn){Rt==null||Rt(Hn,Wn,Yn)}}),pn=(0,be.Z)(qn,2),Gn=pn[0],jn=pn[1],na=(0,te.useState)(null),un=(0,be.Z)(na,2),zn=un[0],Zn=un[1],$n=te.useCallback(function(ra,Hn,Wn){var ua=ln.findIndex(function(da){return da.id===ra});jn(!0),Zn({x:Hn,y:Wn}),ta(ua<0?0:ua),kn(!0)},[ln]);te.useEffect(function(){Gn?Rn||ta(0):kn(!1)},[Gn]);var La=function(Hn,Wn){ta(Hn),_e==null||_e(Hn,Wn)},Pa=function(){jn(!1),Zn(null)},fa=te.useMemo(function(){return{register:hn,onPreview:$n}},[hn,$n]);return te.createElement(a.Provider,{value:fa},je,te.createElement(Dt,(0,Ne.Z)({"aria-hidden":!Gn,movable:xe,visible:Gn,prefixCls:it,closeIcon:Qt,onClose:Pa,mousePosition:zn,imgCommonProps:Cn,src:Dn,fallback:Mt,icons:ct,minScale:gn,maxScale:Jt,getContainer:Vt,current:Yn,count:ln.length,countRender:Mn,onTransform:mt,toolbarRender:Nt,imageRender:at,onChange:La},Wt)))},Ue=Lt,ht=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],de=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Qe=function(le){var ze=le.src,qe=le.alt,it=le.onPreviewClose,je=le.prefixCls,st=je===void 0?"rc-image":je,ct=le.previewPrefixCls,zt=ct===void 0?"".concat(st,"-preview"):ct,tt=le.placeholder,Mt=le.fallback,vt=le.width,Ct=le.height,Rt=le.style,Vt=le.preview,xn=Vt===void 0?!0:Vt,xe=le.className,gn=le.onClick,Jt=le.onError,Mn=le.wrapperClassName,Qt=le.wrapperStyle,_e=le.rootClassName,mt=(0,Ve.Z)(le,ht),Nt=tt&&tt!==!0,at=(0,De.Z)(xn)==="object"?xn:{},Wt=at.src,Xt=at.visible,dn=Xt===void 0?void 0:Xt,ln=at.onVisibleChange,hn=ln===void 0?it:ln,Vn=at.getContainer,An=Vn===void 0?void 0:Vn,Yn=at.mask,ta=at.maskClassName,In=at.movable,Jn=at.icons,Rn=at.scaleStep,kn=at.minScale,Qn=at.maxScale,Dn=at.imageRender,Cn=at.toolbarRender,qn=(0,Ve.Z)(at,de),pn=Wt!=null?Wt:ze,Gn=(0,Ce.Z)(!!dn,{value:dn,onChange:hn}),jn=(0,be.Z)(Gn,2),na=jn[0],un=jn[1],zn=E({src:ze,isCustomPlaceholder:Nt,fallback:Mt}),Zn=(0,be.Z)(zn,3),$n=Zn[0],La=Zn[1],Pa=Zn[2],fa=(0,te.useState)(null),ra=(0,be.Z)(fa,2),Hn=ra[0],Wn=ra[1],ua=(0,te.useContext)(a),da=!!xn,xa=function(){un(!1),Wn(null)},Pt=se()(st,Mn,_e,(0,Me.Z)({},"".concat(st,"-error"),Pa==="error")),nt=(0,te.useMemo)(function(){var nn={};return ae.forEach(function(yn){le[yn]!==void 0&&(nn[yn]=le[yn])}),nn},ae.map(function(nn){return le[nn]})),lt=(0,te.useMemo)(function(){return(0,me.Z)((0,me.Z)({},nt),{},{src:pn})},[pn,nt]),St=x(da,lt),Yt=function(yn){var wn=(0,Be.os)(yn.target),En=wn.left,Fn=wn.top;ua?ua.onPreview(St,En,Fn):(Wn({x:En,y:Fn}),un(!0)),gn==null||gn(yn)};return te.createElement(te.Fragment,null,te.createElement("div",(0,Ne.Z)({},mt,{className:Pt,onClick:da?Yt:gn,style:(0,me.Z)({width:vt,height:Ct},Qt)}),te.createElement("img",(0,Ne.Z)({},nt,{className:se()("".concat(st,"-img"),(0,Me.Z)({},"".concat(st,"-img-placeholder"),tt===!0),xe),style:(0,me.Z)({height:Ct},Rt),ref:$n},La,{width:vt,height:Ct,onError:Jt})),Pa==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(st,"-placeholder")},tt),Yn&&da&&te.createElement("div",{className:se()("".concat(st,"-mask"),ta),style:{display:(Rt==null?void 0:Rt.display)==="none"?"none":void 0}},Yn)),!ua&&da&&te.createElement(Dt,(0,Ne.Z)({"aria-hidden":!na,visible:na,prefixCls:zt,onClose:xa,mousePosition:Hn,src:pn,alt:qe,fallback:Mt,getContainer:An,icons:Jn,movable:In,scaleStep:Rn,minScale:kn,maxScale:Qn,rootClassName:_e,imageRender:Dn,imgCommonProps:nt,toolbarRender:Cn},qn)))};Qe.PreviewGroup=Ue,Qe.displayName="Image";var Ft=Qe,At=Ft,Bt=ge(62892),Fe=ge(36355),ve=ge(31724),fe=ge(99267),Oe=ge(33853),ke=ge(38819),et={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"},pt=et,yt=ge(7657),bt=function(le,ze){return te.createElement(yt.Z,(0,Ne.Z)({},le,{ref:ze,icon:pt}))},$t=te.forwardRef(bt),wt=$t,Tt={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"},an=Tt,Pn=function(le,ze){return te.createElement(yt.Z,(0,Ne.Z)({},le,{ref:ze,icon:an}))},cn=te.forwardRef(Pn),Kt=cn,on={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"},rn=on,Ln=function(le,ze){return te.createElement(yt.Z,(0,Ne.Z)({},le,{ref:ze,icon:rn}))},mn=te.forwardRef(Ln),Sn=mn,Bn={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"},fn=Bn,Tn=function(le,ze){return te.createElement(yt.Z,(0,Ne.Z)({},le,{ref:ze,icon:fn}))},sn=te.forwardRef(Tn),On=sn,Xn={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"},ea=Xn,ma=function(le,ze){return te.createElement(yt.Z,(0,Ne.Z)({},le,{ref:ze,icon:ea}))},ia=te.forwardRef(ma),sa=ia,Un=ge(64993),oa=ge(73819),Sa=ge(17313),Kn=ge(29878),He=ge(1950),Ke=ge(83116),Ae=ge(37613);const gt=Te=>({position:Te||"absolute",inset:0}),qt=Te=>{const{iconCls:le,motionDurationSlow:ze,paddingXXS:qe,marginXXS:it,prefixCls:je,colorTextLightSolid:st}=Te;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:st,background:new Un.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${ze}`,[`.${je}-mask-info`]:Object.assign(Object.assign({},Sa.vS),{padding:`0 ${qe}px`,[le]:{marginInlineEnd:it,svg:{verticalAlign:"baseline"}}})}},tn=Te=>{const{previewCls:le,modalMaskBg:ze,paddingSM:qe,marginXL:it,margin:je,paddingLG:st,previewOperationColorDisabled:ct,previewOperationHoverColor:zt,motionDurationSlow:tt,iconCls:Mt,colorTextLightSolid:vt}=Te,Ct=new Un.C(ze).setAlpha(.1),Rt=Ct.clone().setAlpha(.2);return{[`${le}-footer`]:{position:"fixed",bottom:it,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Te.previewOperationColor},[`${le}-progress`]:{marginBottom:je},[`${le}-close`]:{position:"fixed",top:it,right:{_skip_check_:!0,value:it},display:"flex",color:vt,backgroundColor:Ct.toRgbString(),borderRadius:"50%",padding:qe,outline:0,border:0,cursor:"pointer",transition:`all ${tt}`,"&:hover":{backgroundColor:Rt.toRgbString()},[`& > ${Mt}`]:{fontSize:Te.previewOperationSize}},[`${le}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${st}px`,backgroundColor:Ct.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:qe,padding:qe,cursor:"pointer",transition:`all ${tt}`,userSelect:"none",[`&:not(${le}-operations-operation-disabled):hover > ${Mt}`]:{color:zt},"&-disabled":{color:ct,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Mt}`]:{fontSize:Te.previewOperationSize}}}}},bn=Te=>{const{modalMaskBg:le,iconCls:ze,previewOperationColorDisabled:qe,previewCls:it,zIndexPopup:je,motionDurationSlow:st}=Te,ct=new Un.C(le).setAlpha(.1),zt=ct.clone().setAlpha(.2);return{[`${it}-switch-left, ${it}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:je+1,display:"flex",alignItems:"center",justifyContent:"center",width:Te.imagePreviewSwitchSize,height:Te.imagePreviewSwitchSize,marginTop:-Te.imagePreviewSwitchSize/2,color:Te.previewOperationColor,background:ct.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${st}`,userSelect:"none","&:hover":{background:zt.toRgbString()},"&-disabled":{"&, &:hover":{color:qe,background:"transparent",cursor:"not-allowed",[`> ${ze}`]:{cursor:"not-allowed"}}},[`> ${ze}`]:{fontSize:Te.previewOperationSize}},[`${it}-switch-left`]:{insetInlineStart:Te.marginSM},[`${it}-switch-right`]:{insetInlineEnd:Te.marginSM}}},_t=Te=>{const{motionEaseOut:le,previewCls:ze,motionDurationSlow:qe,componentCls:it}=Te;return[{[`${it}-preview-root`]:{[ze]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${ze}-body`]:Object.assign(Object.assign({},gt()),{overflow:"hidden"}),[`${ze}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${qe} ${le} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},gt()),{transition:`transform ${qe} ${le} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${ze}-moving`]:{[`${ze}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${it}-preview-root`]:{[`${ze}-wrap`]:{zIndex:Te.zIndexPopup}}},{[`${it}-preview-operations-wrapper`]:{position:"fixed",zIndex:Te.zIndexPopup+1},"&":[tn(Te),bn(Te)]}]},Ot=Te=>{const{componentCls:le}=Te;return{[le]:{position:"relative",display:"inline-block",[`${le}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${le}-img-placeholder`]:{backgroundColor:Te.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${le}-mask`]:Object.assign({},qt(Te)),[`${le}-mask:hover`]:{opacity:1},[`${le}-placeholder`]:Object.assign({},gt())}}},Se=Te=>{const{previewCls:le}=Te;return{[`${le}-root`]:(0,Kn._y)(Te,"zoom"),"&":(0,He.J$)(Te,!0)}};var pe=(0,Ke.Z)("Image",Te=>{const le=`${Te.componentCls}-preview`,ze=(0,Ae.TS)(Te,{previewCls:le,modalMaskBg:new Un.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Te.controlHeightLG});return[Ot(ze),_t(ze),(0,oa.QA)((0,Ae.TS)(ze,{componentCls:le})),Se(ze)]},Te=>({zIndexPopup:Te.zIndexPopupBase+80,previewOperationColor:new Un.C(Te.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Un.C(Te.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Un.C(Te.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Te.fontSizeIcon*1.5})),Pe=function(Te,le){var ze={};for(var qe in Te)Object.prototype.hasOwnProperty.call(Te,qe)&&le.indexOf(qe)<0&&(ze[qe]=Te[qe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,qe=Object.getOwnPropertySymbols(Te);it<qe.length;it++)le.indexOf(qe[it])<0&&Object.prototype.propertyIsEnumerable.call(Te,qe[it])&&(ze[qe[it]]=Te[qe[it]]);return ze};const $e={rotateLeft:te.createElement(wt,null),rotateRight:te.createElement(Kt,null),zoomIn:te.createElement(On,null),zoomOut:te.createElement(sa,null),close:te.createElement(fe.Z,null),left:te.createElement(Oe.Z,null),right:te.createElement(ke.Z,null),flipX:te.createElement(Sn,null),flipY:te.createElement(Sn,{rotate:90})};var ut=Te=>{var{previewPrefixCls:le,preview:ze}=Te,qe=Pe(Te,["previewPrefixCls","preview"]);const{getPrefixCls:it}=te.useContext(Fe.E_),je=it("image",le),st=`${je}-preview`,ct=it(),[zt,tt]=pe(je),Mt=te.useMemo(()=>{var vt;if(ze===!1)return ze;const Ct=typeof ze=="object"?ze:{},Rt=se()(tt,(vt=Ct.rootClassName)!==null&&vt!==void 0?vt:"");return Object.assign(Object.assign({},Ct),{transitionName:(0,Bt.m)(ct,"zoom",Ct.transitionName),maskTransitionName:(0,Bt.m)(ct,"fade",Ct.maskTransitionName),rootClassName:Rt})},[ze]);return zt(te.createElement(At.PreviewGroup,Object.assign({preview:Mt,previewPrefixCls:st,icons:$e},qe)))},kt=function(Te,le){var ze={};for(var qe in Te)Object.prototype.hasOwnProperty.call(Te,qe)&&le.indexOf(qe)<0&&(ze[qe]=Te[qe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,qe=Object.getOwnPropertySymbols(Te);it<qe.length;it++)le.indexOf(qe[it])<0&&Object.prototype.propertyIsEnumerable.call(Te,qe[it])&&(ze[qe[it]]=Te[qe[it]]);return ze};const xt=Te=>{const{prefixCls:le,preview:ze,className:qe,rootClassName:it,style:je}=Te,st=kt(Te,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:ct,locale:zt=ve.Z,getPopupContainer:tt,image:Mt}=te.useContext(Fe.E_),vt=ct("image",le),Ct=ct(),Rt=zt.Image||ve.Z.Image,[Vt,xn]=pe(vt),xe=se()(it,xn),gn=se()(qe,xn,Mt==null?void 0:Mt.className),Jt=te.useMemo(()=>{if(ze===!1)return ze;const Qt=typeof ze=="object"?ze:{},{getContainer:_e}=Qt,mt=kt(Qt,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${vt}-mask-info`},te.createElement(Ze.Z,null),Rt==null?void 0:Rt.preview),icons:$e},mt),{getContainer:_e||tt,transitionName:(0,Bt.m)(Ct,"zoom",Qt.transitionName),maskTransitionName:(0,Bt.m)(Ct,"fade",Qt.maskTransitionName)})},[ze,Rt]),Mn=Object.assign(Object.assign({},Mt==null?void 0:Mt.style),je);return Vt(te.createElement(At,Object.assign({prefixCls:vt,preview:Jt,rootClassName:xe,className:gn,style:Mn},st)))};xt.PreviewGroup=ut;var Ht=xt,en=()=>{const[Te,le]=(0,te.useState)(""),[ze,qe]=(0,te.useState)(0);let[it,je]=(0,te.useState)(),[st,ct]=(0,te.useState)();const[zt,tt]=(0,te.useState)(!1),Mt=(0,te.useRef)("");(0,te.useEffect)(()=>he.Z.subscribe("preview-image",_e=>{le(_e),console.log(Jt.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",vt),()=>{document.removeEventListener("keydown",vt)}),[]),(0,te.useEffect)(()=>{Mt.current=Te},[Te]);function vt(Qt){Qt.keyCode==27&&Mt.current&&Ct()}function Ct(){document.body.style.overflow="auto",je(void 0),ct(void 0),qe(0),le("")}function Rt(){qe(ze+90)}function Vt(){it=Jt.current.width*1.1,st=Jt.current.height*1.1,ct(st),je(it)}function xn(){it=Jt.current.width/1.1,st=Jt.current.height/1.1,ct(st),je(it)}const xe=(0,te.useRef)(),gn=(0,te.useRef)(),Jt=(0,te.useRef)(),Mn=Qt=>{(Qt.nativeEvent.target===xe.current||Qt.nativeEvent.target===gn.current)&&Ct()};return te.createElement(te.Fragment,null,Te?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:gn},te.createElement(Ht,{className:"image-preview",src:Te,style:{display:"none"},preview:{visible:!0,src:Te,movable:!1,onVisibleChange:Qt=>{le("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},73278:function(we,rt,ge){"use strict";ge.d(rt,{h:function(){return ee}});var te=ge(59301),he=ge(57809),Ze=ge(78241),Re=ge(3113),se=ge(89780),Ne=ge.n(se),me=ge(78780),Me=ge(19136),be=Object.defineProperty,De=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,oe,re)=>oe in ne?be(ne,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):ne[oe]=re,y=(ne,oe)=>{for(var re in oe||(oe={}))Ce.call(oe,re)&&a(ne,re,oe[re]);if(Be)for(var re of Be(oe))ae.call(oe,re)&&a(ne,re,oe[re]);return ne},x=(ne,oe)=>De(ne,Ve(oe));const b=he.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"]};rt.Z=({callback:ne,onCancel:oe})=>{const[re,ie]=(0,te.useState)("python");function ue(Ge){ie(z[Ge][1])}function ce(Ge){ne(Ge)}return te.createElement(Ze.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ce,style:{width:500}}),te.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(he.default,{getPopupContainer:Ge=>Ge.parentNode,onChange:ue},Object.keys(z).map(Ge=>te.createElement(b,{key:Ge,value:Ge},z[Ge][0])))),te.createElement(Ze.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(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Re.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:ne,onChange:oe,mode:re,options:ie={}}){const ue=(0,te.useRef)(),[ce,Ge]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ce){let We=function(ft){const Et=ft.getValue();oe&&oe(Et)};return ce.on("change",We),()=>{ce.off("change",We)}}},[ce,oe]),(0,te.useEffect)(()=>{ce&&ce.setOption("mode",re)},[ce,re]),(0,te.useEffect)(()=>{ce&&(ne!==ce.getValue()||ne==="")&&setTimeout(()=>{ce.setValue(ne||"")},300)},[ce,ne]),(0,te.useEffect)(()=>{if(ue.current&&!ce){const We=Ne().fromTextArea(ue.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Ge(We)}},[ue.current,ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:ue}))}},64726:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return Ot}});var te=ge(59301),he=ge(89780),Ze=ge.n(he),Re=ge(76374),se=ge(78780),Ne=ge(6313),me=ge(25717),Me=ge(99498),be=ge(25419),De=ge(67549),Ve=ge(99325),Be=({value:Se="",className:pe,showTextOnly:Pe,showLines:$e,style:Ie={}})=>{const ut=(0,te.useMemo)(()=>"",[Se]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},Ce=ge(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(Se,pe,Pe)=>pe in Se?ae(Se,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Se[pe]=Pe,ee=(Se,pe)=>{for(var Pe in pe||(pe={}))b.call(pe,Pe)&&z(Se,Pe,pe[Pe]);if(x)for(var Pe of x(pe))E.call(pe,Pe)&&z(Se,Pe,pe[Pe]);return Se},ne=(Se,pe)=>a(Se,y(pe));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:Se,title:pe,icon:Pe,actionName:$e,className:Ie="",children:ut}){function kt(){Se($e)}return Ce.createElement("a",{title:pe,className:Ie,onClick:kt},Ce.createElement("i",{className:`${Pe}`}),ut)}var ie=({watch:Se,showNullButton:pe,showNullProgramButton:Pe,onActionCallback:$e,fullScreen:Ie,insertTemp:ut,hidetoolBar:kt,extraUse:xt})=>{const Ht=[...oe,{title:`${Se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ce.createElement("ul",{className:"markdown-toolbar-container"},!kt&&Ht.map((en,Te)=>Ce.createElement("li",{key:Te},en.actionName?Ce.createElement(re,ne(ee({},en),{onActionCallback:$e})):Ce.createElement("span",{className:"v-line"}))),pe?Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:$e},Ce.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?Ce.createElement(Ce.Fragment,null,Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:$e},Ce.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:$e},Ce.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ut&&Ce.createElement("li",null,Ce.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ut}`,onActionCallback:$e},Ce.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),xt&&Ce.createElement("li",null,xt),Ce.createElement("li",{className:"btn-full-screen"},Ce.createElement(re,{icon:`${Ie?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ie?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:$e})))},ue=ge(19647),ce=ge(78241),Ge=ge(92832),We=ge(3113),ft=Object.defineProperty,Et=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Je=(Se,pe,Pe)=>pe in Se?ft(Se,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Se[pe]=Pe,dt=(Se,pe)=>{for(var Pe in pe||(pe={}))Ye.call(pe,Pe)&&Je(Se,Pe,pe[Pe]);if(Le)for(var Pe of Le(pe))ot.call(pe,Pe)&&Je(Se,Pe,pe[Pe]);return Se},Gt=(Se,pe)=>Et(Se,Zt(pe));const It={labelCol:{span:4},wrapperCol:{span:20}};var Dt=({callback:Se,onCancel:pe})=>{function Pe($e){Se($e)}return te.createElement(ce.default,Gt(dt({},It),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Ge.default,null)),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Ge.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(We.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},Ut=ge(73278),ye=ge(56030),Ee=ge(43418),Xe=ge(95237),Lt=ge(14573),Ue=ge(59301),ht=({callback:Se,onCancel:pe})=>{const Pe=document.createElement("canvas"),$e=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,$e.fillStyle="#ffffff",$e.fillRect(0,0,Pe.width,Pe.height);const Ie=Pe.toDataURL("image/png");return Ue.createElement(Ee.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ue.createElement(Xe.Z,{style:{height:"100vh"}},Ue.createElement(Lt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ie,visible:!0,title:String(Date.now())},onOk:ut=>{Se({src:ut.url})},onClose:pe})))},de=ge(12378);function Qe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Qe,go.CommandHandler),Qe.prototype.canAlignSelection=function(){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<2)},Qe.prototype.alignLeft=function(){var Se=this.diagram;Se.startTransaction("aligning left");var pe=1/0;Se.selection.each(function(Pe){Pe instanceof go.Link||(pe=Math.min(Pe.position.x,pe))}),Se.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(pe,Pe.position.y))}),Se.commitTransaction("aligning left")},Qe.prototype.alignRight=function(){var Se=this.diagram;Se.startTransaction("aligning right");var pe=-1/0;Se.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var $e=Pe.actualBounds.x+Pe.actualBounds.width;pe=Math.max($e,pe)}}),Se.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(pe-Pe.actualBounds.width,Pe.position.y))}),Se.commitTransaction("aligning right")},Qe.prototype.alignTop=function(){var Se=this.diagram;Se.startTransaction("alignTop");var pe=1/0;Se.selection.each(function(Pe){Pe instanceof go.Link||(pe=Math.min(Pe.position.y,pe))}),Se.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,pe))}),Se.commitTransaction("alignTop")},Qe.prototype.alignBottom=function(){var Se=this.diagram;Se.startTransaction("aligning bottom");var pe=-1/0;Se.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var $e=Pe.actualBounds.y+Pe.actualBounds.height;pe=Math.max($e,pe)}}),Se.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,pe-Pe.actualBounds.height))}),Se.commitTransaction("aligning bottom")},Qe.prototype.alignCenterX=function(){var Se=this.diagram,pe=Se.selection.first();if(pe){Se.startTransaction("aligning Center X");var Pe=pe.actualBounds.x+pe.actualBounds.width/2;Se.selection.each(function($e){$e instanceof go.Link||$e.move(new go.Point(Pe-$e.actualBounds.width/2,$e.actualBounds.y))}),Se.commitTransaction("aligning Center X")}},Qe.prototype.alignCenterY=function(){var Se=this.diagram,pe=Se.selection.first();if(pe){Se.startTransaction("aligning Center Y");var Pe=pe.actualBounds.y+pe.actualBounds.height/2;Se.selection.each(function($e){$e instanceof go.Link||$e.move(new go.Point($e.actualBounds.x,Pe-$e.actualBounds.height/2))}),Se.commitTransaction("aligning Center Y")}},Qe.prototype.alignColumn=function(Se){var pe=this.diagram;pe.startTransaction("align Column"),Se===void 0&&(Se=0),Se=parseFloat(Se);var Pe=new Array;pe.selection.each(function(xt){xt instanceof go.Link||Pe.push(xt)});for(var $e=0;$e<Pe.length-1;$e++){var Ie=Pe[$e],ut=Ie.actualBounds.y+Ie.actualBounds.height+Se,kt=Pe[$e+1];kt.move(new go.Point(Ie.actualBounds.x,ut))}pe.commitTransaction("align Column")},Qe.prototype.alignRow=function(Se){Se===void 0&&(Se=0),Se=parseFloat(Se);var pe=this.diagram;pe.startTransaction("align Row");var Pe=new Array;pe.selection.each(function(xt){xt instanceof go.Link||Pe.push(xt)});for(var $e=0;$e<Pe.length-1;$e++){var Ie=Pe[$e],ut=Ie.actualBounds.x+Ie.actualBounds.width+Se,kt=Pe[$e+1];kt.move(new go.Point(ut,Ie.actualBounds.y))}pe.commitTransaction("align Row")},Qe.prototype.canRotate=function(Se){var pe=this.diagram;return!(pe===null||pe.isReadOnly||pe.isModelReadOnly||pe.selection.count<1)},Qe.prototype.rotate=function(Se){Se===void 0&&(Se=90);var pe=this.diagram;pe.startTransaction("rotate "+Se.toString());var pe=this.diagram;pe.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=Se)}),pe.commitTransaction("rotate "+Se.toString())},Qe.prototype.pullToFront=function(){var Se=this.diagram;Se.startTransaction("pullToFront");var pe=new go.Map;Se.selection.each(function(Pe){pe.set(Pe.layer,0)}),pe.iteratorKeys.each(function(Pe){var $e=0;Pe.parts.each(function(Ie){if(!Ie.isSelected){var ut=Ie.zOrder;isNaN(ut)?Ie.zOrder=0:$e=Math.max($e,ut)}}),pe.set(Pe,$e)}),Se.selection.each(function(Pe){Qe._assignZOrder(Pe,pe.get(Pe.layer)+1)}),Se.commitTransaction("pullToFront")},Qe.prototype.pushToBack=function(){var Se=this.diagram;Se.startTransaction("pushToBack");var pe=new go.Map;Se.selection.each(function(Pe){pe.set(Pe.layer,0)}),pe.iteratorKeys.each(function(Pe){var $e=0;Pe.parts.each(function(Ie){if(!Ie.isSelected){var ut=Ie.zOrder;isNaN(ut)?Ie.zOrder=0:$e=Math.min($e,ut)}}),pe.set(Pe,$e)}),Se.selection.each(function(Pe){Qe._assignZOrder(Pe,pe.get(Pe.layer)-1-Qe._findGroupDepth(Pe))}),Se.commitTransaction("pushToBack")},Qe._assignZOrder=function(Se,pe,Pe){Pe===void 0&&(Pe=Se),Se.layer===Pe.layer&&(Se.zOrder=pe),Se instanceof go.Group&&Se.memberParts.each(function($e){Qe._assignZOrder($e,pe+1,Pe)})},Qe._findGroupDepth=function(Se){if(Se instanceof go.Group){var pe=0;return Se.memberParts.each(function(Pe){pe=Math.max(pe,Qe._findGroupDepth(Pe))}),pe+1}else return 0},Qe.prototype.doKeyDown=function(){var Se=this.diagram;if(Se!==null){var pe=Se.lastInput;if(pe.key==="Up"||pe.key==="Down"||pe.key==="Left"||pe.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Qe.prototype._getAllParts=function(){var Se=new Array;return this.diagram.nodes.each(function(pe){Se.push(pe)}),this.diagram.parts.each(function(pe){Se.push(pe)}),Se},Qe.prototype._arrowKeyMove=function(){var Se=this.diagram,pe=Se.lastInput,Pe=0,$e=0;if(pe.control||pe.meta)Pe=1,$e=1;else if(Se.grid!==null){var Ie=Se.grid.gridCellSize;$e=Ie.width,Pe=Ie.height}Se.startTransaction("arrowKeyMove"),Se.selection.each(function(ut){pe.key==="Up"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y-Pe)):pe.key==="Down"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y+Pe)):pe.key==="Left"?ut.move(new go.Point(ut.actualBounds.x-$e,ut.actualBounds.y)):pe.key==="Right"&&ut.move(new go.Point(ut.actualBounds.x+$e,ut.actualBounds.y))}),Se.commitTransaction("arrowKeyMove")},Qe.prototype._arrowKeySelect=function(){var Se=this.diagram,pe=Se.lastInput,Pe=null;pe.key==="Up"?Pe=this._findNearestPartTowards(270):pe.key==="Down"?Pe=this._findNearestPartTowards(90):pe.key==="Left"?Pe=this._findNearestPartTowards(180):pe.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(pe.shift?Pe.isSelected=!0:pe.control||pe.meta?Pe.isSelected=!Pe.isSelected:Se.select(Pe))},Qe.prototype._findNearestPartTowards=function(Se){var pe=this.diagram.selection.first();if(pe===null)return null;for(var Pe=pe.actualBounds.center,$e=this._getAllParts(),Ie=1/0,ut=pe,kt=0;kt<$e.length;kt++){var xt=$e[kt];if(xt!==pe&&xt.canSelect()){var Ht=xt.actualBounds.center,en=Pe.directionPoint(Ht),Te=this._angleCloseness(en,Se);if(Te<=45){var le=Pe.distanceSquaredPoint(Ht);le*=1+Math.sin(Te*Math.PI/180),le<Ie&&(Ie=le,ut=xt)}}}return ut},Qe.prototype._angleCloseness=function(Se,pe){return Math.min(Math.abs(pe-Se),Math.min(Math.abs(pe+360-Se),Math.abs(pe-360-Se)))},Qe.prototype._arrowKeyTree=function(){var Se=this.diagram,pe=Se.selection.first();if(pe instanceof go.Node){var Pe=Se.lastInput;if(Pe.key==="Right"){if(!pe.isTreeLeaf)if(!pe.isTreeExpanded)Se.commandHandler.canExpandTree(pe)&&Se.commandHandler.expandTree(pe);else{var $e=this._sortTreeChildrenByY(pe).first();$e!==null&&Se.select($e)}}else if(Pe.key==="Left")if(!pe.isTreeLeaf&&pe.isTreeExpanded)Se.commandHandler.canCollapseTree(pe)&&Se.commandHandler.collapseTree(pe);else{var Ie=pe.findTreeParentNode();Ie!==null&&Se.select(Ie)}else if(Pe.key==="Up"){var Ie=pe.findTreeParentNode();if(Ie!==null){var ut=this._sortTreeChildrenByY(Ie),kt=ut.indexOf(pe);if(kt>0){for(var xt=ut.elt(kt-1);xt!==null&&xt.isTreeExpanded&&!xt.isTreeLeaf;){var Ht=this._sortTreeChildrenByY(xt);xt=Ht.last()}xt!==null&&Se.select(xt)}else Se.select(Ie)}}else if(Pe.key==="Down")if(pe.isTreeExpanded&&!pe.isTreeLeaf){var $e=this._sortTreeChildrenByY(pe).first();$e!==null&&Se.select($e)}else for(;pe!==null;){var Ie=pe.findTreeParentNode();if(Ie===null)break;var ut=this._sortTreeChildrenByY(Ie),kt=ut.indexOf(pe);if(kt<ut.length-1){Se.select(ut.elt(kt+1));break}else pe=Ie}var en=Se.selection.first();en!==null&&Se.scrollToRect(en.actualBounds)}},Qe.prototype._sortTreeChildrenByY=function(Se){var pe=new go.List().addAll(Se.findTreeChildrenNodes());return pe.sort(function(Pe,$e){var Ie=Pe.location,ut=$e.location;return Ie.y<ut.y?-1:Ie.y>ut.y?1:Ie.x<ut.x?-1:Ie.x>ut.x?1:0}),pe},Qe.prototype.copyToClipboard=function(Se){go.CommandHandler.prototype.copyToClipboard.call(this,Se),this._lastPasteOffset.set(this.pasteOffset)},Qe.prototype.pasteFromClipboard=function(){var Se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Se},Object.defineProperty(Qe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Se){if(Se!=="move"&&Se!=="select"&&Se!=="scroll"&&Se!=="tree"&&Se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Se);this._arrowKeyBehavior=Se}}),Object.defineProperty(Qe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Se){if(!(Se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Se);this._pasteOffset.set(Se)}});var Ft=Qe,At=ge(29277),Bt=ge(43604),Fe=ge(7660),ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=ge(59301),Oe=(Se,pe,Pe)=>new Promise(($e,Ie)=>{var ut=Ht=>{try{xt(Pe.next(Ht))}catch(en){Ie(en)}},kt=Ht=>{try{xt(Pe.throw(Ht))}catch(en){Ie(en)}},xt=Ht=>Ht.done?$e(Ht.value):Promise.resolve(Ht.value).then(ut,kt);xt((Pe=Pe.apply(Se,pe)).next())});function ke({onCancel:Se,callback:pe}){let Pe=(0,te.useRef)(),$e=(0,te.useRef)(),Ie=(0,te.useRef)(),ut=(0,te.useRef)(!1);const kt=(0,te.useRef)(!1),[xt,Ht]=(0,te.useState)(0);function en(){const le=de.bx.make,ze={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Pe.current=new de.S0($e.current,{padding:20,grid:le(de.s_,"Grid",le(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),le(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:_e=>{var mt=_e.diagram.commandHandler.addTopLevelParts(_e.diagram.selection,!0);mt||_e.diagram.currentTool.doCancel()},commandHandler:le(Ft),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:_e=>{var mt=_e.subject;mt.location=mt.location.copy().snapToGridPoint(_e.diagram.grid.gridOrigin,_e.diagram.grid.gridCellSize),setTimeout(()=>{_e.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:_e=>{var mt=_e.subject;setTimeout(()=>{_e.diagram.commandHandler.editTextBlock()})},LinkRelinked:_e=>{var mt=_e.parameter.part;mt.invalidateConnectedLinks();var Nt=_e.subject;_e.diagram.toolManager.linkingTool.isForwards?Nt.toNode.invalidateConnectedLinks():Nt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=le(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),le(de.bn,{name:"SHAPE",fill:ze.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),le(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),le(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=le("ToolTip",le(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},le(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),le(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function qe(_e,mt){var Nt=(at,Wt)=>{at.handled=!0,at.diagram.model.commit(Xt=>{var dn=Wt.part.adornedPart,ln=new de.E9().setRectSpot(dn.actualBounds,_e);ln.subtract(dn.location),ln.scale(2,2),ln.x+=Math.sign(ln.x)*130,ln.y+=Math.sign(ln.y)*130,ln.add(dn.location),ln.snapToGridPoint(at.diagram.grid.gridOrigin,at.diagram.grid.gridCellSize);var hn=Xt.copyNodeData(dn.data);Xt.setGroupKeyForNodeData(hn,Xt.getGroupKeyForNodeData(dn.data)),Xt.addNodeData(hn);var Vn={from:dn.key,to:Xt.getKeyForNodeData(hn)};Xt.addLinkData(Vn);var An=at.diagram.findNodeForData(hn);An.location=ln,at.diagram.select(An),setTimeout(()=>{at.diagram.commandHandler.editTextBlock()},20)})};return le(de.bn,{figure:mt,alignment:_e,alignmentFocus:_e.opposite(),width:_e.equals(de.z6.Top)||_e.equals(de.z6.Bottom)?25:18,height:_e.equals(de.z6.Top)||_e.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:ze.white,strokeWidth:4,mouseEnter:(at,Wt)=>Wt.fill="dodgerblue",mouseLeave:(at,Wt)=>Wt.fill="orange",isActionable:!0,click:Nt,contextClick:Nt})}function it(_e){return le(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:(mt,Nt)=>Nt.fill="dodgerblue",mouseLeave:(mt,Nt)=>Nt.fill="orange",click:(mt,Nt)=>{mt.diagram.commandHandler.showContextMenu(Nt.part.adornedPart)}},_e||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=le(de.uz,"Spot",le(de.Vm,{padding:10}),qe(de.z6.Top,"TriangleUp"),qe(de.z6.Left,"TriangleLeft"),qe(de.z6.Right,"TriangleRight"),qe(de.z6.Bottom,"TriangleDown"),it({alignment:new de.z6(.75,0)}));function je(_e,mt){return(Nt,at)=>{Nt.handled=!0,Nt.diagram.model.commit(Wt=>{Wt.set(at.part.adornedPart.data,_e,mt)})}}function st(_e,mt){return mt||(mt="color"),le(de.bn,{width:16,height:16,stroke:"lightgray",fill:_e,margin:1,background:"transparent",mouseEnter:(Nt,at)=>at.stroke="dodgerblue",mouseLeave:(Nt,at)=>at.stroke="lightgray",click:je(mt,_e),contextClick:je(mt,_e)})}function ct(){return[le("ContextMenuButton",le(de.s_,"Horizontal",st(ze.white,"fill"),st(ze.beige,"fill"),st(ze.extralightblue,"fill"),st(ze.extralightred,"fill"))),le("ContextMenuButton",le(de.s_,"Horizontal",st(ze.lightgray,"fill"),st(ze.lightgreen,"fill"),st(ze.lightblue,"fill"),st(ze.lightred,"fill")))]}function zt(){return[le("ContextMenuButton",le(de.s_,"Horizontal",st(ze.black),st(ze.green),st(ze.blue),st(ze.red))),le("ContextMenuButton",le(de.s_,"Horizontal",st(ze.white),st(ze.magenta),st(ze.purple),st(ze.orange)))]}function tt(_e,mt){return mt||(mt="thickness"),le(de.bn,"LineH",{width:16,height:16,strokeWidth:_e,margin:1,background:"transparent",mouseEnter:(Nt,at)=>at.background="dodgerblue",mouseLeave:(Nt,at)=>at.background="transparent",click:je(mt,_e),contextClick:je(mt,_e)})}function Mt(_e,mt){return mt||(mt="dash"),le(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:_e,margin:1,background:"transparent",mouseEnter:(Nt,at)=>at.background="dodgerblue",mouseLeave:(Nt,at)=>at.background="transparent",click:je(mt,_e),contextClick:je(mt,_e)})}function vt(){return[le("ContextMenuButton",le(de.s_,"Horizontal",tt(1),tt(2),tt(3),tt(4))),le("ContextMenuButton",le(de.s_,"Horizontal",Mt(null),Mt([2,4]),Mt([4,4])))]}function Ct(_e,mt){return mt||(mt="figure"),le(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:_e,margin:1,background:"transparent",mouseEnter:(Nt,at)=>at.fill="dodgerblue",mouseLeave:(Nt,at)=>at.fill="lightgray",click:je(mt,_e),contextClick:je(mt,_e)})}Pe.current.nodeTemplate.contextMenu=le("ContextMenu",le("ContextMenuButton",le(de.s_,"Horizontal",Ct("Rectangle"),Ct("RoundedRectangle"),Ct("Ellipse"),Ct("Diamond"))),le("ContextMenuButton",le(de.s_,"Horizontal",Ct("Parallelogram2"),Ct("ManualOperation"),Ct("Procedure"),Ct("Cylinder1"))),le("ContextMenuButton",le(de.s_,"Horizontal",Ct("Terminator"),Ct("CreateRequest"),Ct("Document"),Ct("TriangleDown"))),ct(),zt(),vt()),Pe.current.groupTemplate=le(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(_e,mt)=>{var Nt=mt.addMembers(mt.diagram.selection,!0);Nt||mt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),le(de.s_,"Auto",{name:"BODY"},le(de.bn,{parameter1:10,fill:ze.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),le(de.Vm,{background:"transparent",margin:20})),le(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"))),Pe.current.groupTemplate.selectionAdornmentTemplate=le(de.uz,"Spot",le(de.s_,"Auto",le(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),le(de.Vm,{margin:1.5})),it({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=le("ContextMenu",ct(),zt(),vt()),Pe.current.linkTemplate=le(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",_e=>_e>=1?10:0),new de.KX("toShortLength","dir",_e=>_e>=1?10:0),new de.KX("points").makeTwoWay(),le(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),le(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",_e=>_e===1)),le(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",_e=>_e>=1),new de.KX("width","thickness",_e=>7+3*_e),new de.KX("height","thickness",_e=>7+3*_e),new de.KX("segmentOffset","thickness",_e=>new de.E9(-15,4+1.5*_e))),le(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",_e=>_e===2),new de.KX("width","thickness",_e=>7+3*_e),new de.KX("height","thickness",_e=>7+3*_e),new de.KX("segmentOffset","thickness",_e=>new de.E9(-15,4+1.5*_e))),le(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=le(de.uz,le(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Rt(2)},new de.KX("pathPattern","thickness",Rt)),it({alignmentFocus:new de.z6(0,0,-6,-4)}));function Rt(_e){return le(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(_e+4).toString()+" H3"})}function Vt(_e){var mt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return _e===0?mt="M0 0 M16 16 M0 8 L16 8":_e===2&&(mt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),le(de.bn,{geometryString:mt,margin:2,background:"transparent",mouseEnter:(Nt,at)=>at.background="dodgerblue",mouseLeave:(Nt,at)=>at.background="transparent",click:je("dir",_e),contextClick:je("dir",_e)})}function xn(_e){var mt=(Nt,at)=>{Nt.handled=!0,Nt.diagram.model.commit(Wt=>{var Xt=at.part.adornedPart;Wt.set(Xt.data,_e?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(_e?Xt.toNode:Xt.fromNode).invalidateConnectedLinks()})};return le(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Nt,at)=>at.background="dodgerblue",mouseLeave:(Nt,at)=>at.background="transparent",click:mt,contextClick:mt})}function xe(_e,mt){var Nt=0,at=de.z6.RightSide;_e.equals(de.z6.Top)?(Nt=270,at=de.z6.TopSide):_e.equals(de.z6.Left)?(Nt=180,at=de.z6.LeftSide):_e.equals(de.z6.Bottom)&&(Nt=90,at=de.z6.BottomSide),mt||(Nt-=180);var Wt=(Xt,dn)=>{Xt.handled=!0,Xt.diagram.model.commit(ln=>{var hn=dn.part.adornedPart;ln.set(hn.data,mt?"toSpot":"fromSpot",de.z6.stringify(at)),(mt?hn.toNode:hn.fromNode).invalidateConnectedLinks()})};return le(de.bn,{alignment:_e,alignmentFocus:_e.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Nt,background:"transparent",mouseEnter:(Xt,dn)=>dn.background="dodgerblue",mouseLeave:(Xt,dn)=>dn.background="transparent",click:Wt,contextClick:Wt})}Pe.current.linkTemplate.contextMenu=le("ContextMenu",zt(),vt(),le("ContextMenuButton",le(de.s_,"Horizontal",Vt(0),Vt(1),Vt(2))),le("ContextMenuButton",le(de.s_,"Horizontal",le(de.s_,"Spot",xn(!1),xe(de.z6.Top,!1),xe(de.z6.Left,!1),xe(de.z6.Right,!1),xe(de.z6.Bottom,!1)),le(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},xn(!0),xe(de.z6.Top,!0),xe(de.z6.Left,!0),xe(de.z6.Right,!0),xe(de.z6.Bottom,!0)))));const gn=`{ "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 Jt=["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 Mn(_e){return console.log("shapeName:",_e),Jt.indexOf(_e)>=0}var Qt=new de.YI(Ie.current,{maxSelectionCount:1,linkTemplate:le(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:le(de.uz,"Link",{locationSpot:de.z6.Center},le(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),le(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),le(de.bn,{isPanelMain:!0,strokeWidth:2}),le(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(_e=>({text:"\u672A\u547D\u540D",size:"100 100",figure:_e.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(_e){var mt;const Nt=_e.subject.part;var at=(mt=document.activeElement)==null?void 0:mt.value;typeof at=="string"&&at.trim()===""&&Pe.current.model.commit(function(Wt){Wt.set(Nt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Qt.nodeTemplate=le(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),le(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")),le(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(()=>{Pe.current.grid=le(de.s_,"Grid",le(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),le(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const Te=()=>Oe(this,null,function*(){var le=Pe.current.makeImage();const ze=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:le.src}});pe({src:ze.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{en()},500),Ht(xt+1),()=>{Pe.current=null}),[]),fe.createElement("div",{ref:kt,className:ut.current?`${ve.maxH60} body-overflow-initial`:"body-overflow-initial"},fe.createElement(Ee.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!xt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:fe.createElement(Xe.Z,null,fe.createElement(Bt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(Bt.Z,{onClick:()=>{var le,ze,qe=Pe.current.selection.first();if(ut.current=!ut.current,document.activeElement&&qe){let it=(ze=(le=document.activeElement)==null?void 0:le.value)==null?void 0:ze.trim();typeof it=="string"&&Pe.current.model.commit(function(je){je.set(qe.data,"text",it||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}Ht(xt+1)}},fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Se},fe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ve.flowChartWrp},fe.createElement("div",{style:{display:"flex",height:"100%"}},fe.createElement("div",{style:{width:"300px",height:"100%"}},fe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),fe.createElement("div",{style:{height:"calc(100% - 50px)"},className:ve.myPaletteDiv,ref:Ie})),fe.createElement("div",{style:{flex:1,position:"relative"}},fe.createElement("div",{ref:$e,style:{height:"80vh"}}))),fe.createElement("div",{className:"tr"},fe.createElement(We.ZP,{size:"large",onClick:Te,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var et=ke,pt=ge(5112),yt=ge(5871);const bt=pt.ZP.Group,$t={margin:"0 8px"};var wt=({callback:Se,onCancel:pe})=>{function Pe($e){Se($e)}return te.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:$t},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:$t},"\u884C\u6570"),te.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(yt.Z,null)),te.createElement("span",{style:$t},"\u5217\u6570"),te.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(yt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:$t},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(ce.default.Item,{name:"align"},te.createElement(bt,null,te.createElement(pt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(pt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(pt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(pt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(We.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},Tt=ge(78673),an=ge(5559),Pn=ge.n(an),Kt=(0,te.forwardRef)(({use3d:Se,width:pe,height:Pe,callback:$e,showSaveButton:Ie},ut)=>{const kt=(0,te.useRef)(),xt=(0,te.useRef)(),[Ht,en]=(0,te.useState)(!1),Te=(0,te.useRef)({id:kt,appName:"graphing",width:pe||1e3,height:Pe||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)(()=>{xt.current=new(Pn())(Te.current,!0),window.onload=function(){xt.current.inject("applet_container")}},[]);const le=()=>{var ze=window.ggbApplet.getPNGBase64(1,!0,72);return $e&&$e(ze),ze};return(0,te.useEffect)(()=>{Te.current.appName=Ht?"3D":"graphing",xt.current.inject("applet_container")},[Ht]),(0,te.useEffect)(()=>{en(Se)},[Se]),(0,te.useImperativeHandle)(ut,()=>({getImgData:le})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:kt}),te.createElement(Xe.Z,{align:"middle"},te.createElement(Bt.Z,{flex:1},te.createElement(Tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ht,onChange:ze=>en(ze)})),te.createElement(Bt.Z,null,te.createElement(We.ZP,{size:"large",onClick:le,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),on=ge(46531),rn=ge(1012),Ln=ge(8591);const mn="link",Sn="upload-image",Bn="add-flowchart",fn="draw-image",Tn="add-flowchart",sn="code-block",On="add-table",Xn="------------",ea={default:Xn,left:`:${Xn}`,center:`:${Xn}:`,right:`${Xn}:`};var ma=ge(50505),ia=(Se,pe,Pe)=>new Promise(($e,Ie)=>{var ut=Ht=>{try{xt(Pe.next(Ht))}catch(en){Ie(en)}},kt=Ht=>{try{xt(Pe.throw(Ht))}catch(en){Ie(en)}},xt=Ht=>Ht.done?$e(Ht.value):Promise.resolve(Ht.value).then(ut,kt);xt((Pe=Pe.apply(Se,pe)).next())});function sa(){}let Un=0;const oa=1e4,Sa="\u2581",Kn="@\u2581\u2581@",He="@\u2581@",Ke=`
|
|
**\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`,Ae=["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 gt(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}const tn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",bn={[tn+"-B"]:"bold",[tn+"-I"]:"italic"},_t={[mn]:"\u6DFB\u52A0\u94FE\u63A5",[sn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Sn]:"\u6DFB\u52A0\u56FE\u7247",[fn]:"\u6DFB\u52A0\u753B\u56FE",[Bn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[On]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ot=({defaultValue:Se="",onChange:pe,width:Pe="100%",height:$e=400,miniToolbar:Ie=!1,isFocus:ut=!1,watch:kt,insertTemp:xt,mode:Ht="markdown",id:en="markdown-editor-id",showResizeBar:Te=!1,noStorage:le=!1,showNullButton:ze=!1,showNullProgramButton:qe=!1,hidetoolBar:it=!1,fullScreen:je=!1,onBlur:st,onCMBeforeChange:ct,onFullScreen:zt,className:tt="",disablePaste:Mt=!1,disabled:vt=!1,disabledFill:Ct=!1,placeholder:Rt="",values:Vt="",extraUse:xn})=>{const[xe,gn]=(0,te.useState)(null),[Jt,Mn]=(0,te.useState)(Se),[Qt,_e]=(0,te.useState)(kt),[mt,Nt]=(0,te.useState)(je),[at,Wt]=(0,te.useState)(""),[Xt,dn]=(0,te.useState)(0),[ln,hn]=(0,te.useState)($e),[Vn,An]=(0,te.useState)(!1),Yn=(0,te.useRef)((0,rn.Z)()),ta=(0,te.useRef)(!1),In=(0,te.useRef)(),[Jn,Rn]=(0,te.useState)(0),[kn,Qn]=(0,te.useState)(0),Dn=(0,te.useRef)(),Cn=(0,te.useRef)(),qn=(0,te.useRef)(),pn=(0,te.useRef)(),Gn=()=>ia(void 0,null,function*(){var Pt;const nt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Yn.current}});(Pt=nt==null?void 0:nt.attachments)!=null&&Pt.length&&(console.log("cm:",xe,Dn),nt.attachments.map(lt=>{lt.content_type.indexOf("image")>-1?xe.replaceSelection(``):lt.content_type.indexOf("video")>-1?xe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):lt.content_type.indexOf("pdf")>-1?xe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type}&disposition=inline" target="_blank">${lt.name}</a>`):xe.replaceSelection(`[${lt.name}](${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type})`)}))});(0,te.useEffect)(()=>{const Pt=window.scrollY||window.pageYOffset;Mn(Vt),xe==null||xe.setValue(Vt),window.scrollTo(0,Pt)},[Vt]),(0,te.useEffect)(()=>{zt==null||zt(mt)},[mt]),(0,te.useEffect)(()=>{if(Dn.current){let Pt=function(lt,St){var Yt;if(Mt){St.preventDefault();return}const nn=St.clipboardData;if(nn){const yn=nn.types.toString(),wn=nn.items;if(yn==="Files"||nn.types.indexOf("Files")>-1){if(St.preventDefault(),Ht=="stex")return;try{let En=wn[1];((Yt=wn[0])==null?void 0:Yt.kind)==="file"&&(En=wn[0]);const Fn=En.getAsFile(),la=Fn.name.split(".").pop();(0,ye.I)(Fn,_n=>{var ya,wa,ba;_n.id?((ya=Fn==null?void 0:Fn.type)==null?void 0:ya.indexOf("image"))>-1?nt.replaceSelection(``):((wa=Fn==null?void 0:Fn.type)==null?void 0:wa.indexOf("video"))>-1?nt.replaceSelection(`<video width="100%" controls src="/api/attachments/${_n.id}"></video>`):((ba=Fn==null?void 0:Fn.type)==null?void 0:ba.indexOf("pdf"))>-1?nt.replaceSelection(`<a href="/api/attachments/${_n.id}?type=${Fn.type}&disposition=inline" target="_blank">${Fn.name}</a>`):Ae.includes(la)?nt.replaceSelection(`<a href="/api/attachments/${_n.id}?type=office&disposition=inline" target="_blank">${Fn.name}</a>`):nt.replaceSelection(`[${Fn.name}](/api/attachments/${_n.id}?type=${_n.content_type})`):(_n==null?void 0:_n.status)===401&&(Ln.ZP.warning((_n==null?void 0:_n.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(En){Ln.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const nt=Ze().fromTextArea(Dn.current,{mode:Ht,lineNumbers:!Ie,lineWrapping:!0,value:Se,autoCloseTags:!qe,autoCloseBrackets:!0});return nt.on("keyup",function(lt,St){St.keyCode===8&&(lt.getValue()==""?nt.setOption("placeholder",Rt):nt.setOption("placeholder",null))}),nt.on("keydown",function(lt,St){if(St.keyCode===8){var Yt=na(lt);Yt&&St.preventDefault()}}),ut&&nt.focus(),nt.on("paste",Pt),nt.on("dragleave",function(lt,St){Cn.current.classList.remove("mouse-hover-md")}),vt&&nt.on("beforeChange",function(lt,St){(St.origin==="paste"||St.origin==="+input")&&St.cancel()}),gn(nt),()=>{nt.off("paste",Pt)}}},[]);const jn=(0,te.useCallback)(()=>{if(Cn.current)try{}catch(Pt){console.log(Pt,"---- to set md editor body height")}},[ln,Cn,mt]);(0,te.useEffect)(()=>{function Pt(){let nt=new Re.Z(lt=>{for(let St of lt)(St.target.offsetHeight>0||St.target.offsetWidth>0)&&(jn(),xe.setSize("100%","100%"),xe.refresh())});return nt.observe(Dn.current.parentElement),nt}if(xe){const nt=Pt();return()=>{var lt,St;(lt=Dn.current)!=null&<.parentElement&&nt.unobserve((St=Dn.current)==null?void 0:St.parentElement)}}},[xe,jn]),(0,te.useEffect)(()=>{if(xe){let Pt=[];for(const[nt,lt]of Object.entries(bn)){let St={[nt]:()=>{un(lt)}};Pt.push(St),xe.addKeyMap(St)}return In.current=setInterval(()=>{ta.current&&Gn()},4e3),()=>{clearInterval(In.current);for(let nt of Pt)xe.removeKeyMap(nt)}}},[xe]),(0,te.useEffect)(()=>{je!==mt&&Nt(je)},[je]),(0,ma.Z)(()=>{if(!le&&Xt>0){let Pt=new Date().getTime(),nt=window.sessionStorage.getItem(en);Pt>=Xt+oa&&(!nt||nt!==Jt)&&(window.sessionStorage.setItem(en,Jt),An(!0))}},oa),(0,te.useEffect)(()=>{_e(kt)},[xe,kt]),(0,te.useEffect)(()=>{xe&&ut&&xe.focus()},[xe,ut]),(0,te.useEffect)(()=>{if(Qt&&xe){let Pt=function(lt){let St=lt.target;if(pn.current){let Yt=St.scrollTop/St.scrollHeight;pn.current.scrollTop=pn.current.scrollHeight*Yt}};const nt=xe.getScrollerElement();return nt.addEventListener("scroll",Pt),()=>{nt.removeEventListener("scroll",Pt)}}},[xe,Qt]),(0,te.useEffect)(()=>{if(xe&&ct){let Pt=function(nt,lt){ct(nt,lt)};return xe.on("beforeChange",Pt),()=>{xe.off("beforeChange",Pt)}}},[xe,ct]),(0,te.useEffect)(()=>{if(xe&&st){let Pt=function(){st(xe.getValue())};return xe.on("blur",Pt),()=>{xe.off("blur",Pt)}}},[xe,st]);function na(Pt,nt){var lt=Pt.getDoc(),St=lt.getCursor(),Yt=lt.getLine(St.line),nn=Yt.charAt(St.ch-1),yn=Yt.lastIndexOf("@\u2581@",St.ch),wn=Yt.lastIndexOf("@\u2581\u2581@",St.ch),En=yn>wn?yn:wn,Fn=yn>wn?3:4;if(Kn.indexOf(nn)===-1)return null;if(console.log("change1:",nt,Pt,Yt,St,En,yn,wn,nn),En>=0&&St.ch-En<5){var la=En+Fn;return lt.replaceRange("",{line:St.line,ch:En},{line:St.line,ch:la}),{line:St.line,ch:la}}return null}(0,te.useEffect)(()=>{if(xe){let Pt=function(nt,lt){const St=nt.getValue();Mn(St),dn(new Date().getTime()),nt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pe&&(qe?pe(St,Hn(St)):pe(St))};return xe.on("change",Pt),()=>{xe.off("change",Pt)}}},[xe,pe]),(0,te.useEffect)(()=>{if(xe)if(Se==null)xe.setValue(""),Mn("");else{const Pt=window.scrollY||window.pageYOffset;Se!==xe.getValue()&&(xe.setValue(Se),Mn(Se),xe.setCursor(vt?1:xe.lineCount(),0),window.scrollTo(0,Pt))}},[xe,Se]);const un=(0,te.useCallback)(Pt=>{const nt=xe.getCursor(),lt=xe.getSelection();let St=lt.split(`
|
|
`);switch(Pt){case"bold":return xe.replaceSelection("**"+lt+"**"),lt===""&&xe.setCursor(nt.line,nt.ch+2),xe.focus();case"italic":return xe.replaceSelection("*"+lt+"*"),lt===""&&xe.setCursor(nt.line,nt.ch+1),xe.focus();case"code":return xe.replaceSelection("`"+lt+"`"),lt===""&&xe.setCursor(nt.line,nt.ch+1),xe.focus();case"inline-latex":return Wt("inline-latex"),xe.focus();case"latex":return xe.replaceSelection("```latex\n"+lt+"\n```"),xe.setCursor(nt.line+1,lt.length+1),xe.focus();case"line-break":return xe.replaceSelection(`<br/>
|
|
`),xe.focus();case"list-ul":return lt===""?xe.replaceSelection("- "+lt):xe.replaceSelection(St.map(Yt=>Yt===""?"":`- ${Yt}`).join(`
|
|
`)),xe.focus();case"list-ol":return lt===""?xe.replaceSelection("1. "+lt):xe.replaceSelection(St.map((Yt,nn)=>Yt===""?"":`${nn+1}. ${Yt}`).join(`
|
|
`)),xe.focus();case"add-null-ch":return lt===""&&xe.setCursor(nt.line,nt.ch),xe.replaceSelection(Sa),xe.focus();case"add-signal":return lt===""&&xe.setCursor(nt.line,nt.ch),xe.replaceSelection(He),xe.focus();case"add-multiple":return lt===""&&xe.setCursor(nt.line,nt.ch),xe.replaceSelection(Kn),xe.focus();case"inster-template-1":return lt===""&&xe.setCursor(nt.line,nt.ch),xe.replaceSelection(Ke),xe.focus();case"eraser":return xe.setValue(""),xe.focus();case"trigger-watch":return _e(!Qt),xe.focus();case"trigger-full-screen":return Nt(!mt),xe.focus();case mn:Wt(mn);return;case sn:Wt(sn);return;case Sn:Wt(Sn);return;case fn:Wt(fn);return;case"maths-latex":Wt("maths-latex");return;case Bn:Wt(Bn);return;case On:Wt(On);return;default:throw new Error}},[xe,Qt,mt]),zn=(0,te.useCallback)((Pt,nt)=>{var lt,St,Yt,nn,yn,wn;switch(Wt(""),at){case mn:const{title:ya,link:wa}=Pt;return xe.replaceSelection(`[${ya}](${wa})`),xe.focus();case sn:const{language:ba,content:Fa}=Pt;return xe.replaceSelection(["```"+ba,Fa,"```"].join(`
|
|
`)),xe.focus();case"maths-latex":for(var En=atob(Pt),Fn=new Uint8Array(En.length),la=0;la<En.length;la++)Fn[la]=En.charCodeAt(la);var _n=new Blob([Fn],{type:"image/png"});(0,ye.I)(_n,ga=>{ga.id?xe.replaceSelection(``):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":xe.replaceSelection("`$$"+Pt+"$$`");break;case Sn:case fn:case Tn:const{src:vn,alt:jt}=Pt,Nn=nt,pa=(Yt=(St=(lt=Nn==null?void 0:Nn.name)==null?void 0:lt.split("."))==null?void 0:St.pop)==null?void 0:Yt.call(St);return((nn=Nn==null?void 0:Nn.type)==null?void 0:nn.indexOf("image"))>-1||!(Nn!=null&&Nn.type)?jt?xe.replaceSelection(``):xe.replaceSelection(``):((yn=Nn==null?void 0:Nn.type)==null?void 0:yn.indexOf("video"))>-1?xe.replaceSelection(`<video width="100%" controls src="${vn}"></video>`):((wn=Nn==null?void 0:Nn.type)==null?void 0:wn.indexOf("pdf"))>-1?xe.replaceSelection(`<a href="${vn}?type=${Nn.type}&disposition=inline" target="_blank">${Nn.name}</a>`):Ae.includes(pa)?xe.replaceSelection(`<a href="${vn}?type=office&disposition=inline" target="_blank">${Nn.name}</a>`):xe.replaceSelection(`[${Nn.name}](${vn})`),xe.focus();case On:const{row:aa,col:ha,align:va}=Pt;let ca=`
|
|
`;for(let ga=0;ga<aa;ga++){let Ba=[],Ca=[];for(let Ea=0;Ea<ha;Ea++)ga===1&&Ca.push(ea[va]),Ba.push(" ");ga===1&&(ca+=`| ${Ca.join(" | ")} |
|
|
`),ca+=`| ${Ba.join(ha===1?"":" | ")} |
|
|
`}return xe.replaceSelection(ca+`
|
|
`),xe.focus();default:throw new Error}},[xe,at]),Zn=(0,te.useMemo)(()=>{switch(at){case mn:return te.createElement(Dt,{callback:zn,onCancel:$n});case sn:return te.createElement(Ut.Z,{callback:zn,onCancel:$n});case Sn:return te.createElement(ye.Z,{callback:zn,onCancel:$n});case Bn:return te.createElement(et,{callback:zn,onCancel:$n});case On:return te.createElement(wt,{callback:zn,onCancel:$n});case"maths-latex":return te.createElement(Kt,{showSaveButton:!0,callback:zn});case"inline-latex":return te.createElement(on.Z,{showSaveButton:!0,callback:zn});default:return null}},[at]);function $n(){Wt("")}(0,te.useEffect)(()=>{if(qn.current){let Pt=function(yn){Yt=!0,nn=yn.pageY},nt=function(){Yt=!1},lt=function(yn){if(Yt){let wn=yn.pageY-nn;wn<0&&(wn=0),wn>300&&(wn=300);let En=$e+wn+"px";hn(En)}},St=qn.current,Yt=!1,nn=0;return St.addEventListener("mousedown",Pt),document.addEventListener("mousemove",lt),document.addEventListener("mouseup",nt),()=>{St.removeEventListener("mousedown",Pt),document.removeEventListener("mousemove",lt),document.removeEventListener("mouseup",nt)}}},[xe,qn]),(0,te.useEffect)(()=>{hn($e)},[$e]);const La=gt(Pe),Pa=gt(ln),fa={width:La,height:Pa},ra=(0,te.useMemo)(()=>{if(Xt){let Pt=new Date(Xt),nt=Pt.getHours(),lt=Pt.getMinutes(),St=Pt.getSeconds();return nt=nt<10?"0"+nt:nt,lt=lt<10?"0"+lt:lt,St=St<10?"0"+St:St,`${nt}:${lt}:${St}`}return 0},[Xt]),Hn=Pt=>{const nt=[];if(qe){let lt=-1;Pt=Pt.replace(/(@▁▁@|@▁@)/g,function(St,Yt,nn){nt.push({multiLine:St!==He})})}return nt};function Wn(){window.sessionStorage.removeItem(en),An(!1),dn(0)}function ua(){An(!1),dn(0),xe.setValue(window.sessionStorage.getItem(en))}(0,te.useEffect)(()=>{_t[at]&&at!==fn&&at!==Bn&&setTimeout(()=>{const Pt=document.getElementsByClassName("markdown-popup-form")[0],nt=window.innerWidth/2-Pt.offsetWidth/2,lt=window.innerHeight/2-Pt.offsetHeight/2;Rn(nt),Qn(lt)},0)},[at]);const da=Pt=>{Pt.preventDefault();const nt=Pt.clientX-Jn,lt=Pt.clientY-kn;document.body.onmousemove=St=>{let Yt=St.clientX-nt,nn=St.clientY-lt;const yn=document.getElementsByClassName("markdown-popup-form")[0],wn=window.innerWidth-yn.offsetWidth,En=window.innerHeight-yn.offsetHeight;Yt=Math.max(0,Math.min(Yt,wn)),nn=Math.max(0,Math.min(nn,En)),xa(St.clientX,St.clientY,nt,lt)&&(Rn(Yt),Qn(nn))},document.body.onmouseup=function(){document.body.onmousemove=null}},xa=(Pt,nt,lt,St)=>{const Yt=document.body.clientHeight,nn=document.body.clientWidth;return Pt<20&<>Pt||Pt>nn-20&<<Pt||nt<20&&St>nt||nt>Yt-20&&St<nt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Cn},te.createElement("div",{className:`markdown-editor-container ${tt} ${Qt?"on-preview":""} ${Ie?"mini":""} ${mt?"full-screen":""}`,style:fa},te.createElement(ie,{insertTemp:xt,watch:Qt,fullScreen:mt,showNullButton:ze,showNullProgramButton:qe,onActionCallback:un,hidetoolBar:it,extraUse:xn}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Dn,placeholder:Rt})),Qt?te.createElement("div",{ref:pn,className:"preview-container"},Ht==="stex"&&te.createElement(Be,{value:Jt}),Ht!=="stex"&&te.createElement(Ve.Z,{disabledFill:Ct,showProgramFill:qe,value:Jt})):null))),Te?te.createElement("a",{ref:qn,className:"editor-resize"}):null,at===fn&&te.createElement(ht,{callback:zn,onCancel:$n}),at===Bn&&te.createElement(et,{callback:zn,onCancel:$n}),te.createElement(ue.Z,null,_t[at]&&at!==fn&&at!==Bn?te.createElement(Ee.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Jn,top:kn},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:da},_t[at]),open:!0,onCancel:$n,footer:null,destroyOnClose:!0,width:at===Bn?"1200px":null,height:at===Bn?"80vh":null,className:"markdown-popup-form"},Zn):null))}},56030:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return ee},I:function(){return oe}});var te=ge(78241),he=ge(8591),Ze=ge(92832),Re=ge(3113),se=ge(49291),Ne=ge(59301),me=ge(73898),Me=ge(59301),be=Object.defineProperty,De=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(re,ie,ue)=>ie in re?be(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ue}):re[ie]=ue,y=(re,ie)=>{for(var ue in ie||(ie={}))Ce.call(ie,ue)&&a(re,ue,ie[ue]);if(Be)for(var ue of Be(ie))ae.call(ie,ue)&&a(re,ue,ie[ue]);return re},x=(re,ie)=>De(re,Ve(ie));const{useForm:b}=te.default,E={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:re,onCancel:ie})=>{const[ue]=b();let ce=(0,Ne.useRef)();function Ge(Et){re(Et,ce.current)}function We(Et,Zt){if(Et.status===-1){he.ZP.error(Et.message);return}ue.setFieldsValue({src:`/api/attachments/${Et.id}`,type:Zt.type})}function ft(Et){let Zt=Et.target.files[0];ce.current=Zt,oe(Zt,We)}return Me.createElement(te.default,x(y({form:ue},z),{className:"upload-image-panel",onFinish:Ge,style:{width:470,overflow:"hidden"}}),Me.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Me.createElement("div",{className:"flex-container"},Me.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Me.createElement(Ze.default,{style:E})),Me.createElement(ne,{onFileChange:ft}))),Me.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Me.createElement(Ze.default,{style:{width:264}})),Me.createElement(te.default.Item,{style:{textAlign:"right"}},Me.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Me.createElement(Re.ZP,{type:"default",onClick:ie},"\u53D6\u6D88")))};function ne({onFileChange:re}){return Me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Me.createElement("input",{type:"file",onChange:re}))}function oe(re,ie){if(!re)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,me.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ue=new FormData;ue.append("editormd-image-file",re),ue.append("file_param_name","editormd-image-file"),ue.append("byxhr","true");var ce=new window.XMLHttpRequest;ce.withCredentials=!0,ce.addEventListener("load",function(Ge){ie(JSON.parse(Ge.target.responseText),re)},!1),ce.addEventListener("error",function(Ge){console.error(Ge)},!1),ce.open("POST",`${se.KI}/api/attachments.json`),ce.send(ue)}},19647:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return Ze}});var te=ge(59301),he=ge(4676);class Ze extends te.Component{constructor(se){super(se);const Ne=window.document;this.node=Ne.createElement("div"),Ne.body.appendChild(this.node)}render(){const{children:se}=this.props;return(0,he.createPortal)(se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50505:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return he}});var te=ge(59301);function he(Ze,Re){const se=(0,te.useRef)();(0,te.useEffect)(()=>{se.current=Ze}),(0,te.useEffect)(()=>{function Ne(){se.current()}if(Re!==null){let me=setInterval(Ne,Re);return()=>clearInterval(me)}},[Re])}},40813:function(we,rt,ge){"use strict";ge.r(rt),ge.d(rt,{default:function(){return Kn}});var te=ge(59301),he=ge(24459),Ze=ge(38446),Re=ge(95237),se=ge(43604),Ne=ge(3113),me={wrap:"wrap___oiJRJ",head:"head___zCLJu",recommendItem:"recommendItem___Z46_0",buttonWrap:"buttonWrap___Gol4S",privateMessage:"privateMessage___UCiuy",flex1:"flex1___FVk7y",mWidth147:"mWidth147___f_pcl"},Me=ge(99209),be=Object.defineProperty,De=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(He,Ke,Ae)=>Ke in He?be(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):He[Ke]=Ae,y=(He,Ke)=>{for(var Ae in Ke||(Ke={}))Ce.call(Ke,Ae)&&a(He,Ae,Ke[Ae]);if(Be)for(var Ae of Be(Ke))ae.call(Ke,Ae)&&a(He,Ae,Ke[Ae]);return He},x=(He,Ke)=>De(He,Ve(Ke)),b=(He,Ke)=>{var Ae={};for(var gt in He)Ce.call(He,gt)&&Ke.indexOf(gt)<0&&(Ae[gt]=He[gt]);if(He!=null&&Be)for(var gt of Be(He))Ke.indexOf(gt)<0&&ae.call(He,gt)&&(Ae[gt]=He[gt]);return Ae},E=(He,Ke,Ae)=>new Promise((gt,qt)=>{var tn=Ot=>{try{_t(Ae.next(Ot))}catch(Se){qt(Se)}},bn=Ot=>{try{_t(Ae.throw(Ot))}catch(Se){qt(Se)}},_t=Ot=>Ot.done?gt(Ot.value):Promise.resolve(Ot.value).then(tn,bn);_t((Ae=Ae.apply(He,Ke)).next())});const z=He=>{var Ke=He,{user:Ae,forumsDetail:gt,globalSetting:qt,loading:tn,dispatch:bn}=Ke,_t=b(Ke,["user","forumsDetail","globalSetting","loading","dispatch"]),Ot,Se,pe,Pe;const{author_info:$e,memo:Ie,recommend_shixuns:ut}=gt.forumsDetailData||{},kt=()=>E(void 0,null,function*(){($e!=null&&$e.watched?yield(0,Me.Sr)({user_id:$e.user_id}):yield(0,Me.YP)({user_id:$e.user_id}))&&bn({type:"forumsDetail/setForumsDetailData",payload:x(y({},gt.forumsDetailData),{author_info:x(y({},$e),{watched:!($e!=null&&$e.watched)})})})});return te.createElement("section",{className:me.wrap},te.createElement("aside",{className:"ml20"},te.createElement("div",{className:`bg-white pt40 pb40 pl20 pr20 ${me.head}`},te.createElement("a",{href:`/users/${$e==null?void 0:$e.login}`,target:"_blank"},($e==null?void 0:$e.image_url)&&te.createElement("img",{src:`${Ze.Z.API_SERVER}/images/${$e==null?void 0:$e.image_url}`})),te.createElement("div",{className:"tc font20"},$e==null?void 0:$e.username),te.createElement("div",{className:"tc c-grey-999"},$e==null?void 0:$e.identity),((Ot=Ae.userInfo)==null?void 0:Ot.user_id)!==($e==null?void 0:$e.user_id)&&te.createElement(Re.Z,{justify:"center",className:`mt30 ${me.buttonWrap}`},te.createElement(se.Z,null,te.createElement(Ne.ZP,{type:"primary",className:"mr10",onClick:kt},$e!=null&&$e.watched?"\u53D6\u6D88\u5173\u6CE8":"\u5173\u6CE8")),te.createElement(se.Z,null,te.createElement(Ne.ZP,{className:me.privateMessage,href:`/messages/${(Se=Ae.userInfo)==null?void 0:Se.login}/message_detail?target_ids=${$e==null?void 0:$e.user_id}`,target:"_blank"},"\u79C1\u4FE1")))),!!((pe=Ie==null?void 0:Ie.tag)!=null&&pe.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 ${me.tag}`},(Pe=Ie==null?void 0:Ie.tag)==null?void 0:Pe.map((xt,Ht)=>te.createElement("span",{key:Ht,className:"c-light-primary mr10"},xt)))),te.createElement("div",{className:"pt10 pb10 pl10 pr10"},te.createElement("div",{className:"font16 mb20"},"\u63A8\u8350\u5B9E\u8BAD"),te.createElement("div",{className:me.recommend},ut==null?void 0:ut.map(xt=>te.createElement("div",{className:me.recommendItem},te.createElement("a",{href:`/shixuns/${xt.identifier}/challenges`,target:"_blank"},te.createElement("img",{alt:xt.id,src:`${xt.image_url}`})),te.createElement("div",{className:`${me.flex1} ml10`},te.createElement("a",{href:`/shixuns/${xt.identifier}/challenges`,target:"_blank",title:xt.name,className:`${me.mWidth147} multi-llipsis1e c-grey-666 mb10`},xt.name),te.createElement("div",{className:"c-grey-999"},xt.myshixuns_count," \u4EBA\u5B66\u4E60"))))))))};var ee=(0,he.connect)(({user:He,forumsDetail:Ke,loading:Ae,globalSetting:gt})=>({user:He,forumsDetail:Ke,globalSetting:gt,loading:Ae.models.forumsDetail}))(z),ne=ge(61186),oe=ge.n(ne),re=ge(99325),ie=ge(8591),ue=ge(43418),ce=ge(92832),Ge=ge(20834),We=ge(66104),ft=ge(38854),Et=ge(6848),Zt=ge(64726),Le=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"},ot=Object.defineProperty,Je=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Ut=(He,Ke,Ae)=>Ke in He?ot(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):He[Ke]=Ae,ye=(He,Ke)=>{for(var Ae in Ke||(Ke={}))It.call(Ke,Ae)&&Ut(He,Ae,Ke[Ae]);if(Gt)for(var Ae of Gt(Ke))Dt.call(Ke,Ae)&&Ut(He,Ae,Ke[Ae]);return He},Ee=(He,Ke)=>Je(He,dt(Ke)),Xe=(He,Ke,Ae)=>new Promise((gt,qt)=>{var tn=Ot=>{try{_t(Ae.next(Ot))}catch(Se){qt(Se)}},bn=Ot=>{try{_t(Ae.throw(Ot))}catch(Se){qt(Se)}},_t=Ot=>Ot.done?gt(Ot.value):Promise.resolve(Ot.value).then(tn,bn);_t((Ae=Ae.apply(He,Ke)).next())});oe().locale("ZH-cn");function Lt({user:He,vlist:Ke=[],dispatch:Ae,params:gt,id:qt,memo_replies:tn,forumsDetail:bn}){return te.createElement("aside",{className:Ye.comment},Ke.map(function(_t,Ot){var Se,pe;return te.createElement(Re.Z,{key:Ot,className:Ye.commentItem},te.createElement(se.Z,{span:24},te.createElement(Re.Z,null,te.createElement(se.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===((Se=He.userInfo)==null?void 0:Se.user_id)||_t.user_login===((pe=He.userInfo)==null?void 0:pe.login))&&te.createElement(se.Z,{className:"forums-comment-delete",style:{display:"none"}},te.createElement(Et.Z,{title:"\u5220\u9664"},te.createElement(Le.Z,{className:"current",onClick:()=>{ue.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:()=>Xe(this,null,function*(){const Pe=yield(0,Me.sW)({id:_t.id}),$e=tn.find(Ie=>Ie.id===qt).children.filter(Ie=>Ie.id!==_t.id);tn.find(Ie=>Ie.id===qt).children=$e,Ae({type:"forumsDetail/setForumsDetailData",payload:Ee(ye({},bn.forumsDetailData),{memo_replies:[...tn]})})})})}}))))),te.createElement(se.Z,null,te.createElement(re.Z,{value:_t.content})))}))}var Ue=Lt,ht=ge(88230),de=Object.defineProperty,Qe=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ve=(He,Ke,Ae)=>Ke in He?de(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):He[Ke]=Ae,fe=(He,Ke)=>{for(var Ae in Ke||(Ke={}))Bt.call(Ke,Ae)&&ve(He,Ae,Ke[Ae]);if(At)for(var Ae of At(Ke))Fe.call(Ke,Ae)&&ve(He,Ae,Ke[Ae]);return He},Oe=(He,Ke)=>Qe(He,Ft(Ke)),ke=(He,Ke)=>{var Ae={};for(var gt in He)Bt.call(He,gt)&&Ke.indexOf(gt)<0&&(Ae[gt]=He[gt]);if(He!=null&&At)for(var gt of At(He))Ke.indexOf(gt)<0&&Fe.call(He,gt)&&(Ae[gt]=He[gt]);return Ae},et=(He,Ke,Ae)=>new Promise((gt,qt)=>{var tn=Ot=>{try{_t(Ae.next(Ot))}catch(Se){qt(Se)}},bn=Ot=>{try{_t(Ae.throw(Ot))}catch(Se){qt(Se)}},_t=Ot=>Ot.done?gt(Ot.value):Promise.resolve(Ot.value).then(tn,bn);_t((Ae=Ae.apply(He,Ke)).next())});oe().locale("ZH-cn");const pt=(He,Ke)=>{var Ae=He,{user:gt,forumsDetail:qt,globalSetting:tn,loading:bn,dispatch:_t,handleClick:Ot}=Ae,Se=ke(Ae,["user","forumsDetail","globalSetting","loading","dispatch","handleClick"]);const{memo:pe,memo_replies:Pe}=qt.forumsDetailData||{},$e=(0,he.useParams)(),[Ie,ut]=(0,te.useState)(""),[kt,xt]=(0,te.useState)(""),[Ht,en]=(0,te.useState)(-1),[Te,le]=(0,te.useState)(!1),[ze,qe]=(0,te.useState)(1),[it,je]=(0,te.useState)(!1);(0,te.useImperativeHandle)(Ke,()=>({onMdFouch:zt})),(0,te.useEffect)(()=>{le((pe==null?void 0:pe.replies_count)>10)},[pe==null?void 0:pe.replies_count]);const st=()=>et(void 0,null,function*(){var tt;const Mt=ze+1;qe(Mt);const vt=yield(0,Me.z5)({id:$e.memoId,page:Mt});vt!=null&&vt.memo_replies&&(_t({type:"forumsDetail/setForumsDetailData",payload:Oe(fe({},qt.forumsDetailData),{memo_replies:[...Pe,...vt.memo_replies]})}),le(((tt=vt.memo_replies)==null?void 0:tt.length)===10))}),ct=tt=>{var Mt,vt,Ct,Rt;return Oe(fe({},tt),{image_url:(Mt=gt.userInfo)==null?void 0:Mt.image_url,children:[],user_id:(vt=gt.userInfo)==null?void 0:vt.user_id,user_login:(Ct=gt.userInfo)==null?void 0:Ct.login,username:(Rt=gt.userInfo)==null?void 0:Rt.username,time:`${(0,ht.li)((new Date().getTime()-new Date(tt.created_at).getTime())/1e3)}\u524D`})},zt=()=>{je(!0)};return te.createElement("section",{className:Ye.wrap},!!(Pe!=null&&Pe.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",pe.replies_count,"\uFF09")),te.createElement("aside",{className:Ye.replyList},Pe==null?void 0:Pe.map(function(tt,Mt){var vt;return te.createElement(Re.Z,{gutter:[12,12],key:Mt},te.createElement(se.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:`${Ze.Z.IMG_SERVER}/images/${tt==null?void 0:tt.image_url}`}))),te.createElement(se.Z,{flex:"1"},te.createElement(Re.Z,{align:"middle"},te.createElement(se.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(se.Z,{span:24},te.createElement("div",{onClick:Ot},te.createElement(re.Z,{value:tt.content}))),!!((vt=tt==null?void 0:tt.children)!=null&&vt.length)&&te.createElement(Ue,{user:gt,id:tt==null?void 0:tt.id,vlist:tt==null?void 0:tt.children,dispatch:_t,params:$e,memo_replies:Pe,forumsDetail:qt}),te.createElement(se.Z,{span:24,className:"mt5 c-light-black"},Ht===Mt?te.createElement("aside",null,te.createElement(Zt.Z,{onChange:Ct=>{xt(Ct)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),te.createElement(Re.Z,null,te.createElement(se.Z,{span:24,className:"tr"},te.createElement(Ne.ZP,{type:"primary",size:"middle",onClick:()=>et(this,null,function*(){if(kt==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Ct=yield(0,Me.ts)({parent_id:tt.id,content:kt});xt(null),Ct&&(en(-1),Pe.find(Rt=>Rt.id===Ct.parent_id).children.push(ct(Ct)),_t({type:"forumsDetail/setForumsDetailData",payload:Oe(fe({},qt.forumsDetailData),{memo:Oe(fe({},pe),{replies_count:pe.replies_count+1}),memo_replies:[...Pe]})}))}})},"\u53D1\u9001")))):te.createElement("div",{className:"tr"},te.createElement("span",{className:"iconfont icon-huifu1 mr15 ml30 current",onClick:()=>en(Mt)}),te.createElement(Et.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:()=>et(this,null,function*(){const Ct=yield(0,Me.vL)({id:tt.id,container_type:"Memo",type:tt.user_praise?0:1});(Ct==null?void 0:Ct.praise_count)>=0&&(Pe.find(Rt=>Rt.id===tt.id).user_praise=!tt.user_praise,Pe.find(Rt=>Rt.id===tt.id).praise_count=Ct==null?void 0:Ct.praise_count,_t({type:"forumsDetail/setForumsDetailData",payload:Oe(fe({},qt.forumsDetailData),{memo_replies:[...Pe]})}))})}),tt.praise_count>0?tt.praise_count:"")))))))}))),Te&&te.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center"}},te.createElement(Re.Z,{justify:"space-between"},te.createElement(se.Z,null),te.createElement(se.Z,null,Te&&te.createElement("a",{className:"c-black",onClick:st},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA")))),te.createElement("aside",{className:Ye.reply},te.createElement(Zt.Z,{onBlur:()=>je(!1),isFocus:it,defaultValue:Ie,id:"writeForumsReviewId",onChange:tt=>{ut(tt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(Re.Z,null,te.createElement(se.Z,{flex:"1"}),te.createElement(se.Z,null,te.createElement(Ne.ZP,{type:"primary",size:"middle",onClick:()=>et(void 0,null,function*(){if(Ie==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const tt=yield(0,Me.ts)({parent_id:pe.id,content:Ie});ut(null),tt&&_t({type:"forumsDetail/setForumsDetailData",payload:Oe(fe({},qt.forumsDetailData),{memo:Oe(fe({},pe),{replies_count:pe.replies_count+1}),memo_replies:[ct(tt),...Pe]})})}})},"\u53D1\u9001")))))};var yt=(0,he.connect)(({user:He,forumsDetail:Ke,loading:Ae,globalSetting:gt})=>({user:He,forumsDetail:Ke,globalSetting:gt,loading:Ae.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.forwardRef)(pt)),bt={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"},$t=ge(87169),wt=ge(85469),Tt=ge(50484),an=Object.defineProperty,Pn=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,Ln=(He,Ke,Ae)=>Ke in He?an(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):He[Ke]=Ae,mn=(He,Ke)=>{for(var Ae in Ke||(Ke={}))on.call(Ke,Ae)&&Ln(He,Ae,Ke[Ae]);if(Kt)for(var Ae of Kt(Ke))rn.call(Ke,Ae)&&Ln(He,Ae,Ke[Ae]);return He},Sn=(He,Ke)=>Pn(He,cn(Ke)),Bn=(He,Ke)=>{var Ae={};for(var gt in He)on.call(He,gt)&&Ke.indexOf(gt)<0&&(Ae[gt]=He[gt]);if(He!=null&&Kt)for(var gt of Kt(He))Ke.indexOf(gt)<0&&rn.call(He,gt)&&(Ae[gt]=He[gt]);return Ae},fn=(He,Ke,Ae)=>new Promise((gt,qt)=>{var tn=Ot=>{try{_t(Ae.next(Ot))}catch(Se){qt(Se)}},bn=Ot=>{try{_t(Ae.throw(Ot))}catch(Se){qt(Se)}},_t=Ot=>Ot.done?gt(Ot.value):Promise.resolve(Ot.value).then(tn,bn);_t((Ae=Ae.apply(He,Ke)).next())});const Tn={5:"\u6280\u672F\u5206\u4EAB",3:"\u64CD\u4F5C\u6307\u5357",16:"\u901A\u77E5\u516C\u544A"},sn=He=>{var Ke=He,{user:Ae,forumsDetail:gt,globalSetting:qt,loading:tn,dispatch:bn}=Ke,_t=Bn(Ke,["user","forumsDetail","globalSetting","loading","dispatch"]),Ot,Se,pe,Pe;const{author_info:$e,memo:Ie,attachments_list:ut}=gt.forumsDetailData||{},kt=(0,te.useRef)(),xt=(0,te.useRef)(),Ht=()=>fn(void 0,null,function*(){const je={id:Ie.id,sticky:Ie.sticky?0:1},st=yield(0,Me.B0)(je);(st==null?void 0:st.status)===0&&bn({type:"forumsDetail/setForumsDetailData",payload:Sn(mn({},gt.forumsDetailData),{memo:Sn(mn({},Ie),{sticky:!(Ie!=null&&Ie.sticky)})})})}),en=()=>fn(void 0,null,function*(){const je=yield(0,Me.sW)({id:Ie==null?void 0:Ie.id});(je==null?void 0:je.status)===0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),he.history.push("/forums")),(je==null?void 0:je.status)===-1&&he.history.push("/forums")}),Te=()=>fn(void 0,null,function*(){ue.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(ce.default,{defaultValue:kt.current,onChange:je=>kt.current=je.target.value})),onOk:()=>fn(void 0,null,function*(){const je=yield(0,Me.eh)({id:Ie==null?void 0:Ie.id,container_type:"Memo",score:kt.current?Number(kt.current):0,user_id:$e==null?void 0:$e.user_id});if(kt.current=null,(je==null?void 0:je.code)>0){bn({type:"forumsDetail/setForumsDetailData",payload:Sn(mn({},gt.forumsDetailData),{memo:Sn(mn({},Ie),{reward:je==null?void 0:je.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")})})}),le=()=>{xt.current.onMdFouch&&xt.current.onMdFouch()},ze=()=>fn(void 0,null,function*(){const je=yield(0,Me.vL)({id:Ie.id,container_type:"Memo",type:1});(je==null?void 0:je.praise_count)>=0&&bn({type:"forumsDetail/setForumsDetailData",payload:Sn(mn({},gt.forumsDetailData),{memo:Sn(mn({},Ie),{user_praise:!(Ie!=null&&Ie.user_praise),memo_praise_count:je==null?void 0:je.praise_count})})})}),qe=te.createElement(Ge.default,{className:bt.menu},((Ot=Ae.userInfo)==null?void 0:Ot.admin)&&(Ie==null?void 0:Ie.sticky)&&te.createElement(Ge.default.Item,null,te.createElement("a",{onClick:()=>Ht()},"\u53D6\u6D88\u7F6E\u9876")),((Se=Ae.userInfo)==null?void 0:Se.admin)&&!(Ie!=null&&Ie.sticky)&&te.createElement(Ge.default.Item,null,te.createElement("a",{onClick:()=>Ht()},"\u7F6E\xA0\xA0\u9876")),te.createElement(Ge.default.Item,null,te.createElement(he.Link,{to:`/forums/${Ie==null?void 0:Ie.id}/edit`},"\u7F16\xA0\xA0\u8F91")),te.createElement(Ge.default.Item,null,te.createElement("a",{onClick:()=>{ue.default.confirm({title:"\u63D0\u793A",icon:te.createElement($t.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:()=>{en()},cancelText:"\u53D6\u6D88"})}},"\u5220\xA0\xA0\u9664"))),it=je=>{let{nodeName:st,src:ct}=je.target;st==="IMG"&&(Tt.Z.publish("preview-image",ct),console.log("src:",ct))};return(0,te.useEffect)(()=>{},[]),te.createElement("section",{className:bt.wrap},te.createElement(We.Z,{separator:"/",className:"mb5"},te.createElement(We.Z.Item,null,te.createElement(he.Link,{to:`/forums/categories/${Ie==null?void 0:Ie.forum_id}`},Tn[Ie==null?void 0:Ie.forum_id])),te.createElement(We.Z.Item,null,"\u8BE6\u60C5")),te.createElement("header",{className:`bg-white pt40 pb40 pl30 pr30 ${bt.header}`},te.createElement(Re.Z,{align:"middle"},te.createElement(se.Z,{flex:1,className:"font24 mb5"},te.createElement("span",{className:bt.title},Ie==null?void 0:Ie.subject),(Ie==null?void 0:Ie.sticky)&&te.createElement("span",{className:bt.top},"\u7F6E\u9876")),te.createElement(se.Z,null,(((pe=Ae.userInfo)==null?void 0:pe.admin)||((Pe=Ae.userInfo)==null?void 0:Pe.user_id)===($e==null?void 0:$e.user_id))&&te.createElement(ft.Z,{dropdownRender:()=>qe},te.createElement("i",{className:"fa fa-bars font-16 current c-grey-bcb"})))),te.createElement(Re.Z,{align:"middle",className:"font14"},te.createElement(se.Z,{flex:1,className:"c-grey-999"},te.createElement("span",null,oe()(Ie==null?void 0:Ie.time).fromNow()," \u66F4\u65B0")),te.createElement(se.Z,{className:"c-grey-999"},te.createElement("span",{className:`pr10 pl10 ${Ie!=null&&Ie.replies_count?bt.line:""}`},te.createElement("i",{className:"iconfont icon-liulanyan font18 mr5"}),Ie==null?void 0:Ie.viewed_count),!!(Ie!=null&&Ie.replies_count)&&te.createElement(Et.Z,{placement:"bottom",title:"\u5199\u8BC4\u8BBA"},te.createElement("span",{className:"current pl10",onClick:le},te.createElement("i",{className:"iconfont icon-huifu1 font18 mr5"}),Ie==null?void 0:Ie.replies_count))))),te.createElement("main",{className:"bg-white pt40 pb40 pl40 pr40"},te.createElement("div",{onClick:it},te.createElement(re.Z,{value:Ie==null?void 0:Ie.content})),te.createElement("div",{className:"bg-white pl40 pr40 mt40"},te.createElement("div",{className:`mt10 mb20 ${bt.flexCenter}`},te.createElement("div",{className:`${bt.like} ${Ie!=null&&Ie.user_praise?"":bt.canLike}`,onClick:ze},te.createElement("i",{className:"iconfont icon-dianzan font18"}),te.createElement("br",null),te.createElement("span",null,Ie==null?void 0:Ie.memo_praise_count)))),!!(ut!=null&&ut.length)&&te.createElement("div",{className:"mt40"},ut==null?void 0:ut.map(je=>te.createElement("div",{className:`c-grey-888 ${bt.flexCenter}`},te.createElement("i",{className:"iconfont icon-fujian mr10 font14 c-green-29b"}),te.createElement("a",{href:je==null?void 0:je.url,title:je==null?void 0:je.title,className:`${bt.attachmentName} mr10`},je==null?void 0:je.title),te.createElement("span",{className:"font12 c-grey-666 mt3"},je==null?void 0:je.filesize))))),te.createElement(yt,{ref:xt,handleClick:it}),te.createElement(wt.Z,null))};var On=(0,he.connect)(({user:He,forumsDetail:Ke,loading:Ae,globalSetting:gt})=>({user:He,forumsDetail:Ke,globalSetting:gt,loading:Ae.effects}))(sn),Xn={flex:"flex___fgmSn"},ea=ge(71418),ma=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,Un=(He,Ke)=>{var Ae={};for(var gt in He)ia.call(He,gt)&&Ke.indexOf(gt)<0&&(Ae[gt]=He[gt]);if(He!=null&&ma)for(var gt of ma(He))Ke.indexOf(gt)<0&&sa.call(He,gt)&&(Ae[gt]=He[gt]);return Ae},oa=(He,Ke,Ae)=>new Promise((gt,qt)=>{var tn=Ot=>{try{_t(Ae.next(Ot))}catch(Se){qt(Se)}},bn=Ot=>{try{_t(Ae.throw(Ot))}catch(Se){qt(Se)}},_t=Ot=>Ot.done?gt(Ot.value):Promise.resolve(Ot.value).then(tn,bn);_t((Ae=Ae.apply(He,Ke)).next())});const Sa=He=>{var Ke=He,{forumsDetail:Ae,globalSetting:gt,loading:qt,dispatch:tn}=Ke,bn=Un(Ke,["forumsDetail","globalSetting","loading","dispatch"]);const _t=(0,he.useParams)(),[Ot,Se]=(0,te.useState)(!1);(0,te.useEffect)(()=>{pe()},[_t.memoId]);const pe=()=>oa(void 0,null,function*(){Se(!0);let Pe=yield tn({type:"forumsDetail/getForumsDetailData",payload:{id:_t.memoId}});Se(!1)});return te.createElement(ea.Z,{spinning:Ot},te.createElement("section",{className:`edu-container mb20 mt30 ${Xn.flex}`},te.createElement(On,null),te.createElement(ee,null)))};var Kn=(0,he.connect)(({forumsDetail:He,loading:Ke,globalSetting:Ae})=>({forumsDetail:He,globalSetting:Ae,loading:Ke.models.forumsDetail}))(Sa)},66104:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return Zt}});var te=ge(92310),he=ge.n(te),Ze=ge(11592),Re=ge(26112),se=ge(59301),Ne=ge(92343),me=ge(36355),Me=ge(84105),be=ge(91857);const De=Le=>{let{children:Ye}=Le;const{getPrefixCls:ot}=se.useContext(me.E_),Je=ot("breadcrumb");return se.createElement("li",{className:`${Je}-separator`,"aria-hidden":"true"},Ye===""?Ye:Ye||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Ve=De,Be=function(Le,Ye){var ot={};for(var Je in Le)Object.prototype.hasOwnProperty.call(Le,Je)&&Ye.indexOf(Je)<0&&(ot[Je]=Le[Je]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Je=Object.getOwnPropertySymbols(Le);dt<Je.length;dt++)Ye.indexOf(Je[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Je[dt])&&(ot[Je[dt]]=Le[Je[dt]]);return ot};function Ce(Le,Ye){if(Le.title===void 0||Le.title===null)return null;const ot=Object.keys(Ye).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${ot})`,"g"),(Je,dt)=>Ye[dt]||Je)}function ae(Le,Ye,ot,Je){if(ot==null)return null;const{className:dt,onClick:Gt}=Ye,It=Be(Ye,["className","onClick"]),Dt=Object.assign(Object.assign({},(0,Re.Z)(It,{data:!0,aria:!0})),{onClick:Gt});return Je!==void 0?se.createElement("a",Object.assign({},Dt,{className:he()(`${Le}-link`,dt),href:Je}),ot):se.createElement("span",Object.assign({},Dt,{className:he()(`${Le}-link`,dt)}),ot)}function a(Le,Ye){return(Je,dt,Gt,It,Dt)=>{if(Ye)return Ye(Je,dt,Gt,It);const Ut=Ce(Je,dt);return ae(Le,Je,Ut,Dt)}}var y=function(Le,Ye){var ot={};for(var Je in Le)Object.prototype.hasOwnProperty.call(Le,Je)&&Ye.indexOf(Je)<0&&(ot[Je]=Le[Je]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Je=Object.getOwnPropertySymbols(Le);dt<Je.length;dt++)Ye.indexOf(Je[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Je[dt])&&(ot[Je[dt]]=Le[Je[dt]]);return ot};const x=Le=>{const{prefixCls:Ye,separator:ot="/",children:Je,menu:dt,overlay:Gt,dropdownProps:It,href:Dt}=Le,ye=(Ee=>{if(dt||Gt){const Xe=Object.assign({},It);if(dt){const Lt=dt||{},{items:Ue}=Lt,ht=y(Lt,["items"]);Xe.menu=Object.assign(Object.assign({},ht),{items:Ue==null?void 0:Ue.map((de,Qe)=>{var{key:Ft,title:At,label:Bt,path:Fe}=de,ve=y(de,["key","title","label","path"]);let fe=Bt!=null?Bt:At;return Fe&&(fe=se.createElement("a",{href:`${Dt}${Fe}`},fe)),Object.assign(Object.assign({},ve),{key:Ft!=null?Ft:Qe,label:fe})})})}else Gt&&(Xe.overlay=Gt);return se.createElement(be.Z,Object.assign({placement:"bottom"},Xe),se.createElement("span",{className:`${Ye}-overlay-link`},Ee,se.createElement(Me.Z,null)))}return Ee})(Je);return ye!=null?se.createElement(se.Fragment,null,se.createElement("li",null,ye),ot&&se.createElement(Ve,null,ot)):null},b=Le=>{const{prefixCls:Ye,children:ot,href:Je}=Le,dt=y(Le,["prefixCls","children","href"]),{getPrefixCls:Gt}=se.useContext(me.E_),It=Gt("breadcrumb",Ye);return se.createElement(x,Object.assign({},dt,{prefixCls:It}),ae(It,dt,ot,Je))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ge(17313),ee=ge(83116),ne=ge(37613);const oe=Le=>{const{componentCls:Ye,iconCls:ot}=Le;return{[Ye]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[ot]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ye}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ye}-link`]:{[`
|
|
> ${ot} + span,
|
|
> ${ot} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${Ye}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${ot}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var re=(0,ee.Z)("Breadcrumb",Le=>{const Ye=(0,ne.TS)(Le,{});return[oe(Ye)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ie=function(Le,Ye){var ot={};for(var Je in Le)Object.prototype.hasOwnProperty.call(Le,Je)&&Ye.indexOf(Je)<0&&(ot[Je]=Le[Je]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Je=Object.getOwnPropertySymbols(Le);dt<Je.length;dt++)Ye.indexOf(Je[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Je[dt])&&(ot[Je[dt]]=Le[Je[dt]]);return ot};function ue(Le){const{breadcrumbName:Ye,children:ot}=Le,Je=ie(Le,["breadcrumbName","children"]),dt=Object.assign({title:Ye},Je);return ot&&(dt.menu={items:ot.map(Gt=>{var{breadcrumbName:It}=Gt,Dt=ie(Gt,["breadcrumbName"]);return Object.assign(Object.assign({},Dt),{title:It})})}),dt}function ce(Le,Ye){return(0,se.useMemo)(()=>Le||(Ye?Ye.map(ue):null),[Le,Ye])}var Ge=function(Le,Ye){var ot={};for(var Je in Le)Object.prototype.hasOwnProperty.call(Le,Je)&&Ye.indexOf(Je)<0&&(ot[Je]=Le[Je]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Je=Object.getOwnPropertySymbols(Le);dt<Je.length;dt++)Ye.indexOf(Je[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Je[dt])&&(ot[Je[dt]]=Le[Je[dt]]);return ot};const We=(Le,Ye)=>{if(Ye===void 0)return Ye;let ot=(Ye||"").replace(/^\//,"");return Object.keys(Le).forEach(Je=>{ot=ot.replace(`:${Je}`,Le[Je])}),ot},ft=Le=>{const{prefixCls:Ye,separator:ot="/",style:Je,className:dt,rootClassName:Gt,routes:It,items:Dt,children:Ut,itemRender:ye,params:Ee={}}=Le,Xe=Ge(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Lt,direction:Ue,breadcrumb:ht}=se.useContext(me.E_);let de;const Qe=Lt("breadcrumb",Ye),[Ft,At]=re(Qe),Bt=ce(Dt,It),Fe=a(Qe,ye);if(Bt&&Bt.length>0){const Oe=[],ke=Dt||It;de=Bt.map((et,pt)=>{const{path:yt,key:bt,type:$t,menu:wt,overlay:Tt,onClick:an,className:Pn,separator:cn,dropdownProps:Kt}=et,on=We(Ee,yt);on!==void 0&&Oe.push(on);const rn=bt!=null?bt:pt;if($t==="separator")return se.createElement(Ve,{key:rn},cn);const Ln={},mn=pt===Bt.length-1;wt?Ln.menu=wt:Tt&&(Ln.overlay=Tt);let{href:Sn}=et;return Oe.length&&on!==void 0&&(Sn=`#/${Oe.join("/")}`),se.createElement(x,Object.assign({key:rn},Ln,(0,Re.Z)(et,{data:!0,aria:!0}),{className:Pn,dropdownProps:Kt,href:Sn,separator:mn?"":ot,onClick:an,prefixCls:Qe}),Fe(et,Ee,ke,Oe,Sn))})}else if(Ut){const Oe=(0,Ze.Z)(Ut).length;de=(0,Ze.Z)(Ut).map((ke,et)=>{if(!ke)return ke;const pt=et===Oe-1;return(0,Ne.Tm)(ke,{separator:pt?"":ot,key:et})})}const ve=he()(Qe,ht==null?void 0:ht.className,{[`${Qe}-rtl`]:Ue==="rtl"},dt,Gt,At),fe=Object.assign(Object.assign({},ht==null?void 0:ht.style),Je);return Ft(se.createElement("nav",Object.assign({className:ve,style:fe},Xe),se.createElement("ol",null,de)))};ft.Item=E,ft.Separator=Ve;var Et=ft,Zt=Et},91857:function(we,rt,ge){"use strict";var te=ge(59301),he=ge(38819),Ze=ge(92310),Re=ge.n(Ze),se=ge(31561),Ne=ge(70425),me=ge(18929),Me=ge(2738),be=ge(79676),De=ge(53487),Ve=ge(92343),Be=ge(36355),Ce=ge(20834),ae=ge(40875),a=ge(88088),y=ge(47211);const x=null,b=ne=>{const{menu:oe,arrow:re,prefixCls:ie,children:ue,trigger:ce,disabled:Ge,dropdownRender:We,getPopupContainer:ft,overlayClassName:Et,rootClassName:Zt,open:Le,onOpenChange:Ye,visible:ot,onVisibleChange:Je,mouseEnterDelay:dt=.15,mouseLeaveDelay:Gt=.1,autoAdjustOverflow:It=!0,placement:Dt="",overlay:Ut,transitionName:ye}=ne,{getPopupContainer:Ee,getPrefixCls:Xe,direction:Lt}=te.useContext(Be.E_),Ue=te.useMemo(()=>{const wt=Xe();return ye!==void 0?ye:Dt.includes("top")?`${wt}-slide-down`:`${wt}-slide-up`},[Xe,Dt,ye]),ht=te.useMemo(()=>Dt?Dt.includes("Center")?Dt.slice(0,Dt.indexOf("Center")):Dt:Lt==="rtl"?"bottomRight":"bottomLeft",[Dt,Lt]),de=Xe("dropdown",ie),[Qe,Ft]=(0,y.Z)(de),[,At]=(0,a.Z)(),Bt=te.Children.only(ue),Fe=(0,Ve.Tm)(Bt,{className:Re()(`${de}-trigger`,{[`${de}-rtl`]:Lt==="rtl"},Bt.props.className),disabled:Ge}),ve=Ge?[]:ce;let fe;ve&&ve.includes("contextMenu")&&(fe=!0);const[Oe,ke]=(0,me.Z)(!1,{value:Le!=null?Le:ot}),et=(0,Ne.useEvent)(wt=>{Ye==null||Ye(wt),Je==null||Je(wt),ke(wt)}),pt=Re()(Et,Zt,Ft,{[`${de}-rtl`]:Lt==="rtl"}),yt=(0,be.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:It,offset:At.marginXXS,arrowWidth:re?At.sizePopupArrow:0,borderRadius:At.borderRadius}),bt=te.useCallback(()=>{ke(!1)},[]),$t=()=>{let wt;return oe!=null&&oe.items?wt=te.createElement(Ce.default,Object.assign({},oe)):typeof Ut=="function"?wt=Ut():wt=Ut,We&&(wt=We(wt)),wt=te.Children.only(typeof wt=="string"?te.createElement("span",null,wt):wt),te.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:te.createElement("span",{className:`${de}-menu-submenu-arrow`},te.createElement(he.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bt,validator:Tt=>{let{mode:an}=Tt}},wt)};return Qe(te.createElement(se.Z,Object.assign({alignPoint:fe},(0,Me.Z)(ne,["rootClassName"]),{mouseEnterDelay:dt,mouseLeaveDelay:Gt,visible:Oe,builtinPlacements:yt,arrow:!!re,overlayClassName:pt,prefixCls:de,getPopupContainer:ft||Ee,transitionName:Ue,trigger:ve,overlay:$t,placement:ht,onVisibleChange:et}),Fe))};function E(ne){return Object.assign(Object.assign({},ne),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,De.Z)(b,"dropdown",ne=>ne,E),ee=ne=>te.createElement(z,Object.assign({},ne),te.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,rt.Z=b},38854:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return a}});var te=ge(91857),he=ge(92310),Ze=ge.n(he),Re=ge(59301),se=ge(18785),Ne=ge(3113),me=ge(36355),Me=ge(81327),be=ge(33234),De=ge(47211),Ve=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 Be=y=>{const{getPopupContainer:x,getPrefixCls:b,direction:E}=Re.useContext(me.E_),{prefixCls:z,type:ee="default",danger:ne,disabled:oe,loading:re,onClick:ie,htmlType:ue,children:ce,className:Ge,menu:We,arrow:ft,autoFocus:Et,overlay:Zt,trigger:Le,align:Ye,open:ot,onOpenChange:Je,placement:dt,getPopupContainer:Gt,href:It,icon:Dt=Re.createElement(se.Z,null),title:Ut,buttonsRender:ye=$t=>$t,mouseEnterDelay:Ee,mouseLeaveDelay:Xe,overlayClassName:Lt,overlayStyle:Ue,destroyPopupOnHide:ht,dropdownRender:de}=y,Qe=Ve(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"]),Ft=b("dropdown",z),At=`${Ft}-button`,[Bt,Fe]=(0,De.Z)(Ft),ve={menu:We,arrow:ft,autoFocus:Et,align:Ye,disabled:oe,trigger:oe?[]:Le,onOpenChange:Je,getPopupContainer:Gt||x,mouseEnterDelay:Ee,mouseLeaveDelay:Xe,overlayClassName:Lt,overlayStyle:Ue,destroyPopupOnHide:ht,dropdownRender:de},{compactSize:fe,compactItemClassnames:Oe}=(0,be.ri)(Ft,E),ke=Ze()(At,Oe,Ge,Fe);"overlay"in y&&(ve.overlay=Zt),"open"in y&&(ve.open=ot),"placement"in y?ve.placement=dt:ve.placement=E==="rtl"?"bottomLeft":"bottomRight";const et=Re.createElement(Ne.ZP,{type:ee,danger:ne,disabled:oe,loading:re,onClick:ie,htmlType:ue,href:It,title:Ut},ce),pt=Re.createElement(Ne.ZP,{type:ee,danger:ne,icon:Dt}),[yt,bt]=ye([et,pt]);return Bt(Re.createElement(Me.Z.Compact,Object.assign({className:ke,size:fe,block:!0},Qe),yt,Re.createElement(te.Z,Object.assign({},ve),bt)))};Be.__ANT_BUTTON=!0;var Ce=Be;const ae=te.Z;ae.Button=Ce;var a=ae},47211:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return Ve}});var te=ge(17313),he=ge(13826),Ze=ge(92899),Re=ge(29878),se=ge(19447),Ne=ge(83116),me=ge(37613),be=Be=>{const{componentCls:Ce,menuCls:ae,colorError:a,colorTextLightSolid:y}=Be,x=`${ae}-item`;return{[`${Ce}, ${Ce}-menu-submenu`]:{[`${ae} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const De=Be=>{const{componentCls:Ce,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:ue,colorBgElevated:ce}=Be;return[{[Ce]:Object.assign(Object.assign({},(0,te.Wf)(Be)),{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}},[`${Ce}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Ce}-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${Ce}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ce}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ce}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ce}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ce}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ce}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ce}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ce}-placement-topRight`]:{animationName:he.ly}})},(0,se.ZP)(Be,{colorBg:ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ce} ${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}},[`${Ce}, ${Ce}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:ce,backgroundClip:"padding-box",borderRadius:Be.borderRadiusLG,outline:"none",boxShadow:Be.boxShadowSecondary},(0,te.Qy)(Be)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${ue}px`,color:Be.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Be.marginXS,fontSize:Be.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 ${ue}px`,color:Be.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Be.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Be.borderRadiusSM,"&:hover, &-active":{backgroundColor:Be.controlItemBgHover}},(0,te.Qy)(Be)),{"&-selected":{color:Be.colorPrimary,backgroundColor:Be.controlItemBgActive,"&:hover, &-active":{backgroundColor:Be.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Be.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Be.colorSplit},[`${Ce}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Be.paddingXS,[`${Ce}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Be.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Be.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ue+Be.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ce}-menu-submenu-title`]:{[`&, ${Ce}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:ce,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ce}-menu-submenu-title`]:{color:Be.colorPrimary}})}},[(0,he.oN)(Be,"slide-up"),(0,he.oN)(Be,"slide-down"),(0,Ze.Fm)(Be,"move-up"),(0,Ze.Fm)(Be,"move-down"),(0,Re._y)(Be,"zoom-big")]]};var Ve=(0,Ne.Z)("Dropdown",(Be,Ce)=>{let{rootPrefixCls:ae}=Ce;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Be,oe=(x-b*E)/2,{dropdownArrowOffset:re}=(0,se.fS)({contentRadius:ne}),ie=(0,me.TS)(Be,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[De(ie),be(ie)]},Be=>({zIndexPopup:Be.zIndexPopupBase+50}))},45818:function(we,rt,ge){"use strict";ge.d(rt,{D:function(){return z},Z:function(){return oe}});var te=ge(92413),he=ge(59301),Ze={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"},Re=Ze,se=ge(7657),Ne=function(ie,ue){return he.createElement(se.Z,(0,te.Z)({},ie,{ref:ue,icon:Re}))},me=he.forwardRef(Ne),Me=me,be=ge(33853),De=ge(38819),Ve=ge(92310),Be=ge.n(Ve),Ce=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var ue={};for(var ce in re)Object.prototype.hasOwnProperty.call(re,ce)&&ie.indexOf(ce)<0&&(ue[ce]=re[ce]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,ce=Object.getOwnPropertySymbols(re);Ge<ce.length;Ge++)ie.indexOf(ce[Ge])<0&&Object.prototype.propertyIsEnumerable.call(re,ce[Ge])&&(ue[ce[Ge]]=re[ce[Ge]]);return ue};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=he.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=he.forwardRef((re,ie)=>{const{prefixCls:ue,className:ce,trigger:Ge,children:We,defaultCollapsed:ft=!1,theme:Et="dark",style:Zt={},collapsible:Le=!1,reverseArrow:Ye=!1,width:ot=200,collapsedWidth:Je=80,zeroWidthTriggerStyle:dt,breakpoint:Gt,onCollapse:It,onBreakpoint:Dt}=re,Ut=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ye}=(0,he.useContext)(x.Gs),[Ee,Xe]=(0,he.useState)("collapsed"in re?re.collapsed:ft),[Lt,Ue]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in re&&Xe(re.collapsed)},[re.collapsed]);const ht=(Fe,ve)=>{"collapsed"in re||Xe(Fe),It==null||It(Fe,ve)},de=(0,he.useRef)();de.current=Fe=>{Ue(Fe.matches),Dt==null||Dt(Fe.matches),Ee!==Fe.matches&&ht(Fe.matches,"responsive")},(0,he.useEffect)(()=>{function Fe(fe){return de.current(fe)}let ve;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&Gt&&Gt in E){ve=fe(`(max-width: ${E[Gt]})`);try{ve.addEventListener("change",Fe)}catch(Oe){ve.addListener(Fe)}Fe(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",Fe)}catch(fe){ve==null||ve.removeListener(Fe)}}},[Gt]),(0,he.useEffect)(()=>{const Fe=ee("ant-sider-");return ye.addSider(Fe),()=>ye.removeSider(Fe)},[]);const Qe=()=>{ht(!Ee,"clickTrigger")},{getPrefixCls:Ft}=(0,he.useContext)(y.E_),At=()=>{const Fe=Ft("layout-sider",ue),ve=(0,Ce.Z)(Ut,["collapsed"]),fe=Ee?Je:ot,Oe=a(fe)?`${fe}px`:String(fe),ke=parseFloat(String(Je||0))===0?he.createElement("span",{onClick:Qe,className:Be()(`${Fe}-zero-width-trigger`,`${Fe}-zero-width-trigger-${Ye?"right":"left"}`),style:dt},Ge||he.createElement(Me,null)):null,yt={expanded:Ye?he.createElement(De.Z,null):he.createElement(be.Z,null),collapsed:Ye?he.createElement(be.Z,null):he.createElement(De.Z,null)}[Ee?"collapsed":"expanded"],bt=Ge!==null?ke||he.createElement("div",{className:`${Fe}-trigger`,onClick:Qe,style:{width:Oe}},Ge||yt):null,$t=Object.assign(Object.assign({},Zt),{flex:`0 0 ${Oe}`,maxWidth:Oe,minWidth:Oe,width:Oe}),wt=Be()(Fe,`${Fe}-${Et}`,{[`${Fe}-collapsed`]:!!Ee,[`${Fe}-has-trigger`]:Le&&Ge!==null&&!ke,[`${Fe}-below`]:!!Lt,[`${Fe}-zero-width`]:parseFloat(Oe)===0},ce);return he.createElement("aside",Object.assign({className:wt},ve,{style:$t,ref:ie}),he.createElement("div",{className:`${Fe}-children`},We),Le||Lt&&ke?bt:null)},Bt=he.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return he.createElement(z.Provider,{value:Bt},At())})},84966:function(we,rt,ge){"use strict";ge.d(rt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ce},ZP:function(){return ee}});var te=ge(26407),he=ge(92310),Ze=ge.n(he),Re=ge(2738),se=ge(59301),Ne=ge(36355),me=ge(83116),be=ne=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:ue,lightTriggerColor:ce}=ne;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:ce,background:ue},[`${oe}-sider-zero-width-trigger`]:{color:ce,background:ue,border:`1px solid ${re}`,borderInlineStart:0}}}};const De=ne=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:ue,footerBg:ce,triggerBg:Ge,headerHeight:We,headerPadding:ft,headerColor:Et,footerPadding:Zt,triggerHeight:Le,zeroTriggerHeight:Ye,zeroTriggerWidth:ot,motionDurationMid:Je,motionDurationSlow:dt,fontSize:Gt,borderRadius:It,bodyBg:Dt,headerBg:Ut,siderBg:ye}=ne;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Dt,"&, *":{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:ye,transition:`all ${Je}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:ue,lineHeight:`${Le}px`,textAlign:"center",background:Ge,cursor:"pointer",transition:`all ${Je}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:We,insetInlineEnd:-ot,zIndex:1,width:ot,height:Ye,color:ue,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:It,borderEndEndRadius:It,borderEndStartRadius:0,cursor:"pointer",transition:`background ${dt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${dt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ot,borderStartStartRadius:It,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:It}}}}},be(ne)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:We,padding:ft,color:Et,lineHeight:`${We}px`,background:Ut,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:Zt,color:ie,fontSize:Gt,background:ce},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Ve=(0,me.Z)("Layout",ne=>[De(ne)],ne=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:ue,controlHeightSM:ce,marginXXS:Ge,colorTextLightSolid:We,colorBgContainer:ft}=ne,Et=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${Et}px`,headerColor:ue,footerPadding:`${ce}px ${Et}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Ge*2,triggerBg:"#002140",triggerColor:We,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:ft,lightTriggerBg:ft,lightTriggerColor:ue}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Be=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 ue=0,ie=Object.getOwnPropertySymbols(ne);ue<ie.length;ue++)oe.indexOf(ie[ue])<0&&Object.prototype.propertyIsEnumerable.call(ne,ie[ue])&&(re[ie[ue]]=ne[ie[ue]]);return re};const Ce=se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:oe,tagName:re,displayName:ie}=ne;return ue=>se.forwardRef((Ge,We)=>se.createElement(ue,Object.assign({ref:We,suffixCls:oe,tagName:re},Ge)))}const a=se.forwardRef((ne,oe)=>{const{prefixCls:re,suffixCls:ie,className:ue,tagName:ce}=ne,Ge=Be(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:We}=se.useContext(Ne.E_),ft=We("layout",re),[Et,Zt]=Ve(ft),Le=ie?`${ft}-${ie}`:ft;return Et(se.createElement(ce,Object.assign({className:Ze()(re||Le,ue,Zt),ref:oe},Ge)))}),y=se.forwardRef((ne,oe)=>{const{direction:re}=se.useContext(Ne.E_),[ie,ue]=se.useState([]),{prefixCls:ce,className:Ge,rootClassName:We,children:ft,hasSider:Et,tagName:Zt,style:Le}=ne,Ye=Be(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ot=(0,Re.Z)(Ye,["suffixCls"]),{getPrefixCls:Je,layout:dt}=se.useContext(Ne.E_),Gt=Je("layout",ce),[It,Dt]=Ve(Gt),Ut=Ze()(Gt,{[`${Gt}-has-sider`]:typeof Et=="boolean"?Et:ie.length>0,[`${Gt}-rtl`]:re==="rtl"},dt==null?void 0:dt.className,Ge,We,Dt),ye=se.useMemo(()=>({siderHook:{addSider:Ee=>{ue(Xe=>[].concat((0,te.Z)(Xe),[Ee]))},removeSider:Ee=>{ue(Xe=>Xe.filter(Lt=>Lt!==Ee))}}}),[]);return It(se.createElement(Ce.Provider,{value:ye},se.createElement(Zt,Object.assign({ref:oe,className:Ut,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Le)},ot),ft)))}),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(we,rt,ge){"use strict";ge.d(rt,{J:function(){return Ne}});var te=ge(59301),he=ge(33234),Ze=ge(70425),Re=function(me,Me){var be={};for(var De in me)Object.prototype.hasOwnProperty.call(me,De)&&Me.indexOf(De)<0&&(be[De]=me[De]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,De=Object.getOwnPropertySymbols(me);Ve<De.length;Ve++)Me.indexOf(De[Ve])<0&&Object.prototype.propertyIsEnumerable.call(me,De[Ve])&&(be[De[Ve]]=me[De[Ve]]);return be};const se=te.createContext(null),Ne=te.forwardRef((me,Me)=>{const{children:be}=me,De=Re(me,["children"]),Ve=te.useContext(se),Be=te.useMemo(()=>Object.assign(Object.assign({},Ve),De),[Ve,De.prefixCls,De.mode,De.selectable]);return te.createElement(se.Provider,{value:Be},te.createElement(he.BR,null,(0,Ze.supportNodeRef)(be)?te.cloneElement(be,{ref:Me}):be))});rt.Z=se},20834:function(we,rt,ge){"use strict";ge.d(rt,{default:function(){return Bt}});var te=ge(15285),he=ge(59301),Ze=ge(45818),Re=ge(92310),se=ge.n(Re),Ne=ge(36355),me=function(Fe,ve){var fe={};for(var Oe in Fe)Object.prototype.hasOwnProperty.call(Fe,Oe)&&ve.indexOf(Oe)<0&&(fe[Oe]=Fe[Oe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Oe=Object.getOwnPropertySymbols(Fe);ke<Oe.length;ke++)ve.indexOf(Oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Oe[ke])&&(fe[Oe[ke]]=Fe[Oe[ke]]);return fe},be=Fe=>{const{prefixCls:ve,className:fe,dashed:Oe}=Fe,ke=me(Fe,["prefixCls","className","dashed"]),{getPrefixCls:et}=he.useContext(Ne.E_),pt=et("menu",ve),yt=se()({[`${pt}-item-divider-dashed`]:!!Oe},fe);return he.createElement(te.iz,Object.assign({className:yt},ke))},De=ge(11592),Ve=ge(2738),Be=ge(6848),Ce=ge(92343),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Fe=>{var ve;const{className:fe,children:Oe,icon:ke,title:et,danger:pt}=Fe,{prefixCls:yt,firstLevel:bt,direction:$t,disableMenuItemTitleTooltip:wt,inlineCollapsed:Tt}=he.useContext(a),an=Ln=>{const mn=he.createElement("span",{className:`${yt}-title-content`},Oe);return(!ke||(0,Ce.l$)(Oe)&&Oe.type==="span")&&Oe&&Ln&&bt&&typeof Oe=="string"?he.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Oe.charAt(0)):mn},{siderCollapsed:Pn}=he.useContext(Ze.D);let cn=et;typeof et=="undefined"?cn=bt?Oe:"":et===!1&&(cn="");const Kt={title:cn};!Pn&&!Tt&&(Kt.title=null,Kt.open=!1);const on=(0,De.Z)(Oe).length;let rn=he.createElement(te.ck,Object.assign({},(0,Ve.Z)(Fe,["title","icon","danger"]),{className:se()({[`${yt}-item-danger`]:pt,[`${yt}-item-only-child`]:(ke?on+1:on)===1},fe),title:typeof et=="string"?et:void 0}),(0,Ce.Tm)(ke,{className:se()((0,Ce.l$)(ke)?(ve=ke.props)===null||ve===void 0?void 0:ve.className:"",`${yt}-item-icon`)}),an(Tt));return wt||(rn=he.createElement(Be.Z,Object.assign({},Kt,{placement:$t==="rtl"?"left":"right",overlayClassName:`${yt}-inline-collapsed-tooltip`}),rn)),rn},E=Fe=>{var ve;const{popupClassName:fe,icon:Oe,title:ke,theme:et}=Fe,pt=he.useContext(a),{prefixCls:yt,inlineCollapsed:bt,theme:$t}=pt,wt=(0,te.Xl)();let Tt;if(!Oe)Tt=bt&&!wt.length&&ke&&typeof ke=="string"?he.createElement("div",{className:`${yt}-inline-collapsed-noicon`},ke.charAt(0)):he.createElement("span",{className:`${yt}-title-content`},ke);else{const Pn=(0,Ce.l$)(ke)&&ke.type==="span";Tt=he.createElement(he.Fragment,null,(0,Ce.Tm)(Oe,{className:se()((0,Ce.l$)(Oe)?(ve=Oe.props)===null||ve===void 0?void 0:ve.className:"",`${yt}-item-icon`)}),Pn?ke:he.createElement("span",{className:`${yt}-title-content`},ke))}const an=he.useMemo(()=>Object.assign(Object.assign({},pt),{firstLevel:!1}),[pt]);return he.createElement(a.Provider,{value:an},he.createElement(te.Wd,Object.assign({},(0,Ve.Z)(Fe,["icon"]),{title:Tt,popupClassName:se()(yt,fe,`${yt}-${et||$t}`)})))},z=ge(18785),ee=ge(70425),ne=ge(62892),oe=ge(40875),re=function(Fe,ve){var fe={};for(var Oe in Fe)Object.prototype.hasOwnProperty.call(Fe,Oe)&&ve.indexOf(Oe)<0&&(fe[Oe]=Fe[Oe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Oe=Object.getOwnPropertySymbols(Fe);ke<Oe.length;ke++)ve.indexOf(Oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Oe[ke])&&(fe[Oe[ke]]=Fe[Oe[ke]]);return fe};function ie(Fe){return(Fe||[]).map((ve,fe)=>{if(ve&&typeof ve=="object"){const Oe=ve,{label:ke,children:et,key:pt,type:yt}=Oe,bt=re(Oe,["label","children","key","type"]),$t=pt!=null?pt:`tmp-${fe}`;return et||yt==="group"?yt==="group"?he.createElement(te.BW,Object.assign({key:$t},bt,{title:ke}),ie(et)):he.createElement(E,Object.assign({key:$t},bt,{title:ke}),ie(et)):yt==="divider"?he.createElement(be,Object.assign({key:$t},bt)):he.createElement(x,Object.assign({key:$t},bt),ke)}return null}).filter(ve=>ve)}function ue(Fe){return he.useMemo(()=>Fe&&ie(Fe),[Fe])}var ce=ge(64993),Ge=ge(17313),We=ge(8378),ft=ge(13826),Et=ge(29878),Zt=ge(83116),Le=ge(37613),ot=Fe=>{const{componentCls:ve,motionDurationSlow:fe,horizontalLineHeight:Oe,colorSplit:ke,lineWidth:et,lineType:pt,itemPaddingInline:yt}=Fe;return{[`${ve}-horizontal`]:{lineHeight:Oe,border:0,borderBottom:`${et}px ${pt} ${ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:yt},[`> ${ve}-item:hover,
|
|
> ${ve}-item-active,
|
|
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${fe}`,`background ${fe}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},dt=Fe=>{let{componentCls:ve,menuArrowOffset:fe}=Fe;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
|
|
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${fe})`},"&::after":{transform:`rotate(45deg) translateY(${fe})`}}}}};const Gt=Fe=>Object.assign({},(0,Ge.oN)(Fe));var Dt=(Fe,ve)=>{const{componentCls:fe,itemColor:Oe,itemSelectedColor:ke,groupTitleColor:et,itemBg:pt,subMenuItemBg:yt,itemSelectedBg:bt,activeBarHeight:$t,activeBarWidth:wt,activeBarBorderWidth:Tt,motionDurationSlow:an,motionEaseInOut:Pn,motionEaseOut:cn,itemPaddingInline:Kt,motionDurationMid:on,itemHoverColor:rn,lineType:Ln,colorSplit:mn,itemDisabledColor:Sn,dangerItemColor:Bn,dangerItemHoverColor:fn,dangerItemSelectedColor:Tn,dangerItemActiveBg:sn,dangerItemSelectedBg:On,itemHoverBg:Xn,itemActiveBg:ea,menuSubMenuBg:ma,horizontalItemSelectedColor:ia,horizontalItemSelectedBg:sa,horizontalItemBorderRadius:Un,horizontalItemHoverBg:oa,popupBg:Sa}=Fe;return{[`${fe}-${ve}, ${fe}-${ve} > ${fe}`]:{color:Oe,background:pt,[`&${fe}-root:focus-visible`]:Object.assign({},Gt(Fe)),[`${fe}-item-group-title`]:{color:et},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:ke}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{color:`${Sn} !important`},[`${fe}-item:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{[`&:hover, > ${fe}-submenu-title:hover`]:{color:rn}},[`&:not(${fe}-horizontal)`]:{[`${fe}-item:not(${fe}-item-selected)`]:{"&:hover":{backgroundColor:Xn},"&:active":{backgroundColor:ea}},[`${fe}-submenu-title`]:{"&:hover":{backgroundColor:Xn},"&:active":{backgroundColor:ea}}},[`${fe}-item-danger`]:{color:Bn,[`&${fe}-item:hover`]:{[`&:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{color:fn}},[`&${fe}-item:active`]:{background:sn}},[`${fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${fe}-item-selected`]:{color:ke,[`&${fe}-item-danger`]:{color:Tn},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:bt,[`&${fe}-item-danger`]:{backgroundColor:On}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},Gt(Fe))},[`&${fe}-submenu > ${fe}`]:{backgroundColor:ma},[`&${fe}-popup > ${fe}`]:{backgroundColor:Sa},[`&${fe}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${fe}-item, > ${fe}-submenu`]:{top:Tt,marginTop:-Tt,marginBottom:0,borderRadius:Un,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${$t}px solid transparent`,transition:`border-color ${an} ${Pn}`,content:'""'},"&:hover, &-active, &-open":{background:oa,"&::after":{borderBottomWidth:$t,borderBottomColor:ia}},"&-selected":{color:ia,backgroundColor:sa,"&:hover":{backgroundColor:sa},"&::after":{borderBottomWidth:$t,borderBottomColor:ia}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${Tt}px ${Ln} ${mn}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:yt},[`${fe}-item, ${fe}-submenu-title`]:Tt&&wt?{width:`calc(100% + ${Tt}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wt}px solid ${ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${on} ${cn}`,`opacity ${on} ${cn}`].join(","),content:'""'},[`&${fe}-item-danger`]:{"&::after":{borderInlineEndColor:Tn}}},[`${fe}-selected, ${fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${on} ${Pn}`,`opacity ${on} ${Pn}`].join(",")}}}}}};const Ut=Fe=>{const{componentCls:ve,itemHeight:fe,itemMarginInline:Oe,padding:ke,menuArrowSize:et,marginXS:pt,itemMarginBlock:yt}=Fe,bt=ke+et+pt;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:ke,overflow:"hidden",textOverflow:"ellipsis",marginInline:Oe,marginBlock:yt,width:`calc(100% - ${Oe*2}px)`},[`> ${ve}-item,
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{height:fe,lineHeight:`${fe}px`},[`${ve}-item-group-list ${ve}-submenu-title,
|
|
${ve}-submenu-title`]:{paddingInlineEnd:bt}}};var Ee=Fe=>{const{componentCls:ve,iconCls:fe,itemHeight:Oe,colorTextLightSolid:ke,dropdownWidth:et,controlHeightLG:pt,motionDurationMid:yt,motionEaseOut:bt,paddingXL:$t,itemMarginInline:wt,fontSizeLG:Tt,motionDurationSlow:an,paddingXS:Pn,boxShadowSecondary:cn,collapsedWidth:Kt,collapsedIconSize:on}=Fe,rn={height:Oe,lineHeight:`${Oe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},Ut(Fe))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},Ut(Fe)),{boxShadow:cn})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:et,maxHeight:`calc(100vh - ${pt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${an}`,`background ${an}`,`padding ${yt} ${bt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:rn,[`& ${ve}-item-group-title`]:{paddingInlineStart:$t}},[`${ve}-item`]:rn}},{[`${ve}-inline-collapsed`]:{width:Kt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:Tt,textAlign:"center"}}},[`> ${ve}-item,
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Tt/2}px - ${wt}px)`,textOverflow:"clip",[`
|
|
${ve}-submenu-arrow,
|
|
${ve}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ve}-item-icon, ${fe}`]:{margin:0,fontSize:on,lineHeight:`${Oe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${fe}`]:{display:"none"},"a, a:hover":{color:ke}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},Ge.vS),{paddingInline:Pn})}}]};const Xe=Fe=>{const{componentCls:ve,motionDurationSlow:fe,motionDurationMid:Oe,motionEaseInOut:ke,motionEaseOut:et,iconCls:pt,iconSize:yt,iconMarginInlineEnd:bt}=Fe;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${ke}`].join(","),[`${ve}-item-icon, ${pt}`]:{minWidth:yt,fontSize:yt,transition:[`font-size ${Oe} ${et}`,`margin ${fe} ${ke}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${fe} ${ke}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,Ge.Ro)()),[`&${ve}-item-only-child`]:{[`> ${pt}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Lt=Fe=>{const{componentCls:ve,motionDurationSlow:fe,motionEaseInOut:Oe,borderRadius:ke,menuArrowSize:et,menuArrowOffset:pt}=Fe;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Fe.margin,width:et,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${Oe}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:et*.6,height:et*.15,backgroundColor:"currentcolor",borderRadius:ke,transition:[`background ${fe} ${Oe}`,`transform ${fe} ${Oe}`,`top ${fe} ${Oe}`,`color ${fe} ${Oe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${pt})`},"&::after":{transform:`rotate(-45deg) translateY(${pt})`}}}}},Ue=Fe=>{const{antCls:ve,componentCls:fe,fontSize:Oe,motionDurationSlow:ke,motionDurationMid:et,motionEaseInOut:pt,paddingXS:yt,padding:bt,colorSplit:$t,lineWidth:wt,zIndexPopup:Tt,borderRadiusLG:an,subMenuItemBorderRadius:Pn,menuArrowSize:cn,menuArrowOffset:Kt,lineType:on,menuPanelMaskInset:rn,groupTitleLineHeight:Ln,groupTitleFontSize:mn}=Fe;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,Ge.dF)()),{"&-hidden":{display:"none"}})},[`${fe}-submenu-hidden`]:{display:"none"}},{[fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(Fe)),(0,Ge.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Oe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ke} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${fe}-item`]:{flex:"none"}},[`${fe}-item, ${fe}-submenu, ${fe}-submenu-title`]:{borderRadius:Fe.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${yt}px ${bt}px`,fontSize:mn,lineHeight:Ln,transition:`all ${ke}`},[`&-horizontal ${fe}-submenu`]:{transition:[`border-color ${ke} ${pt}`,`background ${ke} ${pt}`].join(",")},[`${fe}-submenu, ${fe}-submenu-inline`]:{transition:[`border-color ${ke} ${pt}`,`background ${ke} ${pt}`,`padding ${et} ${pt}`].join(",")},[`${fe}-submenu ${fe}-sub`]:{cursor:"initial",transition:[`background ${ke} ${pt}`,`padding ${ke} ${pt}`].join(",")},[`${fe}-title-content`]:{transition:`color ${ke}`},[`${fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:$t,borderStyle:on,borderWidth:0,borderTopWidth:wt,marginBlock:wt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xe(Fe)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${Oe*2}px ${bt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Tt,borderRadius:an,boxShadow:"none",transformOrigin:"0 0",[`&${fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${rn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:rn},"\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:Fe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Fe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Fe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Fe.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:an},Xe(Fe)),Lt(Fe)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:Pn},[`${fe}-submenu-title::after`]:{transition:`transform ${ke} ${pt}`}})}}),Lt(Fe)),{[`&-inline-collapsed ${fe}-submenu-arrow,
|
|
&-inline ${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Kt})`},"&::after":{transform:`rotate(45deg) translateX(-${Kt})`}},[`${fe}-submenu-open${fe}-submenu-inline > ${fe}-submenu-title > ${fe}-submenu-arrow`]:{transform:`translateY(-${cn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Kt})`},"&::before":{transform:`rotate(45deg) translateX(${Kt})`}}})},{[`${ve}-layout-header`]:{[fe]:{lineHeight:"inherit"}}}]};var ht=(Fe,ve)=>(0,Zt.Z)("Menu",Oe=>{if(ve===!1)return[];const{colorBgElevated:ke,colorPrimary:et,colorTextLightSolid:pt,controlHeightLG:yt,fontSize:bt,darkItemColor:$t,darkDangerItemColor:wt,darkItemBg:Tt,darkSubMenuItemBg:an,darkItemSelectedColor:Pn,darkItemSelectedBg:cn,darkDangerItemSelectedBg:Kt,darkItemHoverBg:on,darkGroupTitleColor:rn,darkItemHoverColor:Ln,darkItemDisabledColor:mn,darkDangerItemHoverColor:Sn,darkDangerItemSelectedColor:Bn,darkDangerItemActiveBg:fn}=Oe,Tn=bt/7*5,sn=(0,Le.TS)(Oe,{menuArrowSize:Tn,menuHorizontalHeight:yt*1.15,menuArrowOffset:`${Tn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ke}),On=(0,Le.TS)(sn,{itemColor:$t,itemHoverColor:Ln,groupTitleColor:rn,itemSelectedColor:Pn,itemBg:Tt,popupBg:Tt,subMenuItemBg:an,itemActiveBg:"transparent",itemSelectedBg:cn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:on,itemDisabledColor:mn,dangerItemColor:wt,dangerItemHoverColor:Sn,dangerItemSelectedColor:Bn,dangerItemActiveBg:fn,dangerItemSelectedBg:Kt,menuSubMenuBg:an,horizontalItemSelectedColor:pt,horizontalItemSelectedBg:et});return[Ue(sn),ot(sn),Ee(sn),Dt(sn,"light"),Dt(On,"dark"),dt(sn),(0,We.Z)(sn),(0,ft.oN)(sn,"slide-up"),(0,ft.oN)(sn,"slide-down"),(0,Et._y)(sn,"zoom-big")]},Oe=>{const{colorPrimary:ke,colorError:et,colorTextDisabled:pt,colorErrorBg:yt,colorText:bt,colorTextDescription:$t,colorBgContainer:wt,colorFillAlter:Tt,colorFillContent:an,lineWidth:Pn,lineWidthBold:cn,controlItemBgActive:Kt,colorBgTextHover:on,controlHeightLG:rn,lineHeight:Ln,colorBgElevated:mn,marginXXS:Sn,padding:Bn,fontSize:fn,controlHeightSM:Tn,fontSizeLG:sn,colorTextLightSolid:On,colorErrorHover:Xn}=Oe,ea=new ce.C(On).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Oe.zIndexPopupBase+50,radiusItem:Oe.borderRadiusLG,itemBorderRadius:Oe.borderRadiusLG,radiusSubMenuItem:Oe.borderRadiusSM,subMenuItemBorderRadius:Oe.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:ke,horizontalItemHoverColor:ke,colorGroupTitle:$t,groupTitleColor:$t,colorItemTextSelected:ke,itemSelectedColor:ke,colorItemTextSelectedHorizontal:ke,horizontalItemSelectedColor:ke,colorItemBg:wt,itemBg:wt,colorItemBgHover:on,itemHoverBg:on,colorItemBgActive:an,itemActiveBg:Kt,colorSubItemBg:Tt,subMenuItemBg:Tt,colorItemBgSelected:Kt,itemSelectedBg:Kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:cn,activeBarHeight:cn,colorActiveBarBorderSize:Pn,activeBarBorderWidth:Pn,colorItemTextDisabled:pt,itemDisabledColor:pt,colorDangerItemText:et,dangerItemColor:et,colorDangerItemTextHover:et,dangerItemHoverColor:et,colorDangerItemTextSelected:et,dangerItemSelectedColor:et,colorDangerItemBgActive:yt,dangerItemActiveBg:yt,colorDangerItemBgSelected:yt,dangerItemSelectedBg:yt,itemMarginInline:Oe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:rn,groupTitleLineHeight:Ln,collapsedWidth:rn*2,popupBg:mn,itemMarginBlock:Sn,itemPaddingInline:Bn,horizontalLineHeight:`${rn*1.15}px`,iconSize:fn,iconMarginInlineEnd:Tn-fn,collapsedIconSize:sn,groupTitleFontSize:fn,darkItemDisabledColor:new ce.C(On).setAlpha(.25).toRgbString(),darkItemColor:ea,darkDangerItemColor:et,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:On,darkItemSelectedBg:ke,darkDangerItemSelectedBg:et,darkItemHoverBg:"transparent",darkGroupTitleColor:ea,darkItemHoverColor:On,darkDangerItemHoverColor:Xn,darkDangerItemSelectedColor:On,darkDangerItemActiveBg:et}},{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"]]})(Fe),de=function(Fe,ve){var fe={};for(var Oe in Fe)Object.prototype.hasOwnProperty.call(Fe,Oe)&&ve.indexOf(Oe)<0&&(fe[Oe]=Fe[Oe]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Oe=Object.getOwnPropertySymbols(Fe);ke<Oe.length;ke++)ve.indexOf(Oe[ke])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Oe[ke])&&(fe[Oe[ke]]=Fe[Oe[ke]]);return fe},Ft=(0,he.forwardRef)((Fe,ve)=>{var fe,Oe;const ke=he.useContext(oe.Z),et=ke||{},{getPrefixCls:pt,getPopupContainer:yt,direction:bt,menu:$t}=he.useContext(Ne.E_),wt=pt(),{prefixCls:Tt,className:an,style:Pn,theme:cn="light",expandIcon:Kt,_internalDisableMenuItemTitleTooltip:on,inlineCollapsed:rn,siderCollapsed:Ln,items:mn,children:Sn,rootClassName:Bn,mode:fn,selectable:Tn,onClick:sn,overflowedIndicatorPopupClassName:On}=Fe,Xn=de(Fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ea=(0,Ve.Z)(Xn,["collapsedWidth"]),ma=ue(mn)||Sn;(fe=et.validator)===null||fe===void 0||fe.call(et,{mode:fn});const ia=(0,ee.useEvent)(function(){var tn;sn==null||sn.apply(void 0,arguments),(tn=et.onClick)===null||tn===void 0||tn.call(et)}),sa=et.mode||fn,Un=Tn!=null?Tn:et.selectable,oa=he.useMemo(()=>Ln!==void 0?Ln:rn,[rn,Ln]),Sa={horizontal:{motionName:`${wt}-slide-up`},inline:(0,ne.Z)(wt),other:{motionName:`${wt}-zoom-big`}},Kn=pt("menu",Tt||et.prefixCls),[He,Ke]=ht(Kn,!ke),Ae=se()(`${Kn}-${cn}`,$t==null?void 0:$t.className,an);let gt;if(typeof Kt=="function")gt=Kt;else if(Kt===null||Kt===!1)gt=null;else if(et.expandIcon===null||et.expandIcon===!1)gt=null;else{const tn=Kt!=null?Kt:et.expandIcon;gt=(0,Ce.Tm)(tn,{className:se()(`${Kn}-submenu-expand-icon`,(0,Ce.l$)(tn)?(Oe=tn.props)===null||Oe===void 0?void 0:Oe.className:"")})}const qt=he.useMemo(()=>({prefixCls:Kn,inlineCollapsed:oa||!1,direction:bt,firstLevel:!0,theme:cn,mode:sa,disableMenuItemTitleTooltip:on}),[Kn,oa,bt,on,cn]);return He(he.createElement(oe.Z.Provider,{value:null},he.createElement(a.Provider,{value:qt},he.createElement(te.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:se()(Kn,`${Kn}-${cn}`,On),mode:sa,selectable:Un,onClick:ia},ea,{inlineCollapsed:oa,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Pn),className:Ae,prefixCls:Kn,direction:bt,defaultMotions:Sa,expandIcon:gt,ref:ve,rootClassName:se()(Bn,Ke)}),ma))))});const At=(0,he.forwardRef)((Fe,ve)=>{const fe=(0,he.useRef)(null),Oe=he.useContext(Ze.D);return(0,he.useImperativeHandle)(ve,()=>({menu:fe.current,focus:ke=>{var et;(et=fe.current)===null||et===void 0||et.focus(ke)}})),he.createElement(Ft,Object.assign({ref:fe},Fe,Oe))});At.Item=x,At.SubMenu=E,At.Divider=be,At.ItemGroup=te.BW;var Bt=At},81327:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return x}});var te=ge(59301),he=ge(92310),Ze=ge.n(he),Re=ge(11592),se=ge(36355),Ne=ge(33234);const me=te.createContext({latestIndex:0}),Me=me.Provider;var De=b=>{let{className:E,index:z,children:ee,split:ne,style:oe}=b;const{latestIndex:re}=te.useContext(me);return ee==null?null:te.createElement(te.Fragment,null,te.createElement("div",{className:E,style:oe},ee),z<re&&ne&&te.createElement("span",{className:`${E}-split`},ne))},Ve=ge(2856);function Be(b){return["small","middle","large"].includes(b)}function Ce(b){return b?typeof b=="number"&&!Number.isNaN(b):!1}var ae=function(b,E){var z={};for(var ee in b)Object.prototype.hasOwnProperty.call(b,ee)&&E.indexOf(ee)<0&&(z[ee]=b[ee]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,ee=Object.getOwnPropertySymbols(b);ne<ee.length;ne++)E.indexOf(ee[ne])<0&&Object.prototype.propertyIsEnumerable.call(b,ee[ne])&&(z[ee[ne]]=b[ee[ne]]);return z};const y=te.forwardRef((b,E)=>{var z,ee;const{getPrefixCls:ne,space:oe,direction:re}=te.useContext(se.E_),{size:ie=(oe==null?void 0:oe.size)||"small",align:ue,className:ce,rootClassName:Ge,children:We,direction:ft="horizontal",prefixCls:Et,split:Zt,style:Le,wrap:Ye=!1,classNames:ot,styles:Je}=b,dt=ae(b,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Gt,It]=Array.isArray(ie)?ie:[ie,ie],Dt=Be(It),Ut=Be(Gt),ye=Ce(It),Ee=Ce(Gt),Xe=(0,Re.Z)(We,{keepEmpty:!0}),Lt=ue===void 0&&ft==="horizontal"?"center":ue,Ue=ne("space",Et),[ht,de]=(0,Ve.Z)(Ue),Qe=Ze()(Ue,oe==null?void 0:oe.className,de,`${Ue}-${ft}`,{[`${Ue}-rtl`]:re==="rtl",[`${Ue}-align-${Lt}`]:Lt,[`${Ue}-gap-row-${It}`]:Dt,[`${Ue}-gap-col-${Gt}`]:Ut},ce,Ge),Ft=Ze()(`${Ue}-item`,(z=ot==null?void 0:ot.item)!==null&&z!==void 0?z:(ee=oe==null?void 0:oe.classNames)===null||ee===void 0?void 0:ee.item);let At=0;const Bt=Xe.map((fe,Oe)=>{var ke,et;fe!=null&&(At=Oe);const pt=fe&&fe.key||`${Ft}-${Oe}`;return te.createElement(De,{className:Ft,key:pt,index:Oe,split:Zt,style:(ke=Je==null?void 0:Je.item)!==null&&ke!==void 0?ke:(et=oe==null?void 0:oe.styles)===null||et===void 0?void 0:et.item},fe)}),Fe=te.useMemo(()=>({latestIndex:At}),[At]);if(Xe.length===0)return null;const ve={};return Ye&&(ve.flexWrap="wrap"),!Ut&&Ee&&(ve.columnGap=Gt),!Dt&&ye&&(ve.rowGap=It),ht(te.createElement("div",Object.assign({ref:E,className:Qe,style:Object.assign(Object.assign(Object.assign({},ve),oe==null?void 0:oe.style),Le)},dt),te.createElement(Me,{value:Fe},Bt)))});y.Compact=Ne.ZP;var x=y},8224:function(we,rt,ge){"use strict";ge.d(rt,{Z:function(){return he}});var te=ge(4676);function he(Ze,Re,se,Ne){var me=te.unstable_batchedUpdates?function(be){te.unstable_batchedUpdates(se,be)}:se;return Ze!=null&&Ze.addEventListener&&Ze.addEventListener(Re,me,Ne),{remove:function(){Ze!=null&&Ze.removeEventListener&&Ze.removeEventListener(Re,me,Ne)}}}},55468:function(we,rt,ge){"use strict";ge.d(rt,{g1:function(){return Ve},os:function(){return Ce}});var te=/margin|padding|width|height|max|min|offset/,he={left:!0,top:!0},Ze={cssFloat:1,styleFloat:1,float:1};function Re(ae){return ae.nodeType===1?ae.ownerDocument.defaultView.getComputedStyle(ae,null):{}}function se(ae,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ae.offsetHeight;if(a==="width")return ae.offsetWidth}return a in he||(he[a]=te.test(a)),he[a]?parseFloat(y)||0:y}function Ne(ae,a){var y=arguments.length,x=Re(ae);return a=Ze[a]?"cssFloat"in ae.style?"cssFloat":"styleFloat":a,y===1?x:se(ae,a,x[a]||ae.style[a])}function me(ae,a,y){var x=arguments.length;if(a=Ze[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)&&me(ae,b,a[b]);return Re(ae)}function Me(ae){return ae===document.body?document.documentElement.clientWidth:ae.offsetWidth}function be(ae){return ae===document.body?window.innerHeight||document.documentElement.clientHeight:ae.offsetHeight}function De(){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 Ve(){var ae=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ae,height:a}}function Be(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ce(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)}}}}]);
|