You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
130 lines
384 KiB
130 lines
384 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[508],{26227:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return ke}});var te=ge(5016),pe=ge(59301),Ke={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"},Ze=Ke,se=ge(7657),Ne=function(Ae,Te){return pe.createElement(se.Z,(0,te.Z)({},Ae,{ref:Te,icon:Ze}))},me=pe.forwardRef(Ne),ke=me},87169:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return ke}});var te=ge(5016),pe=ge(59301),Ke={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"},Ze=Ke,se=ge(7657),Ne=function(Ae,Te){return pe.createElement(se.Z,(0,te.Z)({},Ae,{ref:Te,icon:Ze}))},me=pe.forwardRef(Ne),ke=me},33853:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return ke}});var te=ge(5016),pe=ge(59301),Ke={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"},Ze=Ke,se=ge(7657),Ne=function(Ae,Te){return pe.createElement(se.Z,(0,te.Z)({},Ae,{ref:Te,icon:Ze}))},me=pe.forwardRef(Ne),ke=me},38819:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return ke}});var te=ge(5016),pe=ge(59301),Ke={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"},Ze=Ke,se=ge(7657),Ne=function(Ae,Te){return pe.createElement(se.Z,(0,te.Z)({},Ae,{ref:Te,icon:Ze}))},me=pe.forwardRef(Ne),ke=me},99587:function(we,it){"use strict";it.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63720: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 it=[];function ge(ae,a){var y=it.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=it.pop();return ae===void 0?new go.Point:ae}function pe(ae){it.push(ae)}function Ke(ae,a,y,x,b,E,z,ee,ne){ne||(ne=new go.Point);var oe=ae-y,re=b-z,ie=NaN,Se=NaN;if(oe===0)if(re===0)ae===y&&(ie=ae,Se=a);else{var ue=(E-ee)/re,xe=E-ue*b;ie=ae,Se=ue*ie+xe}else if(re===0){var Me=(a-x)/oe,ct=a-Me*ae;ie=b,Se=Me*ie+ct}else{var Me=(a-x)/oe,ue=(E-ee)/re,ct=a-Me*ae,xe=E-ue*b;ie=(xe-ct)/(Me-ue),Se=Me*ie+ct}return ne.x=ie,ne.y=Se,ne}function Ze(ae,a,y,x,b,E,z,ee,ne,oe,re,ie,Se,ue){var xe=1-ne,Me=ne,ct=ae*xe+y*Me,zt=a*xe+x*Me,Xt=y*xe+b*Me,Le=x*xe+E*Me,Xe=b*xe+z*Me,nt=E*xe+ee*Me,Ye=ct*xe+Xt*Me,dt=zt*xe+Le*Me,Dt=Xt*xe+Xe*Me,_t=Le*xe+nt*Me,At=Ye*xe+Dt*Me,Jt=dt*xe+_t*Me;oe.x=ct,oe.y=zt,re.x=Ye,re.y=dt,ie.x=At,ie.y=Jt,Se.x=Dt,Se.y=_t,ue.x=Xe,ue.y=nt}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 ke=[];function be(){var ae=ke.pop();return ae===void 0?[]:ae}function Ae(ae){ae.length=0,ke.push(ae)}function Te(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 Ge(ae){var a=Be(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 Ae(a),y}function Be(ae){for(var a=Te(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]=Ke(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],Ae(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var x=Te(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(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=Te(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(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=Te(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(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=Te(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(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=Te(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(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=Te(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(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=Te(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var x=Be(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var x=Be(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var x=Be(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var x=Be(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var x=Be(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var x=Be(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(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=Ge(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(),Ae(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=Ge(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(),Ae(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=Ge(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(),Ae(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=Ge(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(),Ae(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=Ge(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(),Ae(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=Ge(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(),Ae(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(),Se=te();Ze(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,Se,Se);var ue=te(),xe=te(),Me=te();Ze(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,Se,Se,Me,ue,xe);var ct=te(),zt=te(),Xt=te();Ze(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,ct,zt,Xt,Se,Se);var Le=te(),Xe=te(),nt=te();return Ze(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,Se,Se,nt,Le,Xe),ne.add(new go.PathSegment(go.PathSegment.Move,nt.x*a,nt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Le.x*a,Le.y*y,Xe.x*a,Xe.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,nt.x*a,nt.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Xt.x*a,Xt.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ue.x*a,ue.y*y,xe.x*a,xe.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,Xt.x*a,Xt.y*y,ct.x*a,ct.y*y,zt.x*a,zt.y*y).close()),pe(oe),pe(re),pe(ie),pe(Se),pe(ue),pe(xe),pe(Me),pe(ct),pe(zt),pe(Xt),pe(Le),pe(Xe),pe(nt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new 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(),Se=new go.PathFigure((z-E)*a,ee*y,!1);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Ze(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,ne,ne),Se.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 ue=ge(oe.x,oe.y);Ze(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,ne,ne,oe,re,ie);var xe=ge(oe.x,oe.y);Se.add(new go.PathSegment(go.PathSegment.Line,(ue.x*.1+.95*.9)*a,ue.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,ue.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,(xe.y*.1+.05*.9)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),Se.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 Me=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var ct=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(ct),pe(ne),pe(oe),pe(re),pe(ie),pe(ue),pe(xe),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(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=Ke(0,ee/y,1,ee/y,E/a,1,1,.5,te());return ne.spot2=new go.Spot(re.x,re.y),pe(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=Ke(0,ee/y,1,ee/y,E/a,1,1,.5,te());return ne.spot2=new go.Spot(re.x,re.y),pe(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=Ke(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=Ke(.7,1,1,.5,0,E/y,1,E/y,ne),z.spot2=new go.Spot(ne.x,ne.y),pe(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=Ke(0,.5,.3,ee/y,0,E/y,1,E/y,te());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ke(.7,ne/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),pe(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=Ke(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),pe(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=Ke(.7,ne/y,1,.5,0,z/y,1,z/y,te());return oe.spot2=new go.Spot(ie.x,ie.y),pe(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=Ke(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),pe(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=Ke(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),pe(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=Ke(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),pe(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=Ke(.7,1,1,.5,0,E/y,1,E/y,te());return z.spot2=new go.Spot(ne.x,ne.y),pe(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,Se=me*ie;ne=.05,oe=.25;var ue=new go.PathFigure(.5*a,.2*y,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ie)*a,oe*y,(ne+Se)*a,(oe-ie)*y,(ne+ie)*a,(oe-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,Se=me*ie,ne=.825,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-Se)*y,(ne+Se)*a,(oe-ie)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-Se)*a,(oe-ie)*y,(ne-ie)*a,(oe-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,Se=me*ie,ne=.5,oe=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-Se)*y,(ne+Se)*a,(oe-ie)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-Se)*a,(oe-ie)*y,(ne-ie)*a,(oe-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,Se=me*ie,ne=.175,oe=.35,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne+ie)*a,(oe-Se)*y,(ne+Se)*a,(oe-ie)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ie)*a,oe*y,(ne-Se)*a,(oe-ie)*y,(ne-ie)*a,(oe-Se)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,Se=me*ie,ne=.05,oe=.25,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(oe-ie)*y,(ne-ie)*a,(oe-Se)*y,(ne-Se)*a,(oe-ie)*y)),ue.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,Se=new go.PathFigure(ne*a+re,(oe+ee)*y+ie,!0);x.add(Se),Se.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)),Se.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)),Se.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)),Se.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 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*.2,ee=.2,ne=.5,oe=.5;var xe=new go.PathFigure((ne-ee)*a+re,oe*y+ie,!0);x.add(xe),xe.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)),xe.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)),xe.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)),xe.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 Me=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+re,oe*y+ie,(ne+z)*a+re,(oe-ee)*y+ie,(ne+ee)*a+re,(oe-z)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe+ee)*y+ie,(ne+ee)*a+re,(oe+z)*y+ie,(ne+z)*a+re,(oe+ee)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+re,oe*y+ie,ne*a+re,(oe+ee)*y+ie,(ne+ee-z*.5)*a+re,(oe+z)*y+ie)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+re,(oe-ee)*y+ie,(ne+ee-z*.5)*a+re,(oe-z)*y+ie,ne*a+re,(oe-ee)*y+ie).close()),z=me*.8,ee=.8,ne=1,oe=.5;var ct=new go.PathFigure(ne*a+re,(oe-ee)*y+ie,!0);return x.add(ct),ct.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)),ct.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)),ct.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)),ct.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();Ze(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,oe,re,ie);var Se=ge(oe.x,oe.y),ue=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(ue),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)),Ze(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,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)),b=me*.3,E=.3,Ze(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,ne,ne),ue.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.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)),Ze(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,ne,ne,oe,re,ie),ue.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 ue=new go.PathFigure(.45*a,0,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),pe(ne),pe(oe),pe(re),pe(ie),pe(Se),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,Se=.5,ue=0,xe=new go.PathFigure(ne*a,(1-oe)*y,!1);return x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+E)*a,(ue+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(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,Se=z,ue=z,xe=re*Se,Me=re*ue;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*a,ne*y,(ee-(xe+Se)/2)*a,(ne+(ue+Me)/2)*y,(ee-Se)*a,(ne+Me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ue)*y,(ee-Se)*a,(ne-Me)*y,(ee-xe)*a,(ne-ue)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*a,ne*y,(ee+xe)*a,(ne-ue)*y,(ee+Se)*a,(ne-Me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Se)*a,(ne+Me)*y,(ee+(xe+Se)/2)*a,(ne+(ue+Me)/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 ct=new go.PathFigure(.2*a,y,!1);x.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var zt=new go.PathFigure(.8*a,y,!1);return x.add(zt),zt.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,Se=new go.PathFigure((re-ne)*a,ie*y,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ne)*y,(re-ne)*a,(ie-oe)*y,(re-oe)*a,(ie-ne)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ie*y,(re+oe)*a,(ie-ne)*y,(re+ne)*a,(ie-oe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ne)*y,(re+ne)*a,(ie+oe)*y,(re+oe)*a,(ie+ne)*y)),Se.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 ue=new go.PathFigure((re-ne)*a,ie*y,!0);return 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)),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,Se=.175,ue=.95,ee=new go.PathFigure((Se-re)*a,ue*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ie)*y,(Se-ie)*a,(ue-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ie)*a,(ue-re)*y,(Se+re)*a,(ue-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ie)*y,(Se+ie)*a,(ue+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ie)*a,(ue+re)*y,(Se-re)*a,(ue+ie)*y));var re=.05,ie=me*.05,Se=.375,ue=.95,ne=new go.PathFigure((Se-re)*a,ue*y,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ie)*y,(Se-ie)*a,(ue-re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ie)*a,(ue-re)*y,(Se+re)*a,(ue-ie)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ie)*y,(Se+ie)*a,(ue+re)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ie)*a,(ue+re)*y,(Se-re)*a,(ue+ie)*y));var re=.05,ie=me*.05,Se=.625,ue=.95,oe=new go.PathFigure((Se-re)*a,ue*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ie)*y,(Se-ie)*a,(ue-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ie)*a,(ue-re)*y,(Se+re)*a,(ue-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ie)*y,(Se+ie)*a,(ue+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ie)*a,(ue+re)*y,(Se-re)*a,(ue+ie)*y));var re=.05,ie=me*.05,Se=.825,ue=.95,xe=new go.PathFigure((Se-re)*a,ue*y,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue-re)*y,(Se-re)*a,(ue-ie)*y,(Se-ie)*a,(ue-re)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+re)*a,ue*y,(Se+ie)*a,(ue-re)*y,(Se+re)*a,(ue-ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ue+re)*y,(Se+re)*a,(ue+ie)*y,(Se+ie)*a,(ue+re)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-re)*a,ue*y,(Se-ie)*a,(ue+re)*y,(Se-re)*a,(ue+ie)*y).close());var Me=new go.PathFigure(0,y,!1);return x.add(Me),Me.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")},43001: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={},it="5.0",ge={},te=null,pe=!1,Ke=!1,Ze=null,se=!1,Ne=null,me=null,ke=0;ke<arguments.length;ke++){var be=arguments[ke];if(be!==null)switch(typeof be){case"number":it=be.toFixed(1);break;case"string":be.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=be:Ze=be;break;case"object":typeof be.is3D!="undefined"?te=be:ge=be;break;case"boolean":pe=be,Ke=!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&&!Ke&&(pe=!0)),Ze!==null&&ge.id===void 0&&(ge.id=Ze);var Ae="",Te="",Ge=!1,Be=null,ae=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var ne=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};we.setHTML5Codebase=function(ye,Ce){me=ye,_t(ye,Ce)},we.setJavaCodebase=we.setJavaCodebaseVersion=we.isCompiledInstalled=we.setPreCompiledScriptPath=we.setPreCompiledResourcePath=function(){},we.setHTML5CodebaseVersion=function(ye,Ce){var Ve=parseFloat(ye);if(Ve!==NaN&&Ve<5){console.log("The GeoGebra HTML5 codebase version "+Ve+" is deprecated. Using version latest instead.");return}Ne=ye,Dt(ye,Ce)},we.getHTML5CodebaseVersion=function(){return ae},we.getParameters=function(){return ge},we.setFontsCSSURL=function(ye){z=ye},we.setGiacJSURL=function(ye){},we.setJNLPFile=function(ye){Ae=ye},we.setJNLPBaseDir=function(ye){},we.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ce="auto",Ve=ge.id,wt,Je=!1,vt=0;vt<arguments.length;vt++){var de=arguments[vt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ce=de:Ve=arguments[vt]):typeof de=="boolean"?Je=de:de instanceof HTMLElement&&(wt=de)}Qe();function Qe(){if(!se){setTimeout(Qe,200);return}Ce=Ye(Ce);var Ot=wt||document.getElementById(Ve);if(!Ot){console.log("possibly bug on ajax loading? ");return}if(we.removeExistingApplet(Ot,!1),ge.width===void 0&&Ot.clientWidth&&(ge.width=Ot.clientWidth),ge.height===void 0&&Ot.clientHeight&&(ge.height=Ot.clientHeight),!(ge.width&&ge.height)&&Ce==="html5"&&(delete ge.width,delete ge.height),Be=Ce,Ce==="screenshot")zt(Ot,ge);else{var kt=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?kt=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(kt=(!oe()||ye())&&re()),kt?(Be="screenshot",Le(Ot,ge,Je,Ce)):ct(Ot,ge,Je)}}};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 Ce=function(vt){var de=JSON.parse(vt),Qe=function(Et){return Et.type=="G"||Et.type=="E"},Ot=de.elements?de.elements.filter(Qe)[0]:de;if(!Ot||!Ot.url){Ve();return}ge.fileName=Ot.url,Se(Ot.settings||{}),te.is3D=!0;var kt="https://www.geogebra.org/images/";we.setPreviewImage(x||Ot.previewUrl,kt+"GeoGebra_loading.png",kt+"applet_play.png"),ye()},Ve=function(){ge.onError&&ge.onError(),At("Error: Fetching material (id "+ge.material_id+") failed.",ge)},wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Je="/materials/"+ge.material_id+"?scope=basic";ue("https://"+wt+"/api/proxy.php?path="+encodeURIComponent(Je),Ce,Ve)};function Se(ye){var Ce=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ve){ye[Ve]=!!ye[Ve]}),Ce.forEach(function(Ve){ge[Ve]===void 0&&ye[Ve]!==void 0&&(ge[Ve]=ye[Ve])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function ue(ye,Ce,Ve){var wt=new XMLHttpRequest;wt.open("GET",ye),wt.onload=function(){Ce(wt.responseText)},wt.onerror=Ve,wt.send()}we.isHTML5Installed=function(){return!0},we.getLoadedAppletType=function(){return Be},we.setPreviewImage=function(ye,Ce,Ve){x=ye,b=Ce,E=Ve},we.removeExistingApplet=function(ye,Ce){var Ve;typeof ye=="string"&&(ye=document.getElementById(ye)),Be=null;var wt=null;for(Ve=0;Ve<ye.childNodes.length;Ve++){var Je=ye.childNodes[Ve],vt=Je.className;vt==="applet_screenshot"?Ce?(Je.style.display="block",Be="screenshot"):Je.style.display="none":vt!=="applet_scaler prerender"&&(ye.removeChild(Je),wt=vt&&vt.indexOf("appletParameters")!=-1?Je.id:null,Ve--)}var de=ge.id!==void 0?ge.id:wt,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 xe=function(ye,Ce,Ve){var wt=document.createElement("param");wt.setAttribute("name",Ce),wt.setAttribute("value",Ve),ye.appendChild(wt)},Me=function(ye){return ye&&ye!=="false"},ct=function(ye,Ce,Ve){ne(ae)<=4.2&&(Ve=!0);var wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Je=document.createElement("div");Je.classList.add("appletParameters","notranslate");var vt=Ce.width,de=Ce.height;if(Ce.disableAutoScale=Ce.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ce.disableAutoScale,Ce.width!==void 0)if(ne(ae)<=4.4)Me(Ce.showToolBar)&&(Ce.height-=7),Me(Ce.showAlgebraInput)&&(Ce.height-=37),Ce.width<605&&Me(Ce.showToolBar)&&(Ce.width=605,vt=605);else{var Qe=100;(Me(Ce.showToolBar)||Me(Ce.showMenuBar))&&(Ce.hasOwnProperty("customToolBar")&&(Ce.customToolbar=Ce.customToolBar),Qe=Me(Ce.showMenuBar)?245:155),vt<Qe&&(Ce.width=Qe,vt=Qe)}Je.style.border="none",Je.style.display="inline-block";for(var Ot in Ce)Ce.hasOwnProperty(Ot)&&Ot!=="appletOnLoad"&&Je.setAttribute("data-param-"+Ot,Ce[Ot]);z&&Je.setAttribute("data-param-fontscssurl",z),we.resize=function(){GGBAppletUtils.responsiveResize(ye,Ce)},window.addEventListener("resize",function(yt){we.resize()});var kt=typeof Ce.appletOnLoad=="function"?Ce.appletOnLoad:function(){};if(!Ve&&Ce.width!==void 0){Ce.hasOwnProperty("showSplash")||Je.setAttribute("data-param-showSplash","false");var Et=ye.querySelector(".applet_scaler.prerender"),Ee=Et!==null;if(Ee)var ve=Et.querySelector(".ggb_preview");else{var ve=nt(vt,de,Ce.borderColor,!1);Et=document.createElement("div"),Et.className="applet_scaler",Et.style.position="relative",Et.style.display="block",Et.style.width=vt+"px",Et.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Et,"66%"),ne(ae)>=5?(Ce.appletOnLoad=function(yt){var It=ye.querySelector(".ggb_preview");It&&It.parentNode.removeChild(It),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Et),window.GGBT_wsf_view&&$(window).trigger("resize"),kt(yt)},Ee||Et.appendChild(ve)):Je.appendChild(ve),Et.appendChild(Je),Ee||ye.appendChild(Et),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(Je),ye.appendChild(fe),Ce.appletOnLoad=function(yt){we.resize(),kt(yt)}}function ze(yt,It){It&&typeof It.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(yt,It.appletOnLoad):renderGGBElement(yt),At("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",It)}function He(yt,It){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:yt,params:It}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(an){ze(an.article,an.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(yt.className+=" geogebraweb")):ze(yt,It)}if(wt){scriptLoadStarted=!0;for(var ot=0;ot<Je.childNodes.length;ot++){var Lt=Je.childNodes[ot].tagName;Lt==="TABLE"&&(Je.removeChild(Je.childNodes[ot]),ot--)}if(ggbHTML5LoadedScript!==null){var pt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');pt!=null&&pt.parentNode.removeChild(pt)}var bt=document.createElement("script"),Mt=function(){He(Je,Ce)};bt.src=Te+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=bt.src,At("GeoGebra HTML5 codebase loaded: '"+Te+"'.",Ce),!me&&(!Ne||Ne=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Mt()):Te.requirejs?__webpack_require__.e(7963).then(function(){var yt=[__webpack_require__(87963)];Mt.apply(null,yt)}.bind(this)).catch(__webpack_require__.oe):(bt.onload=Mt,ye.appendChild(bt))}else He(Je,Ce);Ce.height=de,Ce.width=vt},zt=function(ye,Ce,Ve){var wt=nt(Ce.width,Ce.height,Ce.borderColor,Ve),Je=document.createElement("div");Je.style.position="relative",Je.style.display="block",Je.style.width=Ce.width+"px",Je.style.height=Ce.height+"px",Je.className="applet_screenshot applet_scaler"+(Ve?" applet_screenshot_play":""),Je.appendChild(wt);var vt=GGBAppletUtils.getScale(Ce,ye,Ve);Ve?(ye.appendChild(Xe()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Je,"66%"),ye.appendChild(Je),vt!==1&&!isNaN(vt)&&(GGBAppletUtils.scaleElement(Je,vt),Je.style.width=Ce.width+"px",Je.style.height=Ce.height+"px",Je.parentNode.style.width=Ce.width*vt+"px",Je.parentNode.style.height=Ce.height*vt+"px"),we.resize=function(){Xt(ye,wt,Je,Ve)},window.addEventListener("resize",function(de){we.resize()}),we.resize()};function Xt(ye,Ce,Ve,wt){if(ye.contains(Ce)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var Je=GGBAppletUtils.getScale(ge,ye,wt);Ve.parentNode!==null&&(!isNaN(Je)&&Je!==1?(GGBAppletUtils.scaleElement(Ve,Je),Ve.parentNode.style.width=ge.width*Je+"px",Ve.parentNode.style.height=ge.height*Je+"px"):(GGBAppletUtils.scaleElement(Ve,1),Ve.parentNode.style.width=ge.width+"px",Ve.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}we.onExitFullscreen=function(ye,Ce){Ce.appendChild(ye)};var Le=function(ye,Ce,Ve,wt){zt(ye,Ce,!0);for(var Je=function(){var Qe=[];for(de=0;de<ye.childNodes.length;de++)Qe.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var Ot=window.GGBT_wsf_view.renderFullScreen(ye,Ce.id),kt=document.getElementById("fullscreencontainer"),Et=jQuery(ye).find(".fullscreencontent");Et.length>0?(Ot.remove(),Et.attr("id","fullscreencontent").show(),jQuery(kt).append(Et),window.dispatchEvent(new Event("resize"))):ct(Ot,Ce,!1),window.GGBT_wsf_view.launchFullScreen(kt)}else Be=wt,ct(ye,Ce,!1);if(!window.GGBT_wsf_view)for(de=0;de<Qe.length;de++)ye.removeChild(Qe[de])},vt=ye.getElementsByClassName("ggb_preview_play"),de=0;de<vt.length;de++)vt[de].addEventListener("click",Je,!1),vt[de].addEventListener("ontouchstart",Je,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Xe=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ce='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ve=document.createElement("style");Ve.styleSheet?Ve.styleSheet.cssText=Ce:Ve.appendChild(document.createTextNode(Ce)),document.getElementsByTagName("head")[0].appendChild(Ve)}return ye},nt=function(ye,Ce,Ve,wt){var Je=document.createElement("div");Je.className="ggb_preview",Je.style.position="absolute",Je.style.zIndex="90",Je.style.width=ye-2+"px",Je.style.height=Ce-2+"px",Je.style.top="0px",Je.style.left="0px",Je.style.overflow="hidden",Je.style.backgroundColor="white";var vt="lightgrey";Ve!==void 0&&(Ve==="none"?vt="transparent":vt=Ve),Je.style.border="1px solid "+vt;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,Ot,kt;if(!wt){Qe=document.createElement("img"),Qe.style.position="absolute",Qe.style.zIndex="1001",Qe.style.opacity=1,de.style.opacity=.3,Ot=360,Ot>ye/4*3&&(Ot=ye/4*3),kt=Ot/5.8,Qe.setAttribute("src",b),Qe.setAttribute("width",Ot),Qe.setAttribute("height",kt);var Et=(ye-Ot)/2,Ee=(Ce-kt)/2;Qe.style.left=Et+"px",Qe.style.top=Ee+"px",Je.appendChild(Qe)}}return Je.appendChild(de),Je},Ye=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},dt=["web","webSimple","web3d","tablet","tablet3d","phone"],Dt=function(ye,Ce){if(ae=ye,Ce){_t(ae,!0);return}var Ve=!pe;if(Ve){var wt=ne(ae);!isNaN(wt)&&wt<4.4&&(Ve=!1)}var Je,vt;window.location.protocol.substr(0,4)==="http"?Je=window.location.protocol:Je="http:";var de=ae.indexOf("//");de>0?vt=ae:de===0?vt=Je+ae:vt="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]+"/"){_t(vt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ve&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Me(ge.showToolBar)&&!Me(ge.showMenuBar)&&!Me(ge.showAlgebraInput)&&!Me(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?vt+="webSimple/":vt+="web3d/",_t(vt,!1)},_t=function(ye,Ce){if(ye.requirejs){Te=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),Te=ye,Ce===null&&(Ce=ye.indexOf("http")===-1),Ge=Ce,a="web.nocache.js",y=!1;var Ve=Te.split("/");Ve.length>1&&(!Ce&&Ve[Ve.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):dt.indexOf(Ve[Ve.length-2])>=0&&(a=Ve[Ve.length-2]+".nocache.js")),Ve=ye.split("/"),ae=Ve[Ve.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var wt=parseFloat(ae);wt!==NaN&&wt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wt+" is deprecated. Using version latest instead."),Dt("5.0",Ce))},At=function(ye,Ce){window.console&&window.console.log&&(!Ce||typeof Ce.showLogging=="undefined"||Ce.showLogging&&Ce.showLogging!=="false")&&console.log(ye)};ge.material_id!==void 0?ie(Jt):Jt();function Jt(){var ye=it;Ne!==null?ye=Ne:parseFloat(ye)<5&&(ye="5.0"),Dt(ye,!1),me!==null&&_t(me,Ge),se=!0}return we},GGBAppletUtils=function(){"use strict";function we(){return window.GGBT_wsf_edit!==void 0}function it(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,ke,be,Ae){var Te=null;if(Ae!=null&&Ae!="")for(var Ge=se.parentNode;Ge!=null;)if((" "+Ge.className+" ").indexOf(" "+Ae+" ")>-1){Te=Ge;break}else Ge=Ge.parentNode;var Be=0,ae=0,a=0,y=0,x=0,b=0,E=0;if(Te)Be=Te.offsetWidth,ae=Math.max(ke?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Be=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Be):(Be=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),se){var z=se.getBoundingClientRect();z.left>0&&z.left<=Be&&(be===void 0||!be)&&(document.dir==="rtl"?(x=Be-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(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<Be?Be=Ne:Be-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ae-=E)),{width:Be,height:ae}}function te(se,Ne,me,ke,be){if(se.isScreenshoGenerator)return 1;var Ae=ke!==void 0&&ke,Te=se.noScaleMargin!=null&&se.noScaleMargin,Ge=function(ee){return ee&&ee!=="false"},Be=Ge(se.autoHeight),ae=ge(Ne,se.width,me,Be,Ae&&window.GGBT_wsf_view||Te,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=Ae?1:ae.height/x;return me!==void 0&&!me&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function pe(se,Ne,me){var ke=1,be,Ae=!1;if(se.hasOwnProperty("allowUpscale")&&(Ae=se.allowUpscale),se.hasOwnProperty("scale")&&(ke=parseFloat(se.scale),(isNaN(ke)||ke===null||ke===0)&&(ke=1),ke>1&&(Ae=!0)),Ne&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(se.hasOwnProperty("disableAutoScale")&&se.disableAutoScale))be=te(se,Ne,Ae,me,se.scaleContainerClass);else return ke;return Ae&&(!se.hasOwnProperty("scale")||ke===1)?be:Math.min(ke,be)}function Ke(se){var Ne=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=se.getBoundingClientRect(),be=(Ne-ke.width)/2,Ae=(me-ke.height)/2;Ae<0&&(Ae=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=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?se.style.top="40px":se.style.top=Ae+"px",se.style.left=be+"px")}function Ze(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 ke=pe(Ne,se);we()&&me.setAttribute("data-param-scale",ke);for(var be=null,Ae=0;Ae<se.childNodes.length;Ae++)if(se.childNodes[Ae].className!==void 0&&se.childNodes[Ae].className.match(/^applet_scaler/)){be=se.childNodes[Ae];break}if(be!==null&&be.querySelector(".noscale")!==null)return;var Te=Ne.id!==void 0?Ne.id:"ggbApplet",Ge=window[Te];(Ge==null||!Ge.recalculateEnvironments)&&be!==null&&!be.className.match(/fullscreen/)&&(be.parentNode.style.transform="",!isNaN(ke)&&ke!==1?(be.parentNode.style.width=Ne.width*ke+"px",be.parentNode.style.height=Ne.height*ke+"px",it(be,ke)):(it(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()&&Ke(se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Ze,isFlexibleWorksheetEditor:we,positionCenter:Ke,getScale:pe,scaleElement:it}}();__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,it){}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 it=s[L].bindings;s[L].bindings=function(){for(var ge=it?it():{},te=we[webModule.__softPermutationId],pe=O;pe<te.length;pe++){var Ke=te[pe];ge[Ke[O]]=Ke[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 it=document.compatMode==U?V:W;t.write(it+X),t.close()}}}function w(we){function it(te){function pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=pe();if(Ke){te();return}function Ze(){if(!Ke){if(!pe())return;Ke=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Ze,!1),se&&clearInterval(se)}}o.addEventListener&&o.addEventListener(Z,Ze,!1);var se=setInterval(function(){Ze()},$)}function ge(te){var pe=u(),Ke=pe.body,Ze=pe.createElement(_);Ze.language=ab,Ze.crossOrigin=W,Ze.src=te,webModule.__errFn&&(Ze.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Ke.appendChild(Ze)}it(function(){ge(we)})}webModule.__startLoadingFragment=function(we){return C(we)},webModule.__installRunAsyncCode=function(we){var it=u(),ge=it.body,te=it.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 it=c[we];return it==null?null:it},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 ke=se.lastIndexOf(tb,Math.min(me,Ne));return ke>=O?se.substring(O,ke+P):W}function it(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 pe(){var se=o.getElementsByTagName(yb);return se.length>O?se[se.length-P].href:W}function Ke(){var se=o.location;return se.href==se.protocol+zb+se.host+se.pathname+se.search+se.hash}var Ze=ge();return Ze==W&&(Ze=te()),Ze==W&&(Ze=pe()),Ze==W&&Ke()&&(Ze=we(o.location.href)),Ze=it(Ze),Ze}function C(we){return we.match(/^\//)||we.match(/^[a-zA-Z]+:\/\//)?we:webModule.__moduleBase+we}function D(){var we=[],it=O,ge=[],te=[];function pe(se){var Ne=te[se](),me=ge[se];if(Ne in me)return Ne;var ke=[];for(var be in me)ke[me[be]]=be;throw r&&r(se,ke,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]=pe(Ne));return se},webModule.__computePropValue=pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Ze=Ke.indexOf(Db);Ze!=-1&&(it=parseInt(Ke.substring(Ze+P),$),Ke=Ke.substring(O,Ze))}catch(se){}return webModule.__softPermutationId=it,C(Ke+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})()},46699:function(we,it,ge){"use strict";ge.d(it,{Ax:function(){return Ze},Ds:function(){return se},KI:function(){return me},SI:function(){return Ke},f1:function(){return pe}});var te=ge(346);function pe(ke){let be=!0;if(ke.length>0){for(let Ae=0;Ae<ke.length;Ae++)if(ke[Ae].compile_success==0||!ke[Ae].compile_success){be=!1;break}}else be=!1;return be}function Ke(ke,be=""){let Ae=[];for(let Te=0;Te<ke.length;Te++){let Ge=ke[Te],Be=be?`${be}/${Ge.name}`:`${Ge.name}`;Ae.push({title:Ge.name,type:Ge.type,isLeaf:Ge.type!=="tree",key:Be})}return Ae}function Ze(ke,be,Ae){for(let Te=0;Te<ke.length;Te++){let Ge=ke[Te];if(Ge.key===be){Ge.children=Ae;break}Ge.children&&Ze(Ge.children,be,Ae)}return ke}function se(ke,be,Ae){let Te;return function(){let Ge=this,Be=arguments,ae=function(){Te=null,Ae||ke.apply(Ge,Be)},a=Ae&&!Te;clearTimeout(Te),Te=setTimeout(ae,be),a&&ke.apply(Ge,Be)}}const Ne=!0,me=te.Z.API_SERVER},9507:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return Te}});var te=ge(59301),pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=ge(92310),Ze=ge.n(Ke),se=ge(71418),Ne=ge(2859),me=ge(38986),ke=ge(51257),be=(Ge,Be,ae)=>new Promise((a,y)=>{var x=z=>{try{E(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ae.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ae=ae.apply(Ge,Be)).next())}),Te=({data:Ge,className:Be,fullWidth:ae,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),oe=(0,te.useRef)(null),[re,ie]=(0,te.useState)(!1),[Se,ue]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),Ge!=null&&Ge.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",Ge!=null&&Ge.src&&xe()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[Ge==null?void 0:Ge.visible]);const xe=()=>be(void 0,null,function*(){ie(!0),ue("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,ke.ZJ)(Ge==null?void 0:Ge.src);z.current.src="",z.current.src=Le,z.current.onload=function(){Xt()},ie(!1),ue("")}),Me=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},ct=Le=>be(void 0,null,function*(){ie(!0),ue("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Xe=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ge.title,file:Le.dataUrl}});Xe!=null&&Xe.id&&!E?(yield(0,me.ZP)(`/api/attachments/${Ge.id}/add_subitem.json`,{method:"post",body:{subitem_id:Xe==null?void 0:Xe.id,settings:JSON.stringify(Le.state)}})).status===0&&x():Xe!=null&&Xe.id&&x(Xe),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",ie(!1),ue("")}),zt=()=>{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(nt=>{const Ye=document.querySelector(nt.name);Ye&&Ye.setAttribute("title",nt.title)})},Xt=()=>{ee.current=new Ne.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",ct),ee.current.addEventListener("beforeclose",Me),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(),Ge!=null&&Ge.snapshotData&&ee.current.restoreState(Ge.snapshotData),setTimeout(()=>{window.scrollTo(0,0),zt()},300)};return te.createElement(te.Fragment,null,(Ge==null?void 0:Ge.visible)&&te.createElement(se.Z,{spinning:re,tip:Se,style:{position:"absolute"}},te.createElement("div",{ref:oe,className:Ze()(pe.imageDimensions,Be,ae?pe.fullWidth:""),style:a},te.createElement("img",{className:pe.img,ref:z}))))}},76562:function(we,it,ge){"use strict";var te=ge(59301),pe=ge(95237),Ke=ge(43604),Ze=ge(99313),se=ge(3113),Ne=ge(91842),me=ge(99587),ke=ge(48136),be=ge(59301);const Ae=(0,te.forwardRef)(({callback:Te,showSaveButton:Ge,value:Be=""},ae)=>{const a=(0,te.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:be.createElement(pe.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,ne)=>be.createElement(Ke.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(pe.Z,{gutter:[10,10]},oe.data.map((ie,Se)=>be.createElement(Ke.Z,{key:Se,onClick:()=>b(ie),className:me.Z.diamond},be.createElement(Ne.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:be.createElement(pe.Z,{className:me.Z.lists,gutter:[10,10]},x.map((ee,ne)=>be.createElement(Ke.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(pe.Z,{gutter:[10,10]},oe.data.map((ie,Se)=>be.createElement(Ke.Z,{key:Se,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 Te&&Te(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),be.createElement("div",{className:me.Z.mathWrap},be.createElement(Ze.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}},Be||""),Ge&&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")))});it.Z=Ae},77525:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return en}});var te=ge(59301),pe=ge(49535),Ke=ge(15277),Ze=ge(92310),se=ge.n(Ze),Ne=ge(5016),me=ge(20049),ke=ge(18082),be=ge(52456),Ae=ge(10928),Te=ge(5883),Ge=ge(55468),Be=ge(18929),ae=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],a=te.createContext(null),y=0;function x($e,le){var Oe=te.useState(function(){return y+=1,String(y)}),qe=(0,be.Z)(Oe,1),gt=qe[0],je=te.useContext(a),st={data:le,canPreview:$e};return te.useEffect(function(){if(je)return je.register(gt,st)},[]),te.useEffect(function(){je&&je.register(gt,st)},[$e,le]),gt}function b($e){return new Promise(function(le){var Oe=document.createElement("img");Oe.onerror=function(){return le(!1)},Oe.onload=function(){return le(!0)},Oe.src=$e})}function E($e){var le=$e.src,Oe=$e.isCustomPlaceholder,qe=$e.fallback,gt=(0,te.useState)(Oe?"loading":"normal"),je=(0,be.Z)(gt,2),st=je[0],St=je[1],Nt=(0,te.useRef)(!1),et=st==="error";(0,te.useEffect)(function(){b(le).then(function(Tt){Tt||St("error")})},[le]),(0,te.useEffect)(function(){Oe&&!Nt.current?St("loading"):et&&St("normal")},[le]);var Gt=function(){St("normal")},ht=function(Ut){Nt.current=!1,st==="loading"&&Ut!=null&&Ut.complete&&(Ut.naturalWidth||Ut.naturalHeight)&&(Nt.current=!0,Gt())},Ft=et&&qe?{src:qe}:{onLoad:Gt,src:le};return[ht,Ft,st]}var z=ge(86923),ee=ge(8224),ne=ge(10228),oe=ge(48736);function re($e,le,Oe,qe){var gt=le+Oe,je=(Oe-qe)/2;if(Oe>qe){if(le>0)return(0,ke.Z)({},$e,je);if(le<0&><qe)return(0,ke.Z)({},$e,-je)}else if(le<0||gt>qe)return(0,ke.Z)({},$e,le<0?je:-je);return{}}function ie($e,le,Oe,qe){var gt=(0,Ge.g1)(),je=gt.width,st=gt.height,St=null;return $e<=je&&le<=st?St={x:0,y:0}:($e>je||le>st)&&(St=(0,me.Z)((0,me.Z)({},re("x",Oe,$e,je)),re("y",qe,le,st))),St}var Se=ge(13697),ue=ge(16089),xe={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Me($e,le,Oe,qe){var gt=(0,te.useRef)(null),je=(0,te.useRef)([]),st=(0,te.useState)(xe),St=(0,be.Z)(st,2),Nt=St[0],et=St[1],Gt=function(Ut){et(xe),qe&&!(0,Se.Z)(xe,Nt)&&qe({transform:xe,action:Ut})},ht=function(Ut,Fn){gt.current===null&&(je.current=[],gt.current=(0,ue.Z)(function(){et(function(Fe){var gn=Fe;return je.current.forEach(function(Yt){gn=(0,me.Z)((0,me.Z)({},gn),Yt)}),gt.current=null,qe==null||qe({transform:gn,action:Fn}),gn})})),je.current.push((0,me.Z)((0,me.Z)({},Nt),Ut))},Ft=function(Ut,Fn,Fe,gn){var Yt=$e.current,Mn=Yt.width,Qt=Yt.height,Re=Yt.offsetWidth,mt=Yt.offsetHeight,Bt=Yt.offsetLeft,at=Yt.offsetTop,Ht=Ut,Wt=Nt.scale*Ut;Wt>Oe?(Ht=Oe/Nt.scale,Wt=Oe):Wt<le&&(Ht=le/Nt.scale,Wt=le);var dn=Fe!=null?Fe:innerWidth/2,ln=gn!=null?gn:innerHeight/2,hn=Ht-1,Vn=hn*Mn*.5,An=hn*Qt*.5,Yn=hn*(dn-Nt.x-Bt),ta=hn*(ln-Nt.y-at),In=Nt.x-(Yn-Vn),Jn=Nt.y-(ta-An);if(Ut<1&&Wt===1){var Rn=Re*Wt,kn=mt*Wt,Qn=(0,Ge.g1)(),Dn=Qn.width,Cn=Qn.height;Rn<=Dn&&kn<=Cn&&(In=0,Jn=0)}ht({x:In,y:Jn,scale:Wt},Fn)};return{transform:Nt,resetTransform:Gt,updateTransform:ht,dispatchZoomChange:Ft}}var ct=ge(43403),zt=ge(77900),Xt=function(le){var Oe=le.visible,qe=le.maskTransitionName,gt=le.getContainer,je=le.prefixCls,st=le.rootClassName,St=le.icons,Nt=le.countRender,et=le.showSwitch,Gt=le.showProgress,ht=le.current,Ft=le.transform,Tt=le.count,Ut=le.scale,Fn=le.minScale,Fe=le.maxScale,gn=le.closeIcon,Yt=le.onSwitchLeft,Mn=le.onSwitchRight,Qt=le.onClose,Re=le.onZoomIn,mt=le.onZoomOut,Bt=le.onRotateRight,at=le.onRotateLeft,Ht=le.onFlipX,Wt=le.onFlipY,dn=le.toolbarRender,ln=(0,te.useContext)(a),hn=St.rotateLeft,Vn=St.rotateRight,An=St.zoomIn,Yn=St.zoomOut,ta=St.close,In=St.left,Jn=St.right,Rn=St.flipX,kn=St.flipY,Qn="".concat(je,"-operations-operation");te.useEffect(function(){var pn=function(jn){jn.keyCode===ne.Z.ESC&&Qt()};return Oe&&window.addEventListener("keydown",pn),function(){window.removeEventListener("keydown",pn)}},[Oe]);var Dn=[{icon:kn,onClick:Wt,type:"flipY"},{icon:Rn,onClick:Ht,type:"flipX"},{icon:hn,onClick:at,type:"rotateLeft"},{icon:Vn,onClick:Bt,type:"rotateRight"},{icon:Yn,onClick:mt,type:"zoomOut",disabled:Ut===Fn},{icon:An,onClick:Re,type:"zoomIn",disabled:Ut===Fe}],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,ke.Z)(Gn,"".concat(je,"-operations-operation-").concat(un),!0),(0,ke.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(zt.default,{visible:Oe,motionName:qe},function(pn){var Gn=pn.className,jn=pn.style;return te.createElement(ct.Z,{open:!0,getContainer:gt!=null?gt: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),et&&te.createElement(te.Fragment,null,te.createElement("div",{className:se()("".concat(je,"-switch-left"),(0,ke.Z)({},"".concat(je,"-switch-left-disabled"),ht===0)),onClick:Yt},In),te.createElement("div",{className:se()("".concat(je,"-switch-right"),(0,ke.Z)({},"".concat(je,"-switch-right-disabled"),ht===Tt-1)),onClick:Mn},Jn)),te.createElement("div",{className:"".concat(je,"-footer")},Gt&&te.createElement("div",{className:"".concat(je,"-progress")},Nt?Nt(ht+1,Tt):"".concat(ht+1," / ").concat(Tt)),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:Wt,onFlipX:Ht,onRotateLeft:at,onRotateRight:Bt,onZoomOut:mt,onZoomIn:Re},transform:Ft},ln?{current:ht,total:Tt}:{})):qn)))})},Le=Xt,Xe=1,nt=1,Ye=["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"],Dt=function(le){var Oe=le.fallback,qe=le.src,gt=le.imgRef,je=(0,Te.Z)(le,Ye),st=E({src:qe,fallback:Oe}),St=(0,be.Z)(st,2),Nt=St[0],et=St[1];return te.createElement("img",(0,Ne.Z)({ref:function(ht){gt.current=ht,Nt(ht)}},je,et))},_t=function(le){var Oe=le.prefixCls,qe=le.src,gt=le.alt,je=le.fallback,st=le.movable,St=st===void 0?!0:st,Nt=le.onClose,et=le.visible,Gt=le.icons,ht=Gt===void 0?{}:Gt,Ft=le.rootClassName,Tt=le.closeIcon,Ut=le.getContainer,Fn=le.current,Fe=Fn===void 0?0:Fn,gn=le.count,Yt=gn===void 0?1:gn,Mn=le.countRender,Qt=le.scaleStep,Re=Qt===void 0?.5:Qt,mt=le.minScale,Bt=mt===void 0?1:mt,at=le.maxScale,Ht=at===void 0?50:at,Wt=le.transitionName,dn=Wt===void 0?"zoom":Wt,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,Te.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&&Yt>1,jn=pn&&Yt>=1,na=Me(Rn,Bt,Ht,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,ke.Z)({},"".concat(Oe,"-moving"),Cn));(0,te.useEffect)(function(){fa||ra(!0)},[fa]);var ft=function(){zn("close")},tt=function(){$n(Xe+Re,"zoomIn")},lt=function(){$n(Xe/(Xe+Re),"zoomOut")},Pt=function(){Zn({rotate:Hn+90},"rotateRight")},Vt=function(){Zn({rotate:Hn-90},"rotateLeft")},nn=function(){Zn({flipX:!un.flipX},"flipX")},wn=function(){Zn({flipY:!un.flipY},"flipY")},bn=function(Zt){Zt==null||Zt.preventDefault(),Zt==null||Zt.stopPropagation(),Fe>0&&(ra(!1),zn("prev"),In==null||In(Fe-1,Fe))},Bn=function(Zt){Zt==null||Zt.preventDefault(),Zt==null||Zt.stopPropagation(),Fe<Yt-1&&(ra(!1),zn("next"),In==null||In(Fe+1,Fe))},En=function(){if(et&&Cn){qn(!1);var Zt=kn.current,Ln=Zt.transformX,pa=Zt.transformY,aa=ua!==Ln&&da!==pa;if(!aa)return;var ha=Rn.current.offsetWidth*Wn,va=Rn.current.offsetHeight*Wn,ca=Rn.current.getBoundingClientRect(),ga=ca.left,Ea=ca.top,Fa=Hn%180!==0,Ca=ie(Fa?va:ha,Fa?ha:va,ga,Ea);Ca&&Zn((0,me.Z)({},Ca),"dragRebound")}},la=function(Zt){!St||Zt.button!==0||(Zt.preventDefault(),Zt.stopPropagation(),kn.current={deltaX:Zt.pageX-un.x,deltaY:Zt.pageY-un.y,transformX:un.x,transformY:un.y},qn(!0))},_n=function(Zt){et&&Cn&&Zn({x:Zt.pageX-kn.current.deltaX,y:Zt.pageY-kn.current.deltaY},"move")},ya=function(Zt){if(!(!et||Zt.deltaY==0)){var Ln=Math.abs(Zt.deltaY/100),pa=Math.min(Ln,nt),aa=Xe+pa*Re;Zt.deltaY>0&&(aa=Xe/aa),$n(aa,"wheel",Zt.clientX,Zt.clientY)}},wa=function(Zt){!et||!Gn||(Zt.keyCode===ne.Z.LEFT?bn():Zt.keyCode===ne.Z.RIGHT&&Bn())},ba=function(Zt){et&&(Wn!==1?Zn({x:0,y:0,scale:1},"doubleClick"):$n(Xe+Re,"doubleClick",Zt.clientX,Zt.clientY))};(0,te.useEffect)(function(){var vn,Zt,Ln,pa;if(St){Ln=(0,ee.Z)(window,"mouseup",En,!1),pa=(0,ee.Z)(window,"mousemove",_n,!1);try{window.top!==window.self&&(vn=(0,ee.Z)(window.top,"mouseup",En,!1),Zt=(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=Ln)===null||aa===void 0||aa.remove(),(ha=pa)===null||ha===void 0||ha.remove(),(va=vn)===null||va===void 0||va.remove(),(ca=Zt)===null||ca===void 0||ca.remove()}},[et,Cn,ua,da,Hn,St]),(0,te.useEffect)(function(){var vn=(0,ee.Z)(window,"keydown",wa,!1);return function(){vn.remove()}},[et,Gn,Fe]);var Ba=te.createElement(Dt,(0,Ne.Z)({},An,{width:le.width,height:le.height,imgRef:Rn,className:"".concat(Oe,"-img"),alt:gt,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:Oe,onClose:Nt,visible:et,wrapClassName:xa,rootClassName:Ft,getContainer:Ut},Jn,{afterClose:ft}),te.createElement("div",{className:"".concat(Oe,"-img-wrapper")},Vn?Vn(Ba,(0,me.Z)({transform:un},pn?{current:Fe}:{})):Ba)),te.createElement(Le,{visible:et,transform:un,maskTransitionName:hn,closeIcon:Tt,getContainer:Ut,prefixCls:Oe,rootClassName:Ft,icons:ht,countRender:Mn,showSwitch:Gn,showProgress:jn,current:Fe,count:Yt,scale:Wn,minScale:Bt,maxScale:Ht,toolbarRender:Yn,onSwitchLeft:bn,onSwitchRight:Bn,onZoomIn:tt,onZoomOut:lt,onRotateRight:Pt,onRotateLeft:Vt,onFlipX:nn,onFlipY:wn,onClose:Nt}))},At=_t,Jt=ge(92393);function ye($e){var le=te.useState({}),Oe=(0,be.Z)(le,2),qe=Oe[0],gt=Oe[1],je=te.useCallback(function(St,Nt){return gt(function(et){return(0,me.Z)((0,me.Z)({},et),{},(0,ke.Z)({},St,Nt))}),function(){gt(function(et){var Gt=(0,me.Z)({},et);return delete Gt[St],Gt})}},[]),st=te.useMemo(function(){return $e?$e.map(function(St){if(typeof St=="string")return{data:{src:St}};var Nt={};return Object.keys(St).forEach(function(et){["src"].concat((0,Jt.Z)(ae)).includes(et)&&(Nt[et]=St[et])}),{data:Nt}}):Object.keys(qe).reduce(function(St,Nt){var et=qe[Nt],Gt=et.canPreview,ht=et.data;return Gt&&St.push({data:ht,id:Nt}),St},[])},[$e,qe]);return[st,je]}var Ce=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ve=["src"],wt=function(le){var Oe,qe=le.previewPrefixCls,gt=qe===void 0?"rc-image-preview":qe,je=le.children,st=le.icons,St=st===void 0?{}:st,Nt=le.items,et=le.preview,Gt=le.fallback,ht=(0,Ae.Z)(et)==="object"?et:{},Ft=ht.visible,Tt=ht.onVisibleChange,Ut=ht.getContainer,Fn=ht.current,Fe=ht.movable,gn=ht.minScale,Yt=ht.maxScale,Mn=ht.countRender,Qt=ht.closeIcon,Re=ht.onChange,mt=ht.onTransform,Bt=ht.toolbarRender,at=ht.imageRender,Ht=(0,Te.Z)(ht,Ce),Wt=ye(Nt),dn=(0,be.Z)(Wt,2),ln=dn[0],hn=dn[1],Vn=(0,Be.Z)(0,{value:Fn}),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=((Oe=ln[Yn])===null||Oe===void 0?void 0:Oe.data)||{},Dn=Qn.src,Cn=(0,Te.Z)(Qn,Ve),qn=(0,Be.Z)(!!Ft,{value:Ft,onChange:function(Hn,Wn){Tt==null||Tt(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),Re==null||Re(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(At,(0,Ne.Z)({"aria-hidden":!Gn,movable:Fe,visible:Gn,prefixCls:gt,closeIcon:Qt,onClose:Pa,mousePosition:zn,imgCommonProps:Cn,src:Dn,fallback:Gt,icons:St,minScale:gn,maxScale:Yt,getContainer:Ut,current:Yn,count:ln.length,countRender:Mn,onTransform:mt,toolbarRender:Bt,imageRender:at,onChange:La},Ht)))},Je=wt,vt=["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 Oe=le.src,qe=le.alt,gt=le.onPreviewClose,je=le.prefixCls,st=je===void 0?"rc-image":je,St=le.previewPrefixCls,Nt=St===void 0?"".concat(st,"-preview"):St,et=le.placeholder,Gt=le.fallback,ht=le.width,Ft=le.height,Tt=le.style,Ut=le.preview,Fn=Ut===void 0?!0:Ut,Fe=le.className,gn=le.onClick,Yt=le.onError,Mn=le.wrapperClassName,Qt=le.wrapperStyle,Re=le.rootClassName,mt=(0,Te.Z)(le,vt),Bt=et&&et!==!0,at=(0,Ae.Z)(Fn)==="object"?Fn:{},Ht=at.src,Wt=at.visible,dn=Wt===void 0?void 0:Wt,ln=at.onVisibleChange,hn=ln===void 0?gt: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,Te.Z)(at,de),pn=Ht!=null?Ht:Oe,Gn=(0,Be.Z)(!!dn,{value:dn,onChange:hn}),jn=(0,be.Z)(Gn,2),na=jn[0],un=jn[1],zn=E({src:Oe,isCustomPlaceholder:Bt,fallback:Gt}),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=!!Fn,xa=function(){un(!1),Wn(null)},ft=se()(st,Mn,Re,(0,ke.Z)({},"".concat(st,"-error"),Pa==="error")),tt=(0,te.useMemo)(function(){var nn={};return ae.forEach(function(wn){le[wn]!==void 0&&(nn[wn]=le[wn])}),nn},ae.map(function(nn){return le[nn]})),lt=(0,te.useMemo)(function(){return(0,me.Z)((0,me.Z)({},tt),{},{src:pn})},[pn,tt]),Pt=x(da,lt),Vt=function(wn){var bn=(0,Ge.os)(wn.target),Bn=bn.left,En=bn.top;ua?ua.onPreview(Pt,Bn,En):(Wn({x:Bn,y:En}),un(!0)),gn==null||gn(wn)};return te.createElement(te.Fragment,null,te.createElement("div",(0,Ne.Z)({},mt,{className:ft,onClick:da?Vt:gn,style:(0,me.Z)({width:ht,height:Ft},Qt)}),te.createElement("img",(0,Ne.Z)({},tt,{className:se()("".concat(st,"-img"),(0,ke.Z)({},"".concat(st,"-img-placeholder"),et===!0),Fe),style:(0,me.Z)({height:Ft},Tt),ref:$n},La,{width:ht,height:Ft,onError:Yt})),Pa==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(st,"-placeholder")},et),Yn&&da&&te.createElement("div",{className:se()("".concat(st,"-mask"),ta),style:{display:(Tt==null?void 0:Tt.display)==="none"?"none":void 0}},Yn)),!ua&&da&&te.createElement(At,(0,Ne.Z)({"aria-hidden":!na,visible:na,prefixCls:Nt,onClose:xa,mousePosition:Hn,src:pn,alt:qe,fallback:Gt,getContainer:An,icons:Jn,movable:In,scaleStep:Rn,minScale:kn,maxScale:Qn,rootClassName:Re,imageRender:Dn,imgCommonProps:tt,toolbarRender:Cn},qn)))};Qe.PreviewGroup=Je,Qe.displayName="Image";var Ot=Qe,kt=Ot,Et=ge(62892),Ee=ge(36355),ve=ge(31724),fe=ge(99267),ze=ge(33853),He=ge(38819),ot={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"},Lt=ot,pt=ge(7657),bt=function(le,Oe){return te.createElement(pt.Z,(0,Ne.Z)({},le,{ref:Oe,icon:Lt}))},Mt=te.forwardRef(bt),yt=Mt,It={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=It,Pn=function(le,Oe){return te.createElement(pt.Z,(0,Ne.Z)({},le,{ref:Oe,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,yn=function(le,Oe){return te.createElement(pt.Z,(0,Ne.Z)({},le,{ref:Oe,icon:rn}))},mn=te.forwardRef(yn),Sn=mn,On={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=On,Tn=function(le,Oe){return te.createElement(pt.Z,(0,Ne.Z)({},le,{ref:Oe,icon:fn}))},sn=te.forwardRef(Tn),Nn=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,Oe){return te.createElement(pt.Z,(0,Ne.Z)({},le,{ref:Oe,icon:ea}))},ia=te.forwardRef(ma),sa=ia,Un=ge(64993),oa=ge(73819),Sa=ge(17313),Kn=ge(29878),We=ge(1950),Ue=ge(83116),_e=ge(37613);const rt=$e=>({position:$e||"absolute",inset:0}),qt=$e=>{const{iconCls:le,motionDurationSlow:Oe,paddingXXS:qe,marginXXS:gt,prefixCls:je,colorTextLightSolid:st}=$e;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 ${Oe}`,[`.${je}-mask-info`]:Object.assign(Object.assign({},Sa.vS),{padding:`0 ${qe}px`,[le]:{marginInlineEnd:gt,svg:{verticalAlign:"baseline"}}})}},tn=$e=>{const{previewCls:le,modalMaskBg:Oe,paddingSM:qe,marginXL:gt,margin:je,paddingLG:st,previewOperationColorDisabled:St,previewOperationHoverColor:Nt,motionDurationSlow:et,iconCls:Gt,colorTextLightSolid:ht}=$e,Ft=new Un.C(Oe).setAlpha(.1),Tt=Ft.clone().setAlpha(.2);return{[`${le}-footer`]:{position:"fixed",bottom:gt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:$e.previewOperationColor},[`${le}-progress`]:{marginBottom:je},[`${le}-close`]:{position:"fixed",top:gt,right:{_skip_check_:!0,value:gt},display:"flex",color:ht,backgroundColor:Ft.toRgbString(),borderRadius:"50%",padding:qe,outline:0,border:0,cursor:"pointer",transition:`all ${et}`,"&:hover":{backgroundColor:Tt.toRgbString()},[`& > ${Gt}`]:{fontSize:$e.previewOperationSize}},[`${le}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${st}px`,backgroundColor:Ft.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:qe,padding:qe,cursor:"pointer",transition:`all ${et}`,userSelect:"none",[`&:not(${le}-operations-operation-disabled):hover > ${Gt}`]:{color:Nt},"&-disabled":{color:St,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Gt}`]:{fontSize:$e.previewOperationSize}}}}},xn=$e=>{const{modalMaskBg:le,iconCls:Oe,previewOperationColorDisabled:qe,previewCls:gt,zIndexPopup:je,motionDurationSlow:st}=$e,St=new Un.C(le).setAlpha(.1),Nt=St.clone().setAlpha(.2);return{[`${gt}-switch-left, ${gt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:je+1,display:"flex",alignItems:"center",justifyContent:"center",width:$e.imagePreviewSwitchSize,height:$e.imagePreviewSwitchSize,marginTop:-$e.imagePreviewSwitchSize/2,color:$e.previewOperationColor,background:St.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${st}`,userSelect:"none","&:hover":{background:Nt.toRgbString()},"&-disabled":{"&, &:hover":{color:qe,background:"transparent",cursor:"not-allowed",[`> ${Oe}`]:{cursor:"not-allowed"}}},[`> ${Oe}`]:{fontSize:$e.previewOperationSize}},[`${gt}-switch-left`]:{insetInlineStart:$e.marginSM},[`${gt}-switch-right`]:{insetInlineEnd:$e.marginSM}}},$t=$e=>{const{motionEaseOut:le,previewCls:Oe,motionDurationSlow:qe,componentCls:gt}=$e;return[{[`${gt}-preview-root`]:{[Oe]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Oe}-body`]:Object.assign(Object.assign({},rt()),{overflow:"hidden"}),[`${Oe}-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({},rt()),{transition:`transform ${qe} ${le} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Oe}-moving`]:{[`${Oe}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${gt}-preview-root`]:{[`${Oe}-wrap`]:{zIndex:$e.zIndexPopup}}},{[`${gt}-preview-operations-wrapper`]:{position:"fixed",zIndex:$e.zIndexPopup+1},"&":[tn($e),xn($e)]}]},Ct=$e=>{const{componentCls:le}=$e;return{[le]:{position:"relative",display:"inline-block",[`${le}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${le}-img-placeholder`]:{backgroundColor:$e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${le}-mask`]:Object.assign({},qt($e)),[`${le}-mask:hover`]:{opacity:1},[`${le}-placeholder`]:Object.assign({},rt())}}},ce=$e=>{const{previewCls:le}=$e;return{[`${le}-root`]:(0,Kn._y)($e,"zoom"),"&":(0,We.J$)($e,!0)}};var he=(0,Ue.Z)("Image",$e=>{const le=`${$e.componentCls}-preview`,Oe=(0,_e.TS)($e,{previewCls:le,modalMaskBg:new Un.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:$e.controlHeightLG});return[Ct(Oe),$t(Oe),(0,oa.QA)((0,_e.TS)(Oe,{componentCls:le})),ce(Oe)]},$e=>({zIndexPopup:$e.zIndexPopupBase+80,previewOperationColor:new Un.C($e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Un.C($e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Un.C($e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:$e.fontSizeIcon*1.5})),Pe=function($e,le){var Oe={};for(var qe in $e)Object.prototype.hasOwnProperty.call($e,qe)&&le.indexOf(qe)<0&&(Oe[qe]=$e[qe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,qe=Object.getOwnPropertySymbols($e);gt<qe.length;gt++)le.indexOf(qe[gt])<0&&Object.prototype.propertyIsEnumerable.call($e,qe[gt])&&(Oe[qe[gt]]=$e[qe[gt]]);return Oe};const De={rotateLeft:te.createElement(yt,null),rotateRight:te.createElement(Kt,null),zoomIn:te.createElement(Nn,null),zoomOut:te.createElement(sa,null),close:te.createElement(fe.Z,null),left:te.createElement(ze.Z,null),right:te.createElement(He.Z,null),flipX:te.createElement(Sn,null),flipY:te.createElement(Sn,{rotate:90})};var ut=$e=>{var{previewPrefixCls:le,preview:Oe}=$e,qe=Pe($e,["previewPrefixCls","preview"]);const{getPrefixCls:gt}=te.useContext(Ee.E_),je=gt("image",le),st=`${je}-preview`,St=gt(),[Nt,et]=he(je),Gt=te.useMemo(()=>{var ht;if(Oe===!1)return Oe;const Ft=typeof Oe=="object"?Oe:{},Tt=se()(et,(ht=Ft.rootClassName)!==null&&ht!==void 0?ht:"");return Object.assign(Object.assign({},Ft),{transitionName:(0,Et.m)(St,"zoom",Ft.transitionName),maskTransitionName:(0,Et.m)(St,"fade",Ft.maskTransitionName),rootClassName:Tt})},[Oe]);return Nt(te.createElement(kt.PreviewGroup,Object.assign({preview:Gt,previewPrefixCls:st,icons:De},qe)))},Rt=function($e,le){var Oe={};for(var qe in $e)Object.prototype.hasOwnProperty.call($e,qe)&&le.indexOf(qe)<0&&(Oe[qe]=$e[qe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,qe=Object.getOwnPropertySymbols($e);gt<qe.length;gt++)le.indexOf(qe[gt])<0&&Object.prototype.propertyIsEnumerable.call($e,qe[gt])&&(Oe[qe[gt]]=$e[qe[gt]]);return Oe};const xt=$e=>{const{prefixCls:le,preview:Oe,className:qe,rootClassName:gt,style:je}=$e,st=Rt($e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:St,locale:Nt=ve.Z,getPopupContainer:et,image:Gt}=te.useContext(Ee.E_),ht=St("image",le),Ft=St(),Tt=Nt.Image||ve.Z.Image,[Ut,Fn]=he(ht),Fe=se()(gt,Fn),gn=se()(qe,Fn,Gt==null?void 0:Gt.className),Yt=te.useMemo(()=>{if(Oe===!1)return Oe;const Qt=typeof Oe=="object"?Oe:{},{getContainer:Re}=Qt,mt=Rt(Qt,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${ht}-mask-info`},te.createElement(Ke.Z,null),Tt==null?void 0:Tt.preview),icons:De},mt),{getContainer:Re||et,transitionName:(0,Et.m)(Ft,"zoom",Qt.transitionName),maskTransitionName:(0,Et.m)(Ft,"fade",Qt.maskTransitionName)})},[Oe,Tt]),Mn=Object.assign(Object.assign({},Gt==null?void 0:Gt.style),je);return Ut(te.createElement(kt,Object.assign({prefixCls:ht,preview:Yt,rootClassName:Fe,className:gn,style:Mn},st)))};xt.PreviewGroup=ut;var jt=xt,en=()=>{const[$e,le]=(0,te.useState)(""),[Oe,qe]=(0,te.useState)(0);let[gt,je]=(0,te.useState)(),[st,St]=(0,te.useState)();const[Nt,et]=(0,te.useState)(!1),Gt=(0,te.useRef)("");(0,te.useEffect)(()=>pe.Z.subscribe("preview-image",Re=>{le(Re),console.log(Yt.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",ht),()=>{document.removeEventListener("keydown",ht)}),[]),(0,te.useEffect)(()=>{Gt.current=$e},[$e]);function ht(Qt){Qt.keyCode==27&&Gt.current&&Ft()}function Ft(){document.body.style.overflow="auto",je(void 0),St(void 0),qe(0),le("")}function Tt(){qe(Oe+90)}function Ut(){gt=Yt.current.width*1.1,st=Yt.current.height*1.1,St(st),je(gt)}function Fn(){gt=Yt.current.width/1.1,st=Yt.current.height/1.1,St(st),je(gt)}const Fe=(0,te.useRef)(),gn=(0,te.useRef)(),Yt=(0,te.useRef)(),Mn=Qt=>{(Qt.nativeEvent.target===Fe.current||Qt.nativeEvent.target===gn.current)&&Ft()};return te.createElement(te.Fragment,null,$e?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:gn},te.createElement(jt,{className:"image-preview",src:$e,style:{display:"none"},preview:{visible:!0,src:$e,movable:!1,onVisibleChange:Qt=>{le("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},69720:function(we,it,ge){"use strict";ge.d(it,{h:function(){return ee}});var te=ge(59301),pe=ge(57809),Ke=ge(78241),Ze=ge(3113),se=ge(89780),Ne=ge.n(se),me=ge(8336),ke=ge(12469),be=Object.defineProperty,Ae=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Be=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={}))Be.call(oe,re)&&a(ne,re,oe[re]);if(Ge)for(var re of Ge(oe))ae.call(oe,re)&&a(ne,re,oe[re]);return ne},x=(ne,oe)=>Ae(ne,Te(oe));const b=pe.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"]};it.Z=({callback:ne,onCancel:oe})=>{const[re,ie]=(0,te.useState)("python");function Se(xe){ie(z[xe][1])}function ue(xe){ne(xe)}return te.createElement(Ke.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ue,style:{width:500}}),te.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(pe.default,{getPopupContainer:xe=>xe.parentNode,onChange:Se},Object.keys(z).map(xe=>te.createElement(b,{key:xe,value:xe},z[xe][0])))),te.createElement(Ke.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(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ze.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:ne,onChange:oe,mode:re,options:ie={}}){const Se=(0,te.useRef)(),[ue,xe]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ue){let Me=function(ct){const zt=ct.getValue();oe&&oe(zt)};return ue.on("change",Me),()=>{ue.off("change",Me)}}},[ue,oe]),(0,te.useEffect)(()=>{ue&&ue.setOption("mode",re)},[ue,re]),(0,te.useEffect)(()=>{ue&&(ne!==ue.getValue()||ne==="")&&setTimeout(()=>{ue.setValue(ne||"")},300)},[ue,ne]),(0,te.useEffect)(()=>{if(Se.current&&!ue){const Me=Ne().fromTextArea(Se.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));xe(Me)}},[Se.current,ue]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Se}))}},39793:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return Ct}});var te=ge(59301),pe=ge(89780),Ke=ge.n(pe),Ze=ge(76374),se=ge(8336),Ne=ge(6313),me=ge(25717),ke=ge(99498),be=ge(25419),Ae=ge(67549),Te=ge(91842),Ge=({value:ce="",className:he,showTextOnly:Pe,showLines:De,style:Ie={}})=>{const ut=(0,te.useMemo)(()=>"",[ce]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},Be=ge(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ce,he,Pe)=>he in ce?ae(ce,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[he]=Pe,ee=(ce,he)=>{for(var Pe in he||(he={}))b.call(he,Pe)&&z(ce,Pe,he[Pe]);if(x)for(var Pe of x(he))E.call(he,Pe)&&z(ce,Pe,he[Pe]);return ce},ne=(ce,he)=>a(ce,y(he));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:ce,title:he,icon:Pe,actionName:De,className:Ie="",children:ut}){function Rt(){ce(De)}return Be.createElement("a",{title:he,className:Ie,onClick:Rt},Be.createElement("i",{className:`${Pe}`}),ut)}var ie=({watch:ce,showNullButton:he,showNullProgramButton:Pe,onActionCallback:De,fullScreen:Ie,insertTemp:ut,hidetoolBar:Rt,extraUse:xt})=>{const jt=[...oe,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Be.createElement("ul",{className:"markdown-toolbar-container"},!Rt&&jt.map((en,$e)=>Be.createElement("li",{key:$e},en.actionName?Be.createElement(re,ne(ee({},en),{onActionCallback:De})):Be.createElement("span",{className:"v-line"}))),he?Be.createElement("li",null,Be.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:De},Be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?Be.createElement(Be.Fragment,null,Be.createElement("li",null,Be.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:De},Be.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Be.createElement("li",null,Be.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:De},Be.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ut&&Be.createElement("li",null,Be.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ut}`,onActionCallback:De},Be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),xt&&Be.createElement("li",null,xt),Be.createElement("li",{className:"btn-full-screen"},Be.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:De})))},Se=ge(91558),ue=ge(78241),xe=ge(92832),Me=ge(3113),ct=Object.defineProperty,zt=Object.defineProperties,Xt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Ye=(ce,he,Pe)=>he in ce?ct(ce,he,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[he]=Pe,dt=(ce,he)=>{for(var Pe in he||(he={}))Xe.call(he,Pe)&&Ye(ce,Pe,he[Pe]);if(Le)for(var Pe of Le(he))nt.call(he,Pe)&&Ye(ce,Pe,he[Pe]);return ce},Dt=(ce,he)=>zt(ce,Xt(he));const _t={labelCol:{span:4},wrapperCol:{span:20}};var At=({callback:ce,onCancel:he})=>{function Pe(De){ce(De)}return te.createElement(ue.default,Dt(dt({},_t),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),te.createElement(ue.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(xe.default,null)),te.createElement(ue.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(xe.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Me.ZP,{type:"ghost",onClick:he},"\u53D6\u6D88")))},Jt=ge(69720),ye=ge(17077),Ce=ge(43418),Ve=ge(95237),wt=ge(9507),Je=ge(59301),vt=({callback:ce,onCancel:he})=>{const Pe=document.createElement("canvas"),De=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,De.fillStyle="#ffffff",De.fillRect(0,0,Pe.width,Pe.height);const Ie=Pe.toDataURL("image/png");return Je.createElement(Ce.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Je.createElement(Ve.Z,{style:{height:"100vh"}},Je.createElement(wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ie,visible:!0,title:String(Date.now())},onOk:ut=>{ce({src:ut.url})},onClose:he})))},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 ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},Qe.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var he=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(he=Math.min(Pe.position.x,he))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(he,Pe.position.y))}),ce.commitTransaction("aligning left")},Qe.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var he=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var De=Pe.actualBounds.x+Pe.actualBounds.width;he=Math.max(De,he)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(he-Pe.actualBounds.width,Pe.position.y))}),ce.commitTransaction("aligning right")},Qe.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var he=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(he=Math.min(Pe.position.y,he))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,he))}),ce.commitTransaction("alignTop")},Qe.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var he=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var De=Pe.actualBounds.y+Pe.actualBounds.height;he=Math.max(De,he)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,he-Pe.actualBounds.height))}),ce.commitTransaction("aligning bottom")},Qe.prototype.alignCenterX=function(){var ce=this.diagram,he=ce.selection.first();if(he){ce.startTransaction("aligning Center X");var Pe=he.actualBounds.x+he.actualBounds.width/2;ce.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(Pe-De.actualBounds.width/2,De.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},Qe.prototype.alignCenterY=function(){var ce=this.diagram,he=ce.selection.first();if(he){ce.startTransaction("aligning Center Y");var Pe=he.actualBounds.y+he.actualBounds.height/2;ce.selection.each(function(De){De instanceof go.Link||De.move(new go.Point(De.actualBounds.x,Pe-De.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},Qe.prototype.alignColumn=function(ce){var he=this.diagram;he.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=new Array;he.selection.each(function(xt){xt instanceof go.Link||Pe.push(xt)});for(var De=0;De<Pe.length-1;De++){var Ie=Pe[De],ut=Ie.actualBounds.y+Ie.actualBounds.height+ce,Rt=Pe[De+1];Rt.move(new go.Point(Ie.actualBounds.x,ut))}he.commitTransaction("align Column")},Qe.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var he=this.diagram;he.startTransaction("align Row");var Pe=new Array;he.selection.each(function(xt){xt instanceof go.Link||Pe.push(xt)});for(var De=0;De<Pe.length-1;De++){var Ie=Pe[De],ut=Ie.actualBounds.x+Ie.actualBounds.width+ce,Rt=Pe[De+1];Rt.move(new go.Point(ut,Ie.actualBounds.y))}he.commitTransaction("align Row")},Qe.prototype.canRotate=function(ce){var he=this.diagram;return!(he===null||he.isReadOnly||he.isModelReadOnly||he.selection.count<1)},Qe.prototype.rotate=function(ce){ce===void 0&&(ce=90);var he=this.diagram;he.startTransaction("rotate "+ce.toString());var he=this.diagram;he.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=ce)}),he.commitTransaction("rotate "+ce.toString())},Qe.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var he=new go.Map;ce.selection.each(function(Pe){he.set(Pe.layer,0)}),he.iteratorKeys.each(function(Pe){var De=0;Pe.parts.each(function(Ie){if(!Ie.isSelected){var ut=Ie.zOrder;isNaN(ut)?Ie.zOrder=0:De=Math.max(De,ut)}}),he.set(Pe,De)}),ce.selection.each(function(Pe){Qe._assignZOrder(Pe,he.get(Pe.layer)+1)}),ce.commitTransaction("pullToFront")},Qe.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var he=new go.Map;ce.selection.each(function(Pe){he.set(Pe.layer,0)}),he.iteratorKeys.each(function(Pe){var De=0;Pe.parts.each(function(Ie){if(!Ie.isSelected){var ut=Ie.zOrder;isNaN(ut)?Ie.zOrder=0:De=Math.min(De,ut)}}),he.set(Pe,De)}),ce.selection.each(function(Pe){Qe._assignZOrder(Pe,he.get(Pe.layer)-1-Qe._findGroupDepth(Pe))}),ce.commitTransaction("pushToBack")},Qe._assignZOrder=function(ce,he,Pe){Pe===void 0&&(Pe=ce),ce.layer===Pe.layer&&(ce.zOrder=he),ce instanceof go.Group&&ce.memberParts.each(function(De){Qe._assignZOrder(De,he+1,Pe)})},Qe._findGroupDepth=function(ce){if(ce instanceof go.Group){var he=0;return ce.memberParts.each(function(Pe){he=Math.max(he,Qe._findGroupDepth(Pe))}),he+1}else return 0},Qe.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var he=ce.lastInput;if(he.key==="Up"||he.key==="Down"||he.key==="Left"||he.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 ce=new Array;return this.diagram.nodes.each(function(he){ce.push(he)}),this.diagram.parts.each(function(he){ce.push(he)}),ce},Qe.prototype._arrowKeyMove=function(){var ce=this.diagram,he=ce.lastInput,Pe=0,De=0;if(he.control||he.meta)Pe=1,De=1;else if(ce.grid!==null){var Ie=ce.grid.gridCellSize;De=Ie.width,Pe=Ie.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(ut){he.key==="Up"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y-Pe)):he.key==="Down"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y+Pe)):he.key==="Left"?ut.move(new go.Point(ut.actualBounds.x-De,ut.actualBounds.y)):he.key==="Right"&&ut.move(new go.Point(ut.actualBounds.x+De,ut.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},Qe.prototype._arrowKeySelect=function(){var ce=this.diagram,he=ce.lastInput,Pe=null;he.key==="Up"?Pe=this._findNearestPartTowards(270):he.key==="Down"?Pe=this._findNearestPartTowards(90):he.key==="Left"?Pe=this._findNearestPartTowards(180):he.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(he.shift?Pe.isSelected=!0:he.control||he.meta?Pe.isSelected=!Pe.isSelected:ce.select(Pe))},Qe.prototype._findNearestPartTowards=function(ce){var he=this.diagram.selection.first();if(he===null)return null;for(var Pe=he.actualBounds.center,De=this._getAllParts(),Ie=1/0,ut=he,Rt=0;Rt<De.length;Rt++){var xt=De[Rt];if(xt!==he&&xt.canSelect()){var jt=xt.actualBounds.center,en=Pe.directionPoint(jt),$e=this._angleCloseness(en,ce);if($e<=45){var le=Pe.distanceSquaredPoint(jt);le*=1+Math.sin($e*Math.PI/180),le<Ie&&(Ie=le,ut=xt)}}}return ut},Qe.prototype._angleCloseness=function(ce,he){return Math.min(Math.abs(he-ce),Math.min(Math.abs(he+360-ce),Math.abs(he-360-ce)))},Qe.prototype._arrowKeyTree=function(){var ce=this.diagram,he=ce.selection.first();if(he instanceof go.Node){var Pe=ce.lastInput;if(Pe.key==="Right"){if(!he.isTreeLeaf)if(!he.isTreeExpanded)ce.commandHandler.canExpandTree(he)&&ce.commandHandler.expandTree(he);else{var De=this._sortTreeChildrenByY(he).first();De!==null&&ce.select(De)}}else if(Pe.key==="Left")if(!he.isTreeLeaf&&he.isTreeExpanded)ce.commandHandler.canCollapseTree(he)&&ce.commandHandler.collapseTree(he);else{var Ie=he.findTreeParentNode();Ie!==null&&ce.select(Ie)}else if(Pe.key==="Up"){var Ie=he.findTreeParentNode();if(Ie!==null){var ut=this._sortTreeChildrenByY(Ie),Rt=ut.indexOf(he);if(Rt>0){for(var xt=ut.elt(Rt-1);xt!==null&&xt.isTreeExpanded&&!xt.isTreeLeaf;){var jt=this._sortTreeChildrenByY(xt);xt=jt.last()}xt!==null&&ce.select(xt)}else ce.select(Ie)}}else if(Pe.key==="Down")if(he.isTreeExpanded&&!he.isTreeLeaf){var De=this._sortTreeChildrenByY(he).first();De!==null&&ce.select(De)}else for(;he!==null;){var Ie=he.findTreeParentNode();if(Ie===null)break;var ut=this._sortTreeChildrenByY(Ie),Rt=ut.indexOf(he);if(Rt<ut.length-1){ce.select(ut.elt(Rt+1));break}else he=Ie}var en=ce.selection.first();en!==null&&ce.scrollToRect(en.actualBounds)}},Qe.prototype._sortTreeChildrenByY=function(ce){var he=new go.List().addAll(ce.findTreeChildrenNodes());return he.sort(function(Pe,De){var Ie=Pe.location,ut=De.location;return Ie.y<ut.y?-1:Ie.y>ut.y?1:Ie.x<ut.x?-1:Ie.x>ut.x?1:0}),he},Qe.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},Qe.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(Qe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(Qe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var Ot=Qe,kt=ge(63720),Et=ge(43604),Ee=ge(38986),ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=ge(59301),ze=(ce,he,Pe)=>new Promise((De,Ie)=>{var ut=jt=>{try{xt(Pe.next(jt))}catch(en){Ie(en)}},Rt=jt=>{try{xt(Pe.throw(jt))}catch(en){Ie(en)}},xt=jt=>jt.done?De(jt.value):Promise.resolve(jt.value).then(ut,Rt);xt((Pe=Pe.apply(ce,he)).next())});function He({onCancel:ce,callback:he}){let Pe=(0,te.useRef)(),De=(0,te.useRef)(),Ie=(0,te.useRef)(),ut=(0,te.useRef)(!1);const Rt=(0,te.useRef)(!1),[xt,jt]=(0,te.useState)(0);function en(){const le=de.bx.make,Oe={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(De.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:Re=>{var mt=Re.diagram.commandHandler.addTopLevelParts(Re.diagram.selection,!0);mt||Re.diagram.currentTool.doCancel()},commandHandler:le(Ot),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Re=>{var mt=Re.subject;mt.location=mt.location.copy().snapToGridPoint(Re.diagram.grid.gridOrigin,Re.diagram.grid.gridCellSize),setTimeout(()=>{Re.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Re=>{var mt=Re.subject;setTimeout(()=>{Re.diagram.commandHandler.editTextBlock()})},LinkRelinked:Re=>{var mt=Re.parameter.part;mt.invalidateConnectedLinks();var Bt=Re.subject;Re.diagram.toolManager.linkingTool.isForwards?Bt.toNode.invalidateConnectedLinks():Bt.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:Oe.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(Re,mt){var Bt=(at,Ht)=>{at.handled=!0,at.diagram.model.commit(Wt=>{var dn=Ht.part.adornedPart,ln=new de.E9().setRectSpot(dn.actualBounds,Re);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=Wt.copyNodeData(dn.data);Wt.setGroupKeyForNodeData(hn,Wt.getGroupKeyForNodeData(dn.data)),Wt.addNodeData(hn);var Vn={from:dn.key,to:Wt.getKeyForNodeData(hn)};Wt.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:Re,alignmentFocus:Re.opposite(),width:Re.equals(de.z6.Top)||Re.equals(de.z6.Bottom)?25:18,height:Re.equals(de.z6.Top)||Re.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Oe.white,strokeWidth:4,mouseEnter:(at,Ht)=>Ht.fill="dodgerblue",mouseLeave:(at,Ht)=>Ht.fill="orange",isActionable:!0,click:Bt,contextClick:Bt})}function gt(Re){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,Bt)=>Bt.fill="dodgerblue",mouseLeave:(mt,Bt)=>Bt.fill="orange",click:(mt,Bt)=>{mt.diagram.commandHandler.showContextMenu(Bt.part.adornedPart)}},Re||{})}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"),gt({alignment:new de.z6(.75,0)}));function je(Re,mt){return(Bt,at)=>{Bt.handled=!0,Bt.diagram.model.commit(Ht=>{Ht.set(at.part.adornedPart.data,Re,mt)})}}function st(Re,mt){return mt||(mt="color"),le(de.bn,{width:16,height:16,stroke:"lightgray",fill:Re,margin:1,background:"transparent",mouseEnter:(Bt,at)=>at.stroke="dodgerblue",mouseLeave:(Bt,at)=>at.stroke="lightgray",click:je(mt,Re),contextClick:je(mt,Re)})}function St(){return[le("ContextMenuButton",le(de.s_,"Horizontal",st(Oe.white,"fill"),st(Oe.beige,"fill"),st(Oe.extralightblue,"fill"),st(Oe.extralightred,"fill"))),le("ContextMenuButton",le(de.s_,"Horizontal",st(Oe.lightgray,"fill"),st(Oe.lightgreen,"fill"),st(Oe.lightblue,"fill"),st(Oe.lightred,"fill")))]}function Nt(){return[le("ContextMenuButton",le(de.s_,"Horizontal",st(Oe.black),st(Oe.green),st(Oe.blue),st(Oe.red))),le("ContextMenuButton",le(de.s_,"Horizontal",st(Oe.white),st(Oe.magenta),st(Oe.purple),st(Oe.orange)))]}function et(Re,mt){return mt||(mt="thickness"),le(de.bn,"LineH",{width:16,height:16,strokeWidth:Re,margin:1,background:"transparent",mouseEnter:(Bt,at)=>at.background="dodgerblue",mouseLeave:(Bt,at)=>at.background="transparent",click:je(mt,Re),contextClick:je(mt,Re)})}function Gt(Re,mt){return mt||(mt="dash"),le(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Re,margin:1,background:"transparent",mouseEnter:(Bt,at)=>at.background="dodgerblue",mouseLeave:(Bt,at)=>at.background="transparent",click:je(mt,Re),contextClick:je(mt,Re)})}function ht(){return[le("ContextMenuButton",le(de.s_,"Horizontal",et(1),et(2),et(3),et(4))),le("ContextMenuButton",le(de.s_,"Horizontal",Gt(null),Gt([2,4]),Gt([4,4])))]}function Ft(Re,mt){return mt||(mt="figure"),le(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Re,margin:1,background:"transparent",mouseEnter:(Bt,at)=>at.fill="dodgerblue",mouseLeave:(Bt,at)=>at.fill="lightgray",click:je(mt,Re),contextClick:je(mt,Re)})}Pe.current.nodeTemplate.contextMenu=le("ContextMenu",le("ContextMenuButton",le(de.s_,"Horizontal",Ft("Rectangle"),Ft("RoundedRectangle"),Ft("Ellipse"),Ft("Diamond"))),le("ContextMenuButton",le(de.s_,"Horizontal",Ft("Parallelogram2"),Ft("ManualOperation"),Ft("Procedure"),Ft("Cylinder1"))),le("ContextMenuButton",le(de.s_,"Horizontal",Ft("Terminator"),Ft("CreateRequest"),Ft("Document"),Ft("TriangleDown"))),St(),Nt(),ht()),Pe.current.groupTemplate=le(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Re,mt)=>{var Bt=mt.addMembers(mt.diagram.selection,!0);Bt||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:Oe.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})),gt({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=le("ContextMenu",St(),Nt(),ht()),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",Re=>Re>=1?10:0),new de.KX("toShortLength","dir",Re=>Re>=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",Re=>Re===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",Re=>Re>=1),new de.KX("width","thickness",Re=>7+3*Re),new de.KX("height","thickness",Re=>7+3*Re),new de.KX("segmentOffset","thickness",Re=>new de.E9(-15,4+1.5*Re))),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",Re=>Re===2),new de.KX("width","thickness",Re=>7+3*Re),new de.KX("height","thickness",Re=>7+3*Re),new de.KX("segmentOffset","thickness",Re=>new de.E9(-15,4+1.5*Re))),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:Tt(2)},new de.KX("pathPattern","thickness",Tt)),gt({alignmentFocus:new de.z6(0,0,-6,-4)}));function Tt(Re){return le(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Re+4).toString()+" H3"})}function Ut(Re){var mt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Re===0?mt="M0 0 M16 16 M0 8 L16 8":Re===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:(Bt,at)=>at.background="dodgerblue",mouseLeave:(Bt,at)=>at.background="transparent",click:je("dir",Re),contextClick:je("dir",Re)})}function Fn(Re){var mt=(Bt,at)=>{Bt.handled=!0,Bt.diagram.model.commit(Ht=>{var Wt=at.part.adornedPart;Ht.set(Wt.data,Re?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Re?Wt.toNode:Wt.fromNode).invalidateConnectedLinks()})};return le(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Bt,at)=>at.background="dodgerblue",mouseLeave:(Bt,at)=>at.background="transparent",click:mt,contextClick:mt})}function Fe(Re,mt){var Bt=0,at=de.z6.RightSide;Re.equals(de.z6.Top)?(Bt=270,at=de.z6.TopSide):Re.equals(de.z6.Left)?(Bt=180,at=de.z6.LeftSide):Re.equals(de.z6.Bottom)&&(Bt=90,at=de.z6.BottomSide),mt||(Bt-=180);var Ht=(Wt,dn)=>{Wt.handled=!0,Wt.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:Re,alignmentFocus:Re.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Bt,background:"transparent",mouseEnter:(Wt,dn)=>dn.background="dodgerblue",mouseLeave:(Wt,dn)=>dn.background="transparent",click:Ht,contextClick:Ht})}Pe.current.linkTemplate.contextMenu=le("ContextMenu",Nt(),ht(),le("ContextMenuButton",le(de.s_,"Horizontal",Ut(0),Ut(1),Ut(2))),le("ContextMenuButton",le(de.s_,"Horizontal",le(de.s_,"Spot",Fn(!1),Fe(de.z6.Top,!1),Fe(de.z6.Left,!1),Fe(de.z6.Right,!1),Fe(de.z6.Bottom,!1)),le(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Fn(!0),Fe(de.z6.Top,!0),Fe(de.z6.Left,!0),Fe(de.z6.Right,!0),Fe(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 Yt=["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(Re){return console.log("shapeName:",Re),Yt.indexOf(Re)>=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(Re=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Re.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Re){var mt;const Bt=Re.subject.part;var at=(mt=document.activeElement)==null?void 0:mt.value;typeof at=="string"&&at.trim()===""&&Pe.current.model.commit(function(Ht){Ht.set(Bt.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 $e=()=>ze(this,null,function*(){var le=Pe.current.makeImage();const Oe=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:le.src}});he({src:Oe.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{en()},500),jt(xt+1),()=>{Pe.current=null}),[]),fe.createElement("div",{ref:Rt,className:ut.current?`${ve.maxH60} body-overflow-initial`:"body-overflow-initial"},fe.createElement(Ce.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!xt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:fe.createElement(Ve.Z,null,fe.createElement(Et.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(Et.Z,{onClick:()=>{var le,Oe,qe=Pe.current.selection.first();if(ut.current=!ut.current,document.activeElement&&qe){let gt=(Oe=(le=document.activeElement)==null?void 0:le.value)==null?void 0:Oe.trim();typeof gt=="string"&&Pe.current.model.commit(function(je){je.set(qe.data,"text",gt||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}jt(xt+1)}},fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},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:De,style:{height:"80vh"}}))),fe.createElement("div",{className:"tr"},fe.createElement(Me.ZP,{size:"large",onClick:$e,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ot=He,Lt=ge(5112),pt=ge(5871);const bt=Lt.ZP.Group,Mt={margin:"0 8px"};var yt=({callback:ce,onCancel:he})=>{function Pe(De){ce(De)}return te.createElement(ue.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:Mt},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:Mt},"\u884C\u6570"),te.createElement(ue.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(pt.Z,null)),te.createElement("span",{style:Mt},"\u5217\u6570"),te.createElement(ue.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(pt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Mt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(ue.default.Item,{name:"align"},te.createElement(bt,null,te.createElement(Lt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Lt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Lt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Lt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Me.ZP,{type:"ghost",onClick:he},"\u53D6\u6D88")))},It=ge(78673),an=ge(43001),Pn=ge.n(an),Kt=(0,te.forwardRef)(({use3d:ce,width:he,height:Pe,callback:De,showSaveButton:Ie},ut)=>{const Rt=(0,te.useRef)(),xt=(0,te.useRef)(),[jt,en]=(0,te.useState)(!1),$e=(0,te.useRef)({id:Rt,appName:"graphing",width:he||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())($e.current,!0),window.onload=function(){xt.current.inject("applet_container")}},[]);const le=()=>{var Oe=window.ggbApplet.getPNGBase64(1,!0,72);return De&&De(Oe),Oe};return(0,te.useEffect)(()=>{$e.current.appName=jt?"3D":"graphing",xt.current.inject("applet_container")},[jt]),(0,te.useEffect)(()=>{en(ce)},[ce]),(0,te.useImperativeHandle)(ut,()=>({getImgData:le})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Rt}),te.createElement(Ve.Z,{align:"middle"},te.createElement(Et.Z,{flex:1},te.createElement(It.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:jt,onChange:Oe=>en(Oe)})),te.createElement(Et.Z,null,te.createElement(Me.ZP,{size:"large",onClick:le,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),on=ge(76562),rn=ge(1012),yn=ge(8591);const mn="link",Sn="upload-image",On="add-flowchart",fn="draw-image",Tn="add-flowchart",sn="code-block",Nn="add-table",Xn="------------",ea={default:Xn,left:`:${Xn}`,center:`:${Xn}:`,right:`${Xn}:`};var ma=ge(37808),ia=(ce,he,Pe)=>new Promise((De,Ie)=>{var ut=jt=>{try{xt(Pe.next(jt))}catch(en){Ie(en)}},Rt=jt=>{try{xt(Pe.throw(jt))}catch(en){Ie(en)}},xt=jt=>jt.done?De(jt.value):Promise.resolve(jt.value).then(ut,Rt);xt((Pe=Pe.apply(ce,he)).next())});function sa(){}let Un=0;const oa=1e4,Sa="\u2581",Kn="@\u2581\u2581@",We="@\u2581@",Ue=`
|
|
**\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`,_e=["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 rt(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const tn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xn={[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",[On]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Nn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ct=({defaultValue:ce="",onChange:he,width:Pe="100%",height:De=400,miniToolbar:Ie=!1,isFocus:ut=!1,watch:Rt,insertTemp:xt,mode:jt="markdown",id:en="markdown-editor-id",showResizeBar:$e=!1,noStorage:le=!1,showNullButton:Oe=!1,showNullProgramButton:qe=!1,hidetoolBar:gt=!1,fullScreen:je=!1,onBlur:st,onCMBeforeChange:St,onFullScreen:Nt,className:et="",disablePaste:Gt=!1,disabled:ht=!1,disabledFill:Ft=!1,placeholder:Tt="",values:Ut="",extraUse:Fn})=>{const[Fe,gn]=(0,te.useState)(null),[Yt,Mn]=(0,te.useState)(ce),[Qt,Re]=(0,te.useState)(Rt),[mt,Bt]=(0,te.useState)(je),[at,Ht]=(0,te.useState)(""),[Wt,dn]=(0,te.useState)(0),[ln,hn]=(0,te.useState)(De),[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 ft;const tt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Yn.current}});(ft=tt==null?void 0:tt.attachments)!=null&&ft.length&&(console.log("cm:",Fe,Dn),tt.attachments.map(lt=>{lt.content_type.indexOf("image")>-1?Fe.replaceSelection(``):lt.content_type.indexOf("video")>-1?Fe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):lt.content_type.indexOf("pdf")>-1?Fe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type}&disposition=inline" target="_blank">${lt.name}</a>`):Fe.replaceSelection(`[${lt.name}](${ENV.API_SERVER}/api/attachments/${lt.id}?type=${lt.content_type})`)}))});(0,te.useEffect)(()=>{const ft=window.scrollY||window.pageYOffset;Mn(Ut),Fe==null||Fe.setValue(Ut),window.scrollTo(0,ft)},[Ut]),(0,te.useEffect)(()=>{Nt==null||Nt(mt)},[mt]),(0,te.useEffect)(()=>{if(Dn.current){let ft=function(lt,Pt){var Vt;if(Gt){Pt.preventDefault();return}const nn=Pt.clipboardData;if(nn){const wn=nn.types.toString(),bn=nn.items;if(wn==="Files"||nn.types.indexOf("Files")>-1){if(Pt.preventDefault(),jt=="stex")return;try{let Bn=bn[1];((Vt=bn[0])==null?void 0:Vt.kind)==="file"&&(Bn=bn[0]);const En=Bn.getAsFile(),la=En.name.split(".").pop();(0,ye.I)(En,_n=>{var ya,wa,ba;_n.id?((ya=En==null?void 0:En.type)==null?void 0:ya.indexOf("image"))>-1?tt.replaceSelection(`<img width="100%" src="/api/attachments/${_n.id}?type=${_n.content_type})" alt="" />`):((wa=En==null?void 0:En.type)==null?void 0:wa.indexOf("video"))>-1?tt.replaceSelection(`<video width="100%" controls src="/api/attachments/${_n.id}"></video>`):((ba=En==null?void 0:En.type)==null?void 0:ba.indexOf("pdf"))>-1?tt.replaceSelection(`<a href="/api/attachments/${_n.id}?type=${En.type}&disposition=inline" target="_blank">${En.name}</a>`):_e.includes(la)?tt.replaceSelection(`<a href="/api/attachments/${_n.id}?type=office&disposition=inline" target="_blank">${En.name}</a>`):tt.replaceSelection(`[${En.name}](/api/attachments/${_n.id}?type=${_n.content_type})`):(_n==null?void 0:_n.status)===401&&(yn.ZP.warning((_n==null?void 0:_n.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Bn){yn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const tt=Ke().fromTextArea(Dn.current,{mode:jt,lineNumbers:!Ie,lineWrapping:!0,value:ce,autoCloseTags:!qe,autoCloseBrackets:!0});return tt.on("keyup",function(lt,Pt){Pt.keyCode===8&&(lt.getValue()==""?tt.setOption("placeholder",Tt):tt.setOption("placeholder",null))}),tt.on("keydown",function(lt,Pt){if(Pt.keyCode===8){var Vt=na(lt);Vt&&Pt.preventDefault()}}),ut&&tt.focus(),tt.on("paste",ft),tt.on("dragleave",function(lt,Pt){Cn.current.classList.remove("mouse-hover-md")}),ht&&tt.on("beforeChange",function(lt,Pt){(Pt.origin==="paste"||Pt.origin==="+input")&&Pt.cancel()}),gn(tt),()=>{tt.off("paste",ft)}}},[]);const jn=(0,te.useCallback)(()=>{if(Cn.current)try{}catch(ft){console.log(ft,"---- to set md editor body height")}},[ln,Cn,mt]);(0,te.useEffect)(()=>{function ft(){let tt=new Ze.Z(lt=>{for(let Pt of lt)(Pt.target.offsetHeight>0||Pt.target.offsetWidth>0)&&(jn(),Fe.setSize("100%","100%"),Fe.refresh())});return tt.observe(Dn.current.parentElement),tt}if(Fe){const tt=ft();return()=>{var lt,Pt;(lt=Dn.current)!=null&<.parentElement&&tt.unobserve((Pt=Dn.current)==null?void 0:Pt.parentElement)}}},[Fe,jn]),(0,te.useEffect)(()=>{if(Fe){let ft=[];for(const[tt,lt]of Object.entries(xn)){let Pt={[tt]:()=>{un(lt)}};ft.push(Pt),Fe.addKeyMap(Pt)}return In.current=setInterval(()=>{ta.current&&Gn()},4e3),()=>{clearInterval(In.current);for(let tt of ft)Fe.removeKeyMap(tt)}}},[Fe]),(0,te.useEffect)(()=>{je!==mt&&Bt(je)},[je]),(0,ma.Z)(()=>{if(!le&&Wt>0){let ft=new Date().getTime(),tt=window.sessionStorage.getItem(en);ft>=Wt+oa&&(!tt||tt!==Yt)&&(window.sessionStorage.setItem(en,Yt),An(!0))}},oa),(0,te.useEffect)(()=>{Re(Rt)},[Fe,Rt]),(0,te.useEffect)(()=>{Fe&&ut&&Fe.focus()},[Fe,ut]),(0,te.useEffect)(()=>{if(Qt&&Fe){let ft=function(lt){let Pt=lt.target;if(pn.current){let Vt=Pt.scrollTop/Pt.scrollHeight;pn.current.scrollTop=pn.current.scrollHeight*Vt}};const tt=Fe.getScrollerElement();return tt.addEventListener("scroll",ft),()=>{tt.removeEventListener("scroll",ft)}}},[Fe,Qt]),(0,te.useEffect)(()=>{if(Fe&&St){let ft=function(tt,lt){St(tt,lt)};return Fe.on("beforeChange",ft),()=>{Fe.off("beforeChange",ft)}}},[Fe,St]),(0,te.useEffect)(()=>{if(Fe&&st){let ft=function(){st(Fe.getValue())};return Fe.on("blur",ft),()=>{Fe.off("blur",ft)}}},[Fe,st]);function na(ft,tt){var lt=ft.getDoc(),Pt=lt.getCursor(),Vt=lt.getLine(Pt.line),nn=Vt.charAt(Pt.ch-1),wn=Vt.lastIndexOf("@\u2581@",Pt.ch),bn=Vt.lastIndexOf("@\u2581\u2581@",Pt.ch),Bn=wn>bn?wn:bn,En=wn>bn?3:4;if(Kn.indexOf(nn)===-1)return null;if(console.log("change1:",tt,ft,Vt,Pt,Bn,wn,bn,nn),Bn>=0&&Pt.ch-Bn<5){var la=Bn+En;return lt.replaceRange("",{line:Pt.line,ch:Bn},{line:Pt.line,ch:la}),{line:Pt.line,ch:la}}return null}(0,te.useEffect)(()=>{if(Fe){let ft=function(tt,lt){const Pt=tt.getValue();Mn(Pt),dn(new Date().getTime()),tt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),he&&(qe?he(Pt,Hn(Pt)):he(Pt))};return Fe.on("change",ft),()=>{Fe.off("change",ft)}}},[Fe,he]),(0,te.useEffect)(()=>{if(Fe)if(ce==null)Fe.setValue(""),Mn("");else{const ft=window.scrollY||window.pageYOffset;ce!==Fe.getValue()&&(Fe.setValue(ce),Mn(ce),Fe.setCursor(ht?1:Fe.lineCount(),0),window.scrollTo(0,ft))}},[Fe,ce]);const un=(0,te.useCallback)(ft=>{const tt=Fe.getCursor(),lt=Fe.getSelection();let Pt=lt.split(`
|
|
`);switch(ft){case"bold":return Fe.replaceSelection("**"+lt+"**"),lt===""&&Fe.setCursor(tt.line,tt.ch+2),Fe.focus();case"italic":return Fe.replaceSelection("*"+lt+"*"),lt===""&&Fe.setCursor(tt.line,tt.ch+1),Fe.focus();case"code":return Fe.replaceSelection("`"+lt+"`"),lt===""&&Fe.setCursor(tt.line,tt.ch+1),Fe.focus();case"inline-latex":return Ht("inline-latex"),Fe.focus();case"latex":return Fe.replaceSelection("```latex\n"+lt+"\n```"),Fe.setCursor(tt.line+1,lt.length+1),Fe.focus();case"line-break":return Fe.replaceSelection(`<br/>
|
|
`),Fe.focus();case"list-ul":return lt===""?Fe.replaceSelection("- "+lt):Fe.replaceSelection(Pt.map(Vt=>Vt===""?"":`- ${Vt}`).join(`
|
|
`)),Fe.focus();case"list-ol":return lt===""?Fe.replaceSelection("1. "+lt):Fe.replaceSelection(Pt.map((Vt,nn)=>Vt===""?"":`${nn+1}. ${Vt}`).join(`
|
|
`)),Fe.focus();case"add-null-ch":return lt===""&&Fe.setCursor(tt.line,tt.ch),Fe.replaceSelection(Sa),Fe.focus();case"add-signal":return lt===""&&Fe.setCursor(tt.line,tt.ch),Fe.replaceSelection(We),Fe.focus();case"add-multiple":return lt===""&&Fe.setCursor(tt.line,tt.ch),Fe.replaceSelection(Kn),Fe.focus();case"inster-template-1":return lt===""&&Fe.setCursor(tt.line,tt.ch),Fe.replaceSelection(Ue),Fe.focus();case"eraser":return Fe.setValue(""),Fe.focus();case"trigger-watch":return Re(!Qt),Fe.focus();case"trigger-full-screen":return Bt(!mt),Fe.focus();case mn:Ht(mn);return;case sn:Ht(sn);return;case Sn:Ht(Sn);return;case fn:Ht(fn);return;case"maths-latex":Ht("maths-latex");return;case On:Ht(On);return;case Nn:Ht(Nn);return;default:throw new Error}},[Fe,Qt,mt]),zn=(0,te.useCallback)((ft,tt)=>{var lt,Pt,Vt,nn,wn,bn;switch(Ht(""),at){case mn:const{title:ya,link:wa}=ft;return Fe.replaceSelection(`[${ya}](${wa})`),Fe.focus();case sn:const{language:ba,content:Ba}=ft;return Fe.replaceSelection(["```"+ba,Ba,"```"].join(`
|
|
`)),Fe.focus();case"maths-latex":for(var Bn=atob(ft),En=new Uint8Array(Bn.length),la=0;la<Bn.length;la++)En[la]=Bn.charCodeAt(la);var _n=new Blob([En],{type:"image/png"});(0,ye.I)(_n,ga=>{ga.id?Fe.replaceSelection(``):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Fe.replaceSelection("`$$"+ft+"$$`");break;case Sn:case fn:case Tn:const{src:vn,alt:Zt}=ft,Ln=tt,pa=(Vt=(Pt=(lt=Ln==null?void 0:Ln.name)==null?void 0:lt.split("."))==null?void 0:Pt.pop)==null?void 0:Vt.call(Pt);return((nn=Ln==null?void 0:Ln.type)==null?void 0:nn.indexOf("image"))>-1||!(Ln!=null&&Ln.type)?Ln.align||Ln.width?Fe.replaceSelection(`<p style="text-align:${Ln.align||"initial"}"><img width="${Ln.width?Ln.width+"%":"initial"}" src="${vn}" alt="${Zt||""}" /></p>`):Fe.replaceSelection(`<img width="100%" src="${vn}" alt="${Zt||""}" />`):((wn=Ln==null?void 0:Ln.type)==null?void 0:wn.indexOf("video"))>-1?Fe.replaceSelection(`<video width="100%" controls src="${vn}"></video>`):((bn=Ln==null?void 0:Ln.type)==null?void 0:bn.indexOf("pdf"))>-1?Fe.replaceSelection(`<a href="${vn}?type=${Ln.type}&disposition=inline" target="_blank">${Ln.name}</a>`):_e.includes(pa)?Fe.replaceSelection(`<a href="${vn}?type=office&disposition=inline" target="_blank">${Ln.name}</a>`):Fe.replaceSelection(`[${Ln.name}](${vn})`),Fe.focus();case Nn:const{row:aa,col:ha,align:va}=ft;let ca=`
|
|
`;for(let ga=0;ga<aa;ga++){let Ea=[],Fa=[];for(let Ca=0;Ca<ha;Ca++)ga===1&&Fa.push(ea[va]),Ea.push(" ");ga===1&&(ca+=`| ${Fa.join(" | ")} |
|
|
`),ca+=`| ${Ea.join(ha===1?"":" | ")} |
|
|
`}return Fe.replaceSelection(ca+`
|
|
`),Fe.focus();default:throw new Error}},[Fe,at]),Zn=(0,te.useMemo)(()=>{switch(at){case mn:return te.createElement(At,{callback:zn,onCancel:$n});case sn:return te.createElement(Jt.Z,{callback:zn,onCancel:$n});case Sn:return te.createElement(ye.Z,{callback:zn,onCancel:$n});case On:return te.createElement(ot,{callback:zn,onCancel:$n});case Nn:return te.createElement(yt,{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(){Ht("")}(0,te.useEffect)(()=>{if(qn.current){let ft=function(wn){Vt=!0,nn=wn.pageY},tt=function(){Vt=!1},lt=function(wn){if(Vt){let bn=wn.pageY-nn;bn<0&&(bn=0),bn>300&&(bn=300);let Bn=De+bn+"px";hn(Bn)}},Pt=qn.current,Vt=!1,nn=0;return Pt.addEventListener("mousedown",ft),document.addEventListener("mousemove",lt),document.addEventListener("mouseup",tt),()=>{Pt.removeEventListener("mousedown",ft),document.removeEventListener("mousemove",lt),document.removeEventListener("mouseup",tt)}}},[Fe,qn]),(0,te.useEffect)(()=>{hn(De)},[De]);const La=rt(Pe),Pa=rt(ln),fa={width:La,height:Pa},ra=(0,te.useMemo)(()=>{if(Wt){let ft=new Date(Wt),tt=ft.getHours(),lt=ft.getMinutes(),Pt=ft.getSeconds();return tt=tt<10?"0"+tt:tt,lt=lt<10?"0"+lt:lt,Pt=Pt<10?"0"+Pt:Pt,`${tt}:${lt}:${Pt}`}return 0},[Wt]),Hn=ft=>{const tt=[];if(qe){let lt=-1;ft=ft.replace(/(@▁▁@|@▁@)/g,function(Pt,Vt,nn){tt.push({multiLine:Pt!==We})})}return tt};function Wn(){window.sessionStorage.removeItem(en),An(!1),dn(0)}function ua(){An(!1),dn(0),Fe.setValue(window.sessionStorage.getItem(en))}(0,te.useEffect)(()=>{$t[at]&&at!==fn&&at!==On&&setTimeout(()=>{const ft=document.getElementsByClassName("markdown-popup-form")[0],tt=window.innerWidth/2-ft.offsetWidth/2,lt=window.innerHeight/2-ft.offsetHeight/2;Rn(tt),Qn(lt)},0)},[at]);const da=ft=>{ft.preventDefault();const tt=ft.clientX-Jn,lt=ft.clientY-kn;document.body.onmousemove=Pt=>{let Vt=Pt.clientX-tt,nn=Pt.clientY-lt;const wn=document.getElementsByClassName("markdown-popup-form")[0],bn=window.innerWidth-wn.offsetWidth,Bn=window.innerHeight-wn.offsetHeight;Vt=Math.max(0,Math.min(Vt,bn)),nn=Math.max(0,Math.min(nn,Bn)),xa(Pt.clientX,Pt.clientY,tt,lt)&&(Rn(Vt),Qn(nn))},document.body.onmouseup=function(){document.body.onmousemove=null}},xa=(ft,tt,lt,Pt)=>{const Vt=document.body.clientHeight,nn=document.body.clientWidth;return ft<20&<>ft||ft>nn-20&<<ft||tt<20&&Pt>tt||tt>Vt-20&&Pt<tt?(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 ${et} ${Qt?"on-preview":""} ${Ie?"mini":""} ${mt?"full-screen":""}`,style:fa},te.createElement(ie,{insertTemp:xt,watch:Qt,fullScreen:mt,showNullButton:Oe,showNullProgramButton:qe,onActionCallback:un,hidetoolBar:gt,extraUse:Fn}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Dn,placeholder:Tt})),Qt?te.createElement("div",{ref:pn,className:"preview-container"},jt==="stex"&&te.createElement(Ge,{value:Yt}),jt!=="stex"&&te.createElement(Te.Z,{disabledFill:Ft,showProgramFill:qe,value:Yt})):null))),$e?te.createElement("a",{ref:qn,className:"editor-resize"}):null,at===fn&&te.createElement(vt,{callback:zn,onCancel:$n}),at===On&&te.createElement(ot,{callback:zn,onCancel:$n}),te.createElement(Se.Z,null,$t[at]&&at!==fn&&at!==On?te.createElement(Ce.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===On?"1200px":null,height:at===On?"80vh":null,className:"markdown-popup-form"},Zn):null))}},17077:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return re},I:function(){return Se}});var te=ge(78241),pe=ge(8591),Ke=ge(92832),Ze=ge(81327),se=ge(5871),Ne=ge(5112),me=ge(3113),ke=ge(46699),be=ge(59301),Ae=ge(48790),Te=ge(59301),Ge=Object.defineProperty,Be=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(ue,xe,Me)=>xe in ue?Ge(ue,xe,{enumerable:!0,configurable:!0,writable:!0,value:Me}):ue[xe]=Me,E=(ue,xe)=>{for(var Me in xe||(xe={}))y.call(xe,Me)&&b(ue,Me,xe[Me]);if(a)for(var Me of a(xe))x.call(xe,Me)&&b(ue,Me,xe[Me]);return ue},z=(ue,xe)=>Be(ue,ae(xe));const{useForm:ee}=te.default,ne={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:ue,onCancel:xe})=>{const[Me]=ee();let ct=(0,be.useRef)();function zt(Xe){ct.current.width=Me.getFieldValue("width"),ct.current.align=Me.getFieldValue("align"),ue(Xe,ct.current)}function Xt(Xe,nt){if(Xe.status===-1){pe.ZP.error(Xe.message);return}Me.setFieldsValue({src:`/api/attachments/${Xe.id}`,type:nt.type})}function Le(Xe){let nt=Xe.target.files[0];ct.current=nt,Se(nt,Xt)}return Te.createElement(te.default,z(E({form:Me},oe),{className:"upload-image-panel",onFinish:zt,style:{width:470,overflow:"hidden"}}),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(Ke.default,{style:ne})),Te.createElement(ie,{onFileChange:Le}))),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(Ke.default,{style:{width:264}})),Te.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Te.createElement(Ze.Z,null,Te.createElement(te.default.Item,{name:"width",style:{margin:0}},Te.createElement(se.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Te.createElement(Ne.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Te.createElement("aside",null,Te.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(me.ZP,{type:"default",onClick:xe},"\u53D6\u6D88"))))};function ie({onFileChange:ue}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:ue}))}function Se(ue,xe){if(!ue)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ae.bg)())throw pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Me=new FormData;Me.append("editormd-image-file",ue),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var ct=new window.XMLHttpRequest;ct.withCredentials=!0,ct.addEventListener("load",function(zt){xe(JSON.parse(zt.target.responseText),ue)},!1),ct.addEventListener("error",function(zt){console.error(zt)},!1),ct.open("POST",`${ke.KI}/api/attachments.json`),ct.send(Me)}},91558:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return Ke}});var te=ge(59301),pe=ge(4676);class Ke 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,pe.createPortal)(se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},37808:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return pe}});var te=ge(59301);function pe(Ke,Ze){const se=(0,te.useRef)();(0,te.useEffect)(()=>{se.current=Ke}),(0,te.useEffect)(()=>{function Ne(){se.current()}if(Ze!==null){let me=setInterval(Ne,Ze);return()=>clearInterval(me)}},[Ze])}},35918:function(we,it,ge){"use strict";ge.r(it),ge.d(it,{default:function(){return Kn}});var te=ge(59301),pe=ge(25690),Ke=ge(346),Ze=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"},ke=ge(94670),be=Object.defineProperty,Ae=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(We,Ue,_e)=>Ue in We?be(We,Ue,{enumerable:!0,configurable:!0,writable:!0,value:_e}):We[Ue]=_e,y=(We,Ue)=>{for(var _e in Ue||(Ue={}))Be.call(Ue,_e)&&a(We,_e,Ue[_e]);if(Ge)for(var _e of Ge(Ue))ae.call(Ue,_e)&&a(We,_e,Ue[_e]);return We},x=(We,Ue)=>Ae(We,Te(Ue)),b=(We,Ue)=>{var _e={};for(var rt in We)Be.call(We,rt)&&Ue.indexOf(rt)<0&&(_e[rt]=We[rt]);if(We!=null&&Ge)for(var rt of Ge(We))Ue.indexOf(rt)<0&&ae.call(We,rt)&&(_e[rt]=We[rt]);return _e},E=(We,Ue,_e)=>new Promise((rt,qt)=>{var tn=Ct=>{try{$t(_e.next(Ct))}catch(ce){qt(ce)}},xn=Ct=>{try{$t(_e.throw(Ct))}catch(ce){qt(ce)}},$t=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(tn,xn);$t((_e=_e.apply(We,Ue)).next())});const z=We=>{var Ue=We,{user:_e,forumsDetail:rt,globalSetting:qt,loading:tn,dispatch:xn}=Ue,$t=b(Ue,["user","forumsDetail","globalSetting","loading","dispatch"]),Ct,ce,he,Pe;const{author_info:De,memo:Ie,recommend_shixuns:ut}=rt.forumsDetailData||{},Rt=()=>E(void 0,null,function*(){(De!=null&&De.watched?yield(0,ke.Sr)({user_id:De.login}):yield(0,ke.YP)({user_id:De.login}))&&xn({type:"forumsDetail/setForumsDetailData",payload:x(y({},rt.forumsDetailData),{author_info:x(y({},De),{watched:!(De!=null&&De.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/${De==null?void 0:De.login}`,target:"_blank"},(De==null?void 0:De.image_url)&&te.createElement("img",{src:`${Ke.Z.API_SERVER}/images/${De==null?void 0:De.image_url}`})),te.createElement("div",{className:"tc font20"},De==null?void 0:De.username),te.createElement("div",{className:"tc c-grey-999"},De==null?void 0:De.identity),((Ct=_e.userInfo)==null?void 0:Ct.user_id)!==(De==null?void 0:De.user_id)&&te.createElement(Ze.Z,{justify:"center",className:`mt30 ${me.buttonWrap}`},te.createElement(se.Z,null,te.createElement(Ne.ZP,{type:"primary",className:"mr10",onClick:Rt},De!=null&&De.watched?"\u53D6\u6D88\u5173\u6CE8":"\u5173\u6CE8")),te.createElement(se.Z,null,te.createElement(Ne.ZP,{className:me.privateMessage,href:`/messages/${(ce=_e.userInfo)==null?void 0:ce.login}/message_detail?target_ids=${De==null?void 0:De.user_id}`,target:"_blank"},"\u79C1\u4FE1")))),!!((he=Ie==null?void 0:Ie.tag)!=null&&he.length)&&te.createElement("div",{className:"bg-white mt10 pt40 pb40 pl20 pr20"},te.createElement("div",{className:"font16"},"\u8BDD\u9898\u6807\u7B7E"),te.createElement("div",{className:`mt10 ${me.tag}`},(Pe=Ie==null?void 0:Ie.tag)==null?void 0:Pe.map((xt,jt)=>te.createElement("span",{key:jt,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,pe.connect)(({user:We,forumsDetail:Ue,loading:_e,globalSetting:rt})=>({user:We,forumsDetail:Ue,globalSetting:rt,loading:_e.models.forumsDetail}))(z),ne=ge(61186),oe=ge.n(ne),re=ge(91842),ie=ge(8591),Se=ge(43418),ue=ge(92832),xe=ge(20834),Me=ge(66104),ct=ge(38854),zt=ge(6848),Xt=ge(39793),Le=ge(26227),Xe={flex_box_center:"flex_box_center___nMc3G",flex_space_between:"flex_space_between___gTlaF",flex_box_vertical_center:"flex_box_vertical_center___GQv6O",flex_box_center_end:"flex_box_center_end___nrFEP",flex_box_column:"flex_box_column___Ls1oQ",reply:"reply___jb23w",replyList:"replyList___ryiUt",comment:"comment___QJ1eT",content:"content___X2UnY",commentItem:"commentItem___h_wnY"},nt=Object.defineProperty,Ye=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Jt=(We,Ue,_e)=>Ue in We?nt(We,Ue,{enumerable:!0,configurable:!0,writable:!0,value:_e}):We[Ue]=_e,ye=(We,Ue)=>{for(var _e in Ue||(Ue={}))_t.call(Ue,_e)&&Jt(We,_e,Ue[_e]);if(Dt)for(var _e of Dt(Ue))At.call(Ue,_e)&&Jt(We,_e,Ue[_e]);return We},Ce=(We,Ue)=>Ye(We,dt(Ue)),Ve=(We,Ue,_e)=>new Promise((rt,qt)=>{var tn=Ct=>{try{$t(_e.next(Ct))}catch(ce){qt(ce)}},xn=Ct=>{try{$t(_e.throw(Ct))}catch(ce){qt(ce)}},$t=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(tn,xn);$t((_e=_e.apply(We,Ue)).next())});oe().locale("ZH-cn");function wt({user:We,vlist:Ue=[],dispatch:_e,params:rt,id:qt,memo_replies:tn,forumsDetail:xn}){return te.createElement("aside",{className:Xe.comment},Ue.map(function($t,Ct){var ce,he;return te.createElement(Ze.Z,{key:Ct,className:Xe.commentItem},te.createElement(se.Z,{span:24},te.createElement(Ze.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===((ce=We.userInfo)==null?void 0:ce.user_id)||$t.user_login===((he=We.userInfo)==null?void 0:he.login))&&te.createElement(se.Z,{className:"forums-comment-delete",style:{display:"none"}},te.createElement(zt.Z,{title:"\u5220\u9664"},te.createElement(Le.Z,{className:"current",onClick:()=>{Se.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Ve(this,null,function*(){const Pe=yield(0,ke.sW)({id:$t.id}),De=tn.find(Ie=>Ie.id===qt).children.filter(Ie=>Ie.id!==$t.id);tn.find(Ie=>Ie.id===qt).children=De,_e({type:"forumsDetail/setForumsDetailData",payload:Ce(ye({},xn.forumsDetailData),{memo_replies:[...tn]})})})})}}))))),te.createElement(se.Z,null,te.createElement(re.Z,{value:$t.content})))}))}var Je=wt,vt=ge(51257),de=Object.defineProperty,Qe=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ve=(We,Ue,_e)=>Ue in We?de(We,Ue,{enumerable:!0,configurable:!0,writable:!0,value:_e}):We[Ue]=_e,fe=(We,Ue)=>{for(var _e in Ue||(Ue={}))Et.call(Ue,_e)&&ve(We,_e,Ue[_e]);if(kt)for(var _e of kt(Ue))Ee.call(Ue,_e)&&ve(We,_e,Ue[_e]);return We},ze=(We,Ue)=>Qe(We,Ot(Ue)),He=(We,Ue)=>{var _e={};for(var rt in We)Et.call(We,rt)&&Ue.indexOf(rt)<0&&(_e[rt]=We[rt]);if(We!=null&&kt)for(var rt of kt(We))Ue.indexOf(rt)<0&&Ee.call(We,rt)&&(_e[rt]=We[rt]);return _e},ot=(We,Ue,_e)=>new Promise((rt,qt)=>{var tn=Ct=>{try{$t(_e.next(Ct))}catch(ce){qt(ce)}},xn=Ct=>{try{$t(_e.throw(Ct))}catch(ce){qt(ce)}},$t=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(tn,xn);$t((_e=_e.apply(We,Ue)).next())});oe().locale("ZH-cn");const Lt=(We,Ue)=>{var _e=We,{user:rt,forumsDetail:qt,globalSetting:tn,loading:xn,dispatch:$t,handleClick:Ct}=_e,ce=He(_e,["user","forumsDetail","globalSetting","loading","dispatch","handleClick"]);const{memo:he,memo_replies:Pe}=qt.forumsDetailData||{},De=(0,pe.useParams)(),[Ie,ut]=(0,te.useState)(""),[Rt,xt]=(0,te.useState)(""),[jt,en]=(0,te.useState)(-1),[$e,le]=(0,te.useState)(!1),[Oe,qe]=(0,te.useState)(1),[gt,je]=(0,te.useState)(!1);(0,te.useImperativeHandle)(Ue,()=>({onMdFouch:Nt})),(0,te.useEffect)(()=>{le((he==null?void 0:he.replies_count)>10)},[he==null?void 0:he.replies_count]);const st=()=>ot(void 0,null,function*(){var et;const Gt=Oe+1;qe(Gt);const ht=yield(0,ke.z5)({id:De.memoId,page:Gt});ht!=null&&ht.memo_replies&&($t({type:"forumsDetail/setForumsDetailData",payload:ze(fe({},qt.forumsDetailData),{memo_replies:[...Pe,...ht.memo_replies]})}),le(((et=ht.memo_replies)==null?void 0:et.length)===10))}),St=et=>{var Gt,ht,Ft,Tt;return ze(fe({},et),{image_url:(Gt=rt.userInfo)==null?void 0:Gt.image_url,children:[],user_id:(ht=rt.userInfo)==null?void 0:ht.user_id,user_login:(Ft=rt.userInfo)==null?void 0:Ft.login,username:(Tt=rt.userInfo)==null?void 0:Tt.username,time:`${(0,vt.li)((new Date().getTime()-new Date(et.created_at).getTime())/1e3)}\u524D`})},Nt=()=>{je(!0)};return te.createElement("section",{className:Xe.wrap},!!(Pe!=null&&Pe.length)&&te.createElement("aside",{className:Xe.content},te.createElement("div",{style:{padding:"10px 15px 5px 15px",justifyContent:"space-between",display:"flex"}},te.createElement("span",null,"\u5168\u90E8\u56DE\u590D\uFF08",he.replies_count,"\uFF09")),te.createElement("aside",{className:Xe.replyList},Pe==null?void 0:Pe.map(function(et,Gt){var ht;return te.createElement(Ze.Z,{gutter:[12,12],key:Gt},te.createElement(se.Z,{flex:"40px"},te.createElement("a",{href:`/users/${et.user_login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"50",height:"50",src:`${Ke.Z.IMG_SERVER}/images/${et==null?void 0:et.image_url}`}))),te.createElement(se.Z,{flex:"1"},te.createElement(Ze.Z,{align:"middle"},te.createElement(se.Z,{span:24},te.createElement("a",{href:`/users/${et.user_login}`,target:"_blank"},te.createElement("span",{className:"c-light-black"},et==null?void 0:et.username)),te.createElement("span",{className:"c-light-black ml10"},et.time)),te.createElement(se.Z,{span:24},te.createElement("div",{onClick:Ct},te.createElement(re.Z,{value:et.content}))),!!((ht=et==null?void 0:et.children)!=null&&ht.length)&&te.createElement(Je,{user:rt,id:et==null?void 0:et.id,vlist:et==null?void 0:et.children,dispatch:$t,params:De,memo_replies:Pe,forumsDetail:qt}),te.createElement(se.Z,{span:24,className:"mt5 c-light-black"},jt===Gt?te.createElement("aside",null,te.createElement(Xt.Z,{onChange:Ft=>{xt(Ft)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),te.createElement(Ze.Z,null,te.createElement(se.Z,{span:24,className:"tr"},te.createElement(Ne.ZP,{type:"primary",size:"middle",onClick:()=>ot(this,null,function*(){if(Rt==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Ft=yield(0,ke.ts)({parent_id:et.id,content:Rt});xt(null),Ft&&(en(-1),Pe.find(Tt=>Tt.id===Ft.parent_id).children.push(St(Ft)),$t({type:"forumsDetail/setForumsDetailData",payload:ze(fe({},qt.forumsDetailData),{memo:ze(fe({},he),{replies_count:he.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(Gt)}),te.createElement(zt.Z,{title:et.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("span",{className:et.user_praise?"c-orange":"c-gery-888"},te.createElement("i",{className:"iconfont icon-dianzan mr3 current",onClick:()=>ot(this,null,function*(){const Ft=yield(0,ke.vL)({id:et.id,container_type:"Memo",type:et.user_praise?0:1});(Ft==null?void 0:Ft.praise_count)>=0&&(Pe.find(Tt=>Tt.id===et.id).user_praise=!et.user_praise,Pe.find(Tt=>Tt.id===et.id).praise_count=Ft==null?void 0:Ft.praise_count,$t({type:"forumsDetail/setForumsDetailData",payload:ze(fe({},qt.forumsDetailData),{memo_replies:[...Pe]})}))})}),et.praise_count>0?et.praise_count:"")))))))}))),$e&&te.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center"}},te.createElement(Ze.Z,{justify:"space-between"},te.createElement(se.Z,null),te.createElement(se.Z,null,$e&&te.createElement("a",{className:"c-black",onClick:st},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA")))),te.createElement("aside",{className:Xe.reply},te.createElement(Xt.Z,{onBlur:()=>je(!1),isFocus:gt,defaultValue:Ie,id:"writeForumsReviewId",onChange:et=>{ut(et)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(Ze.Z,null,te.createElement(se.Z,{flex:"1"}),te.createElement(se.Z,null,te.createElement(Ne.ZP,{type:"primary",size:"middle",onClick:()=>ot(void 0,null,function*(){if(Ie==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const et=yield(0,ke.ts)({parent_id:he.id,content:Ie});ut(null),et&&$t({type:"forumsDetail/setForumsDetailData",payload:ze(fe({},qt.forumsDetailData),{memo:ze(fe({},he),{replies_count:he.replies_count+1}),memo_replies:[St(et),...Pe]})})}})},"\u53D1\u9001")))))};var pt=(0,pe.connect)(({user:We,forumsDetail:Ue,loading:_e,globalSetting:rt})=>({user:We,forumsDetail:Ue,globalSetting:rt,loading:_e.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.forwardRef)(Lt)),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"},Mt=ge(87169),yt=ge(77525),It=ge(49535),an=Object.defineProperty,Pn=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,yn=(We,Ue,_e)=>Ue in We?an(We,Ue,{enumerable:!0,configurable:!0,writable:!0,value:_e}):We[Ue]=_e,mn=(We,Ue)=>{for(var _e in Ue||(Ue={}))on.call(Ue,_e)&&yn(We,_e,Ue[_e]);if(Kt)for(var _e of Kt(Ue))rn.call(Ue,_e)&&yn(We,_e,Ue[_e]);return We},Sn=(We,Ue)=>Pn(We,cn(Ue)),On=(We,Ue)=>{var _e={};for(var rt in We)on.call(We,rt)&&Ue.indexOf(rt)<0&&(_e[rt]=We[rt]);if(We!=null&&Kt)for(var rt of Kt(We))Ue.indexOf(rt)<0&&rn.call(We,rt)&&(_e[rt]=We[rt]);return _e},fn=(We,Ue,_e)=>new Promise((rt,qt)=>{var tn=Ct=>{try{$t(_e.next(Ct))}catch(ce){qt(ce)}},xn=Ct=>{try{$t(_e.throw(Ct))}catch(ce){qt(ce)}},$t=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(tn,xn);$t((_e=_e.apply(We,Ue)).next())});const Tn={5:"\u6280\u672F\u5206\u4EAB",3:"\u64CD\u4F5C\u6307\u5357",16:"\u901A\u77E5\u516C\u544A"},sn=We=>{var Ue=We,{user:_e,forumsDetail:rt,globalSetting:qt,loading:tn,dispatch:xn}=Ue,$t=On(Ue,["user","forumsDetail","globalSetting","loading","dispatch"]),Ct,ce,he,Pe;const{author_info:De,memo:Ie,attachments_list:ut}=rt.forumsDetailData||{},Rt=(0,te.useRef)(),xt=(0,te.useRef)(),jt=()=>fn(void 0,null,function*(){const je={id:Ie.id,sticky:Ie.sticky?0:1},st=yield(0,ke.B0)(je);(st==null?void 0:st.status)===0&&xn({type:"forumsDetail/setForumsDetailData",payload:Sn(mn({},rt.forumsDetailData),{memo:Sn(mn({},Ie),{sticky:!(Ie!=null&&Ie.sticky)})})})}),en=()=>fn(void 0,null,function*(){const je=yield(0,ke.sW)({id:Ie==null?void 0:Ie.id});(je==null?void 0:je.status)===0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),pe.history.push("/forums")),(je==null?void 0:je.status)===-1&&pe.history.push("/forums")}),$e=()=>fn(void 0,null,function*(){Se.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(ue.default,{defaultValue:Rt.current,onChange:je=>Rt.current=je.target.value})),onOk:()=>fn(void 0,null,function*(){const je=yield(0,ke.eh)({id:Ie==null?void 0:Ie.id,container_type:"Memo",score:Rt.current?Number(Rt.current):0,user_id:De==null?void 0:De.user_id});if(Rt.current=null,(je==null?void 0:je.code)>0){xn({type:"forumsDetail/setForumsDetailData",payload:Sn(mn({},rt.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()},Oe=()=>fn(void 0,null,function*(){const je=yield(0,ke.vL)({id:Ie.id,container_type:"Memo",type:1});(je==null?void 0:je.praise_count)>=0&&xn({type:"forumsDetail/setForumsDetailData",payload:Sn(mn({},rt.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(xe.default,{className:bt.menu},((Ct=_e.userInfo)==null?void 0:Ct.admin)&&(Ie==null?void 0:Ie.sticky)&&te.createElement(xe.default.Item,null,te.createElement("a",{onClick:()=>jt()},"\u53D6\u6D88\u7F6E\u9876")),((ce=_e.userInfo)==null?void 0:ce.admin)&&!(Ie!=null&&Ie.sticky)&&te.createElement(xe.default.Item,null,te.createElement("a",{onClick:()=>jt()},"\u7F6E\xA0\xA0\u9876")),te.createElement(xe.default.Item,null,te.createElement(pe.Link,{to:`/forums/${Ie==null?void 0:Ie.id}/edit`},"\u7F16\xA0\xA0\u8F91")),te.createElement(xe.default.Item,null,te.createElement("a",{onClick:()=>{Se.default.confirm({title:"\u63D0\u793A",icon:te.createElement(Mt.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"))),gt=je=>{let{nodeName:st,src:St}=je.target;st==="IMG"&&(It.Z.publish("preview-image",St),console.log("src:",St))};return(0,te.useEffect)(()=>{},[]),te.createElement("section",{className:bt.wrap},te.createElement(Me.Z,{separator:"/",className:"mb5"},te.createElement(Me.Z.Item,null,te.createElement(pe.Link,{to:`/forums/categories/${Ie==null?void 0:Ie.forum_id}`},Tn[Ie==null?void 0:Ie.forum_id])),te.createElement(Me.Z.Item,null,"\u8BE6\u60C5")),te.createElement("header",{className:`bg-white pt40 pb40 pl30 pr30 ${bt.header}`},te.createElement(Ze.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,(((he=_e.userInfo)==null?void 0:he.admin)||((Pe=_e.userInfo)==null?void 0:Pe.user_id)===(De==null?void 0:De.user_id))&&te.createElement(ct.Z,{dropdownRender:()=>qe},te.createElement("i",{className:"fa fa-bars font-16 current c-grey-bcb"})))),te.createElement(Ze.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(zt.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:gt},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:Oe},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(pt,{ref:xt,handleClick:gt}),te.createElement(yt.Z,null))};var Nn=(0,pe.connect)(({user:We,forumsDetail:Ue,loading:_e,globalSetting:rt})=>({user:We,forumsDetail:Ue,globalSetting:rt,loading:_e.effects}))(sn),Xn={flex:"flex___fgmSn"},ea=ge(71418),ma=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,Un=(We,Ue)=>{var _e={};for(var rt in We)ia.call(We,rt)&&Ue.indexOf(rt)<0&&(_e[rt]=We[rt]);if(We!=null&&ma)for(var rt of ma(We))Ue.indexOf(rt)<0&&sa.call(We,rt)&&(_e[rt]=We[rt]);return _e},oa=(We,Ue,_e)=>new Promise((rt,qt)=>{var tn=Ct=>{try{$t(_e.next(Ct))}catch(ce){qt(ce)}},xn=Ct=>{try{$t(_e.throw(Ct))}catch(ce){qt(ce)}},$t=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(tn,xn);$t((_e=_e.apply(We,Ue)).next())});const Sa=We=>{var Ue=We,{forumsDetail:_e,globalSetting:rt,loading:qt,dispatch:tn}=Ue,xn=Un(Ue,["forumsDetail","globalSetting","loading","dispatch"]);const $t=(0,pe.useParams)(),[Ct,ce]=(0,te.useState)(!1);(0,te.useEffect)(()=>{he()},[$t.memoId]);const he=()=>oa(void 0,null,function*(){ce(!0);let Pe=yield tn({type:"forumsDetail/getForumsDetailData",payload:{id:$t.memoId}});ce(!1)});return te.createElement(ea.Z,{spinning:Ct},te.createElement("section",{className:`edu-container mb20 mt30 ${Xn.flex}`},te.createElement(Nn,null),te.createElement(ee,null)))};var Kn=(0,pe.connect)(({forumsDetail:We,loading:Ue,globalSetting:_e})=>({forumsDetail:We,globalSetting:_e,loading:Ue.models.forumsDetail}))(Sa)},66104:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return Xt}});var te=ge(92310),pe=ge.n(te),Ke=ge(11592),Ze=ge(26112),se=ge(59301),Ne=ge(92343),me=ge(36355),ke=ge(84105),be=ge(91857);const Ae=Le=>{let{children:Xe}=Le;const{getPrefixCls:nt}=se.useContext(me.E_),Ye=nt("breadcrumb");return se.createElement("li",{className:`${Ye}-separator`,"aria-hidden":"true"},Xe===""?Xe:Xe||"/")};Ae.__ANT_BREADCRUMB_SEPARATOR=!0;var Te=Ae,Ge=function(Le,Xe){var nt={};for(var Ye in Le)Object.prototype.hasOwnProperty.call(Le,Ye)&&Xe.indexOf(Ye)<0&&(nt[Ye]=Le[Ye]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ye=Object.getOwnPropertySymbols(Le);dt<Ye.length;dt++)Xe.indexOf(Ye[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ye[dt])&&(nt[Ye[dt]]=Le[Ye[dt]]);return nt};function Be(Le,Xe){if(Le.title===void 0||Le.title===null)return null;const nt=Object.keys(Xe).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${nt})`,"g"),(Ye,dt)=>Xe[dt]||Ye)}function ae(Le,Xe,nt,Ye){if(nt==null)return null;const{className:dt,onClick:Dt}=Xe,_t=Ge(Xe,["className","onClick"]),At=Object.assign(Object.assign({},(0,Ze.Z)(_t,{data:!0,aria:!0})),{onClick:Dt});return Ye!==void 0?se.createElement("a",Object.assign({},At,{className:pe()(`${Le}-link`,dt),href:Ye}),nt):se.createElement("span",Object.assign({},At,{className:pe()(`${Le}-link`,dt)}),nt)}function a(Le,Xe){return(Ye,dt,Dt,_t,At)=>{if(Xe)return Xe(Ye,dt,Dt,_t);const Jt=Be(Ye,dt);return ae(Le,Ye,Jt,At)}}var y=function(Le,Xe){var nt={};for(var Ye in Le)Object.prototype.hasOwnProperty.call(Le,Ye)&&Xe.indexOf(Ye)<0&&(nt[Ye]=Le[Ye]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ye=Object.getOwnPropertySymbols(Le);dt<Ye.length;dt++)Xe.indexOf(Ye[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ye[dt])&&(nt[Ye[dt]]=Le[Ye[dt]]);return nt};const x=Le=>{const{prefixCls:Xe,separator:nt="/",children:Ye,menu:dt,overlay:Dt,dropdownProps:_t,href:At}=Le,ye=(Ce=>{if(dt||Dt){const Ve=Object.assign({},_t);if(dt){const wt=dt||{},{items:Je}=wt,vt=y(wt,["items"]);Ve.menu=Object.assign(Object.assign({},vt),{items:Je==null?void 0:Je.map((de,Qe)=>{var{key:Ot,title:kt,label:Et,path:Ee}=de,ve=y(de,["key","title","label","path"]);let fe=Et!=null?Et:kt;return Ee&&(fe=se.createElement("a",{href:`${At}${Ee}`},fe)),Object.assign(Object.assign({},ve),{key:Ot!=null?Ot:Qe,label:fe})})})}else Dt&&(Ve.overlay=Dt);return se.createElement(be.Z,Object.assign({placement:"bottom"},Ve),se.createElement("span",{className:`${Xe}-overlay-link`},Ce,se.createElement(ke.Z,null)))}return Ce})(Ye);return ye!=null?se.createElement(se.Fragment,null,se.createElement("li",null,ye),nt&&se.createElement(Te,null,nt)):null},b=Le=>{const{prefixCls:Xe,children:nt,href:Ye}=Le,dt=y(Le,["prefixCls","children","href"]),{getPrefixCls:Dt}=se.useContext(me.E_),_t=Dt("breadcrumb",Xe);return se.createElement(x,Object.assign({},dt,{prefixCls:_t}),ae(_t,dt,nt,Ye))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ge(17313),ee=ge(83116),ne=ge(37613);const oe=Le=>{const{componentCls:Xe,iconCls:nt}=Le;return{[Xe]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[nt]:{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},[`${Xe}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Xe}-link`]:{[`
|
|
> ${nt} + span,
|
|
> ${nt} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${Xe}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${nt}`]:{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 Xe=(0,ne.TS)(Le,{});return[oe(Xe)]},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,Xe){var nt={};for(var Ye in Le)Object.prototype.hasOwnProperty.call(Le,Ye)&&Xe.indexOf(Ye)<0&&(nt[Ye]=Le[Ye]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ye=Object.getOwnPropertySymbols(Le);dt<Ye.length;dt++)Xe.indexOf(Ye[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ye[dt])&&(nt[Ye[dt]]=Le[Ye[dt]]);return nt};function Se(Le){const{breadcrumbName:Xe,children:nt}=Le,Ye=ie(Le,["breadcrumbName","children"]),dt=Object.assign({title:Xe},Ye);return nt&&(dt.menu={items:nt.map(Dt=>{var{breadcrumbName:_t}=Dt,At=ie(Dt,["breadcrumbName"]);return Object.assign(Object.assign({},At),{title:_t})})}),dt}function ue(Le,Xe){return(0,se.useMemo)(()=>Le||(Xe?Xe.map(Se):null),[Le,Xe])}var xe=function(Le,Xe){var nt={};for(var Ye in Le)Object.prototype.hasOwnProperty.call(Le,Ye)&&Xe.indexOf(Ye)<0&&(nt[Ye]=Le[Ye]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Ye=Object.getOwnPropertySymbols(Le);dt<Ye.length;dt++)Xe.indexOf(Ye[dt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ye[dt])&&(nt[Ye[dt]]=Le[Ye[dt]]);return nt};const Me=(Le,Xe)=>{if(Xe===void 0)return Xe;let nt=(Xe||"").replace(/^\//,"");return Object.keys(Le).forEach(Ye=>{nt=nt.replace(`:${Ye}`,Le[Ye])}),nt},ct=Le=>{const{prefixCls:Xe,separator:nt="/",style:Ye,className:dt,rootClassName:Dt,routes:_t,items:At,children:Jt,itemRender:ye,params:Ce={}}=Le,Ve=xe(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:wt,direction:Je,breadcrumb:vt}=se.useContext(me.E_);let de;const Qe=wt("breadcrumb",Xe),[Ot,kt]=re(Qe),Et=ue(At,_t),Ee=a(Qe,ye);if(Et&&Et.length>0){const ze=[],He=At||_t;de=Et.map((ot,Lt)=>{const{path:pt,key:bt,type:Mt,menu:yt,overlay:It,onClick:an,className:Pn,separator:cn,dropdownProps:Kt}=ot,on=Me(Ce,pt);on!==void 0&&ze.push(on);const rn=bt!=null?bt:Lt;if(Mt==="separator")return se.createElement(Te,{key:rn},cn);const yn={},mn=Lt===Et.length-1;yt?yn.menu=yt:It&&(yn.overlay=It);let{href:Sn}=ot;return ze.length&&on!==void 0&&(Sn=`#/${ze.join("/")}`),se.createElement(x,Object.assign({key:rn},yn,(0,Ze.Z)(ot,{data:!0,aria:!0}),{className:Pn,dropdownProps:Kt,href:Sn,separator:mn?"":nt,onClick:an,prefixCls:Qe}),Ee(ot,Ce,He,ze,Sn))})}else if(Jt){const ze=(0,Ke.Z)(Jt).length;de=(0,Ke.Z)(Jt).map((He,ot)=>{if(!He)return He;const Lt=ot===ze-1;return(0,Ne.Tm)(He,{separator:Lt?"":nt,key:ot})})}const ve=pe()(Qe,vt==null?void 0:vt.className,{[`${Qe}-rtl`]:Je==="rtl"},dt,Dt,kt),fe=Object.assign(Object.assign({},vt==null?void 0:vt.style),Ye);return Ot(se.createElement("nav",Object.assign({className:ve,style:fe},Ve),se.createElement("ol",null,de)))};ct.Item=E,ct.Separator=Te;var zt=ct,Xt=zt},91857:function(we,it,ge){"use strict";var te=ge(59301),pe=ge(38819),Ke=ge(92310),Ze=ge.n(Ke),se=ge(31561),Ne=ge(70425),me=ge(18929),ke=ge(2738),be=ge(79676),Ae=ge(53487),Te=ge(92343),Ge=ge(36355),Be=ge(20834),ae=ge(40875),a=ge(88088),y=ge(47211);const x=null,b=ne=>{const{menu:oe,arrow:re,prefixCls:ie,children:Se,trigger:ue,disabled:xe,dropdownRender:Me,getPopupContainer:ct,overlayClassName:zt,rootClassName:Xt,open:Le,onOpenChange:Xe,visible:nt,onVisibleChange:Ye,mouseEnterDelay:dt=.15,mouseLeaveDelay:Dt=.1,autoAdjustOverflow:_t=!0,placement:At="",overlay:Jt,transitionName:ye}=ne,{getPopupContainer:Ce,getPrefixCls:Ve,direction:wt}=te.useContext(Ge.E_),Je=te.useMemo(()=>{const yt=Ve();return ye!==void 0?ye:At.includes("top")?`${yt}-slide-down`:`${yt}-slide-up`},[Ve,At,ye]),vt=te.useMemo(()=>At?At.includes("Center")?At.slice(0,At.indexOf("Center")):At:wt==="rtl"?"bottomRight":"bottomLeft",[At,wt]),de=Ve("dropdown",ie),[Qe,Ot]=(0,y.Z)(de),[,kt]=(0,a.Z)(),Et=te.Children.only(Se),Ee=(0,Te.Tm)(Et,{className:Ze()(`${de}-trigger`,{[`${de}-rtl`]:wt==="rtl"},Et.props.className),disabled:xe}),ve=xe?[]:ue;let fe;ve&&ve.includes("contextMenu")&&(fe=!0);const[ze,He]=(0,me.Z)(!1,{value:Le!=null?Le:nt}),ot=(0,Ne.useEvent)(yt=>{Xe==null||Xe(yt),Ye==null||Ye(yt),He(yt)}),Lt=Ze()(zt,Xt,Ot,{[`${de}-rtl`]:wt==="rtl"}),pt=(0,be.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:_t,offset:kt.marginXXS,arrowWidth:re?kt.sizePopupArrow:0,borderRadius:kt.borderRadius}),bt=te.useCallback(()=>{He(!1)},[]),Mt=()=>{let yt;return oe!=null&&oe.items?yt=te.createElement(Be.default,Object.assign({},oe)):typeof Jt=="function"?yt=Jt():yt=Jt,Me&&(yt=Me(yt)),yt=te.Children.only(typeof yt=="string"?te.createElement("span",null,yt):yt),te.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:te.createElement("span",{className:`${de}-menu-submenu-arrow`},te.createElement(pe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bt,validator:It=>{let{mode:an}=It}},yt)};return Qe(te.createElement(se.Z,Object.assign({alignPoint:fe},(0,ke.Z)(ne,["rootClassName"]),{mouseEnterDelay:dt,mouseLeaveDelay:Dt,visible:ze,builtinPlacements:pt,arrow:!!re,overlayClassName:Lt,prefixCls:de,getPopupContainer:ct||Ce,transitionName:Je,trigger:ve,overlay:Mt,placement:vt,onVisibleChange:ot}),Ee))};function E(ne){return Object.assign(Object.assign({},ne),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ae.Z)(b,"dropdown",ne=>ne,E),ee=ne=>te.createElement(z,Object.assign({},ne),te.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,it.Z=b},38854:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return a}});var te=ge(91857),pe=ge(92310),Ke=ge.n(pe),Ze=ge(59301),se=ge(18785),Ne=ge(3113),me=ge(36355),ke=ge(81327),be=ge(33234),Ae=ge(47211),Te=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 Ge=y=>{const{getPopupContainer:x,getPrefixCls:b,direction:E}=Ze.useContext(me.E_),{prefixCls:z,type:ee="default",danger:ne,disabled:oe,loading:re,onClick:ie,htmlType:Se,children:ue,className:xe,menu:Me,arrow:ct,autoFocus:zt,overlay:Xt,trigger:Le,align:Xe,open:nt,onOpenChange:Ye,placement:dt,getPopupContainer:Dt,href:_t,icon:At=Ze.createElement(se.Z,null),title:Jt,buttonsRender:ye=Mt=>Mt,mouseEnterDelay:Ce,mouseLeaveDelay:Ve,overlayClassName:wt,overlayStyle:Je,destroyPopupOnHide:vt,dropdownRender:de}=y,Qe=Te(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Ot=b("dropdown",z),kt=`${Ot}-button`,[Et,Ee]=(0,Ae.Z)(Ot),ve={menu:Me,arrow:ct,autoFocus:zt,align:Xe,disabled:oe,trigger:oe?[]:Le,onOpenChange:Ye,getPopupContainer:Dt||x,mouseEnterDelay:Ce,mouseLeaveDelay:Ve,overlayClassName:wt,overlayStyle:Je,destroyPopupOnHide:vt,dropdownRender:de},{compactSize:fe,compactItemClassnames:ze}=(0,be.ri)(Ot,E),He=Ke()(kt,ze,xe,Ee);"overlay"in y&&(ve.overlay=Xt),"open"in y&&(ve.open=nt),"placement"in y?ve.placement=dt:ve.placement=E==="rtl"?"bottomLeft":"bottomRight";const ot=Ze.createElement(Ne.ZP,{type:ee,danger:ne,disabled:oe,loading:re,onClick:ie,htmlType:Se,href:_t,title:Jt},ue),Lt=Ze.createElement(Ne.ZP,{type:ee,danger:ne,icon:At}),[pt,bt]=ye([ot,Lt]);return Et(Ze.createElement(ke.Z.Compact,Object.assign({className:He,size:fe,block:!0},Qe),pt,Ze.createElement(te.Z,Object.assign({},ve),bt)))};Ge.__ANT_BUTTON=!0;var Be=Ge;const ae=te.Z;ae.Button=Be;var a=ae},47211:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return Te}});var te=ge(17313),pe=ge(13826),Ke=ge(92899),Ze=ge(29878),se=ge(19447),Ne=ge(83116),me=ge(37613),be=Ge=>{const{componentCls:Be,menuCls:ae,colorError:a,colorTextLightSolid:y}=Ge,x=`${ae}-item`;return{[`${Be}, ${Be}-menu-submenu`]:{[`${ae} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ae=Ge=>{const{componentCls:Be,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:oe,colorTextDisabled:re,fontSizeIcon:ie,controlPaddingHorizontal:Se,colorBgElevated:ue}=Ge;return[{[Be]:Object.assign(Object.assign({},(0,te.Wf)(Ge)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ie}},[`${Be}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Be}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottomRight`]:{animationName:pe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-topRight`]:{animationName:pe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottomRight`]:{animationName:pe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-topRight`]:{animationName:pe.ly}})},(0,se.ZP)(Ge,{colorBg:ue,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Be} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Be}, ${Be}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:ue,backgroundClip:"padding-box",borderRadius:Ge.borderRadiusLG,outline:"none",boxShadow:Ge.boxShadowSecondary},(0,te.Qy)(Ge)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${Se}px`,color:Ge.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:Ge.marginXS,fontSize:Ge.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 ${Se}px`,color:Ge.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ge.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ge.controlItemBgHover}},(0,te.Qy)(Ge)),{"&-selected":{color:Ge.colorPrimary,backgroundColor:Ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ge.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:ue,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ge.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ge.colorSplit},[`${Be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingXS,[`${Be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ge.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Ge.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Se+Ge.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Be}-menu-submenu-title`]:{[`&, ${Be}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:ue,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Be}-menu-submenu-title`]:{color:Ge.colorPrimary}})}},[(0,pe.oN)(Ge,"slide-up"),(0,pe.oN)(Ge,"slide-down"),(0,Ke.Fm)(Ge,"move-up"),(0,Ke.Fm)(Ge,"move-down"),(0,Ze._y)(Ge,"zoom-big")]]};var Te=(0,Ne.Z)("Dropdown",(Ge,Be)=>{let{rootPrefixCls:ae}=Be;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=Ge,oe=(x-b*E)/2,{dropdownArrowOffset:re}=(0,se.fS)({contentRadius:ne}),ie=(0,me.TS)(Ge,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ae(ie),be(ie)]},Ge=>({zIndexPopup:Ge.zIndexPopupBase+50}))},45818:function(we,it,ge){"use strict";ge.d(it,{D:function(){return z},Z:function(){return oe}});var te=ge(5016),pe=ge(59301),Ke={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"},Ze=Ke,se=ge(7657),Ne=function(ie,Se){return pe.createElement(se.Z,(0,te.Z)({},ie,{ref:Se,icon:Ze}))},me=pe.forwardRef(Ne),ke=me,be=ge(33853),Ae=ge(38819),Te=ge(92310),Ge=ge.n(Te),Be=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var Se={};for(var ue in re)Object.prototype.hasOwnProperty.call(re,ue)&&ie.indexOf(ue)<0&&(Se[ue]=re[ue]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ue=Object.getOwnPropertySymbols(re);xe<ue.length;xe++)ie.indexOf(ue[xe])<0&&Object.prototype.propertyIsEnumerable.call(re,ue[xe])&&(Se[ue[xe]]=re[ue[xe]]);return Se};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=pe.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=pe.forwardRef((re,ie)=>{const{prefixCls:Se,className:ue,trigger:xe,children:Me,defaultCollapsed:ct=!1,theme:zt="dark",style:Xt={},collapsible:Le=!1,reverseArrow:Xe=!1,width:nt=200,collapsedWidth:Ye=80,zeroWidthTriggerStyle:dt,breakpoint:Dt,onCollapse:_t,onBreakpoint:At}=re,Jt=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ye}=(0,pe.useContext)(x.Gs),[Ce,Ve]=(0,pe.useState)("collapsed"in re?re.collapsed:ct),[wt,Je]=(0,pe.useState)(!1);(0,pe.useEffect)(()=>{"collapsed"in re&&Ve(re.collapsed)},[re.collapsed]);const vt=(Ee,ve)=>{"collapsed"in re||Ve(Ee),_t==null||_t(Ee,ve)},de=(0,pe.useRef)();de.current=Ee=>{Je(Ee.matches),At==null||At(Ee.matches),Ce!==Ee.matches&&vt(Ee.matches,"responsive")},(0,pe.useEffect)(()=>{function Ee(fe){return de.current(fe)}let ve;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&Dt&&Dt in E){ve=fe(`(max-width: ${E[Dt]})`);try{ve.addEventListener("change",Ee)}catch(ze){ve.addListener(Ee)}Ee(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",Ee)}catch(fe){ve==null||ve.removeListener(Ee)}}},[Dt]),(0,pe.useEffect)(()=>{const Ee=ee("ant-sider-");return ye.addSider(Ee),()=>ye.removeSider(Ee)},[]);const Qe=()=>{vt(!Ce,"clickTrigger")},{getPrefixCls:Ot}=(0,pe.useContext)(y.E_),kt=()=>{const Ee=Ot("layout-sider",Se),ve=(0,Be.Z)(Jt,["collapsed"]),fe=Ce?Ye:nt,ze=a(fe)?`${fe}px`:String(fe),He=parseFloat(String(Ye||0))===0?pe.createElement("span",{onClick:Qe,className:Ge()(`${Ee}-zero-width-trigger`,`${Ee}-zero-width-trigger-${Xe?"right":"left"}`),style:dt},xe||pe.createElement(ke,null)):null,pt={expanded:Xe?pe.createElement(Ae.Z,null):pe.createElement(be.Z,null),collapsed:Xe?pe.createElement(be.Z,null):pe.createElement(Ae.Z,null)}[Ce?"collapsed":"expanded"],bt=xe!==null?He||pe.createElement("div",{className:`${Ee}-trigger`,onClick:Qe,style:{width:ze}},xe||pt):null,Mt=Object.assign(Object.assign({},Xt),{flex:`0 0 ${ze}`,maxWidth:ze,minWidth:ze,width:ze}),yt=Ge()(Ee,`${Ee}-${zt}`,{[`${Ee}-collapsed`]:!!Ce,[`${Ee}-has-trigger`]:Le&&xe!==null&&!He,[`${Ee}-below`]:!!wt,[`${Ee}-zero-width`]:parseFloat(ze)===0},ue);return pe.createElement("aside",Object.assign({className:yt},ve,{style:Mt,ref:ie}),pe.createElement("div",{className:`${Ee}-children`},Me),Le||wt&&He?bt:null)},Et=pe.useMemo(()=>({siderCollapsed:Ce}),[Ce]);return pe.createElement(z.Provider,{value:Et},kt())})},84966:function(we,it,ge){"use strict";ge.d(it,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Be},ZP:function(){return ee}});var te=ge(92393),pe=ge(92310),Ke=ge.n(pe),Ze=ge(2738),se=ge(59301),Ne=ge(36355),me=ge(83116),be=ne=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:Se,lightTriggerColor:ue}=ne;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:ue,background:Se},[`${oe}-sider-zero-width-trigger`]:{color:ue,background:Se,border:`1px solid ${re}`,borderInlineStart:0}}}};const Ae=ne=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:Se,footerBg:ue,triggerBg:xe,headerHeight:Me,headerPadding:ct,headerColor:zt,footerPadding:Xt,triggerHeight:Le,zeroTriggerHeight:Xe,zeroTriggerWidth:nt,motionDurationMid:Ye,motionDurationSlow:dt,fontSize:Dt,borderRadius:_t,bodyBg:At,headerBg:Jt,siderBg:ye}=ne;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:At,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:ye,transition:`all ${Ye}, 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:Se,lineHeight:`${Le}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${Ye}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-nt,zIndex:1,width:nt,height:Xe,color:Se,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:_t,borderEndEndRadius:_t,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:-nt,borderStartStartRadius:_t,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:_t}}}}},be(ne)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:Me,padding:ct,color:zt,lineHeight:`${Me}px`,background:Jt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:Xt,color:ie,fontSize:Dt,background:ue},[`${re}-content`]:{flex:"auto",minHeight:0}}};var Te=(0,me.Z)("Layout",ne=>[Ae(ne)],ne=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:Se,controlHeightSM:ue,marginXXS:xe,colorTextLightSolid:Me,colorBgContainer:ct}=ne,zt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${zt}px`,headerColor:Se,footerPadding:`${ue}px ${zt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+xe*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:ct,lightTriggerBg:ct,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ge=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 Se=0,ie=Object.getOwnPropertySymbols(ne);Se<ie.length;Se++)oe.indexOf(ie[Se])<0&&Object.prototype.propertyIsEnumerable.call(ne,ie[Se])&&(re[ie[Se]]=ne[ie[Se]]);return re};const Be=se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:oe,tagName:re,displayName:ie}=ne;return Se=>se.forwardRef((xe,Me)=>se.createElement(Se,Object.assign({ref:Me,suffixCls:oe,tagName:re},xe)))}const a=se.forwardRef((ne,oe)=>{const{prefixCls:re,suffixCls:ie,className:Se,tagName:ue}=ne,xe=Ge(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=se.useContext(Ne.E_),ct=Me("layout",re),[zt,Xt]=Te(ct),Le=ie?`${ct}-${ie}`:ct;return zt(se.createElement(ue,Object.assign({className:Ke()(re||Le,Se,Xt),ref:oe},xe)))}),y=se.forwardRef((ne,oe)=>{const{direction:re}=se.useContext(Ne.E_),[ie,Se]=se.useState([]),{prefixCls:ue,className:xe,rootClassName:Me,children:ct,hasSider:zt,tagName:Xt,style:Le}=ne,Xe=Ge(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),nt=(0,Ze.Z)(Xe,["suffixCls"]),{getPrefixCls:Ye,layout:dt}=se.useContext(Ne.E_),Dt=Ye("layout",ue),[_t,At]=Te(Dt),Jt=Ke()(Dt,{[`${Dt}-has-sider`]:typeof zt=="boolean"?zt:ie.length>0,[`${Dt}-rtl`]:re==="rtl"},dt==null?void 0:dt.className,xe,Me,At),ye=se.useMemo(()=>({siderHook:{addSider:Ce=>{Se(Ve=>[].concat((0,te.Z)(Ve),[Ce]))},removeSider:Ce=>{Se(Ve=>Ve.filter(wt=>wt!==Ce))}}}),[]);return _t(se.createElement(Be.Provider,{value:ye},se.createElement(Xt,Object.assign({ref:oe,className:Jt,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Le)},nt),ct)))}),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,it,ge){"use strict";ge.d(it,{J:function(){return Ne}});var te=ge(59301),pe=ge(33234),Ke=ge(70425),Ze=function(me,ke){var be={};for(var Ae in me)Object.prototype.hasOwnProperty.call(me,Ae)&&ke.indexOf(Ae)<0&&(be[Ae]=me[Ae]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ae=Object.getOwnPropertySymbols(me);Te<Ae.length;Te++)ke.indexOf(Ae[Te])<0&&Object.prototype.propertyIsEnumerable.call(me,Ae[Te])&&(be[Ae[Te]]=me[Ae[Te]]);return be};const se=te.createContext(null),Ne=te.forwardRef((me,ke)=>{const{children:be}=me,Ae=Ze(me,["children"]),Te=te.useContext(se),Ge=te.useMemo(()=>Object.assign(Object.assign({},Te),Ae),[Te,Ae.prefixCls,Ae.mode,Ae.selectable]);return te.createElement(se.Provider,{value:Ge},te.createElement(pe.BR,null,(0,Ke.supportNodeRef)(be)?te.cloneElement(be,{ref:ke}):be))});it.Z=se},20834:function(we,it,ge){"use strict";ge.d(it,{default:function(){return Et}});var te=ge(15285),pe=ge(59301),Ke=ge(45818),Ze=ge(92310),se=ge.n(Ze),Ne=ge(36355),me=function(Ee,ve){var fe={};for(var ze in Ee)Object.prototype.hasOwnProperty.call(Ee,ze)&&ve.indexOf(ze)<0&&(fe[ze]=Ee[ze]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ze=Object.getOwnPropertySymbols(Ee);He<ze.length;He++)ve.indexOf(ze[He])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ze[He])&&(fe[ze[He]]=Ee[ze[He]]);return fe},be=Ee=>{const{prefixCls:ve,className:fe,dashed:ze}=Ee,He=me(Ee,["prefixCls","className","dashed"]),{getPrefixCls:ot}=pe.useContext(Ne.E_),Lt=ot("menu",ve),pt=se()({[`${Lt}-item-divider-dashed`]:!!ze},fe);return pe.createElement(te.iz,Object.assign({className:pt},He))},Ae=ge(11592),Te=ge(2738),Ge=ge(6848),Be=ge(92343),a=(0,pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ee=>{var ve;const{className:fe,children:ze,icon:He,title:ot,danger:Lt}=Ee,{prefixCls:pt,firstLevel:bt,direction:Mt,disableMenuItemTitleTooltip:yt,inlineCollapsed:It}=pe.useContext(a),an=yn=>{const mn=pe.createElement("span",{className:`${pt}-title-content`},ze);return(!He||(0,Be.l$)(ze)&&ze.type==="span")&&ze&&yn&&bt&&typeof ze=="string"?pe.createElement("div",{className:`${pt}-inline-collapsed-noicon`},ze.charAt(0)):mn},{siderCollapsed:Pn}=pe.useContext(Ke.D);let cn=ot;typeof ot=="undefined"?cn=bt?ze:"":ot===!1&&(cn="");const Kt={title:cn};!Pn&&!It&&(Kt.title=null,Kt.open=!1);const on=(0,Ae.Z)(ze).length;let rn=pe.createElement(te.ck,Object.assign({},(0,Te.Z)(Ee,["title","icon","danger"]),{className:se()({[`${pt}-item-danger`]:Lt,[`${pt}-item-only-child`]:(He?on+1:on)===1},fe),title:typeof ot=="string"?ot:void 0}),(0,Be.Tm)(He,{className:se()((0,Be.l$)(He)?(ve=He.props)===null||ve===void 0?void 0:ve.className:"",`${pt}-item-icon`)}),an(It));return yt||(rn=pe.createElement(Ge.Z,Object.assign({},Kt,{placement:Mt==="rtl"?"left":"right",overlayClassName:`${pt}-inline-collapsed-tooltip`}),rn)),rn},E=Ee=>{var ve;const{popupClassName:fe,icon:ze,title:He,theme:ot}=Ee,Lt=pe.useContext(a),{prefixCls:pt,inlineCollapsed:bt,theme:Mt}=Lt,yt=(0,te.Xl)();let It;if(!ze)It=bt&&!yt.length&&He&&typeof He=="string"?pe.createElement("div",{className:`${pt}-inline-collapsed-noicon`},He.charAt(0)):pe.createElement("span",{className:`${pt}-title-content`},He);else{const Pn=(0,Be.l$)(He)&&He.type==="span";It=pe.createElement(pe.Fragment,null,(0,Be.Tm)(ze,{className:se()((0,Be.l$)(ze)?(ve=ze.props)===null||ve===void 0?void 0:ve.className:"",`${pt}-item-icon`)}),Pn?He:pe.createElement("span",{className:`${pt}-title-content`},He))}const an=pe.useMemo(()=>Object.assign(Object.assign({},Lt),{firstLevel:!1}),[Lt]);return pe.createElement(a.Provider,{value:an},pe.createElement(te.Wd,Object.assign({},(0,Te.Z)(Ee,["icon"]),{title:It,popupClassName:se()(pt,fe,`${pt}-${ot||Mt}`)})))},z=ge(18785),ee=ge(70425),ne=ge(62892),oe=ge(40875),re=function(Ee,ve){var fe={};for(var ze in Ee)Object.prototype.hasOwnProperty.call(Ee,ze)&&ve.indexOf(ze)<0&&(fe[ze]=Ee[ze]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ze=Object.getOwnPropertySymbols(Ee);He<ze.length;He++)ve.indexOf(ze[He])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ze[He])&&(fe[ze[He]]=Ee[ze[He]]);return fe};function ie(Ee){return(Ee||[]).map((ve,fe)=>{if(ve&&typeof ve=="object"){const ze=ve,{label:He,children:ot,key:Lt,type:pt}=ze,bt=re(ze,["label","children","key","type"]),Mt=Lt!=null?Lt:`tmp-${fe}`;return ot||pt==="group"?pt==="group"?pe.createElement(te.BW,Object.assign({key:Mt},bt,{title:He}),ie(ot)):pe.createElement(E,Object.assign({key:Mt},bt,{title:He}),ie(ot)):pt==="divider"?pe.createElement(be,Object.assign({key:Mt},bt)):pe.createElement(x,Object.assign({key:Mt},bt),He)}return null}).filter(ve=>ve)}function Se(Ee){return pe.useMemo(()=>Ee&&ie(Ee),[Ee])}var ue=ge(64993),xe=ge(17313),Me=ge(8378),ct=ge(13826),zt=ge(29878),Xt=ge(83116),Le=ge(37613),nt=Ee=>{const{componentCls:ve,motionDurationSlow:fe,horizontalLineHeight:ze,colorSplit:He,lineWidth:ot,lineType:Lt,itemPaddingInline:pt}=Ee;return{[`${ve}-horizontal`]:{lineHeight:ze,border:0,borderBottom:`${ot}px ${Lt} ${He}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:pt},[`> ${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=Ee=>{let{componentCls:ve,menuArrowOffset:fe}=Ee;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 Dt=Ee=>Object.assign({},(0,xe.oN)(Ee));var At=(Ee,ve)=>{const{componentCls:fe,itemColor:ze,itemSelectedColor:He,groupTitleColor:ot,itemBg:Lt,subMenuItemBg:pt,itemSelectedBg:bt,activeBarHeight:Mt,activeBarWidth:yt,activeBarBorderWidth:It,motionDurationSlow:an,motionEaseInOut:Pn,motionEaseOut:cn,itemPaddingInline:Kt,motionDurationMid:on,itemHoverColor:rn,lineType:yn,colorSplit:mn,itemDisabledColor:Sn,dangerItemColor:On,dangerItemHoverColor:fn,dangerItemSelectedColor:Tn,dangerItemActiveBg:sn,dangerItemSelectedBg:Nn,itemHoverBg:Xn,itemActiveBg:ea,menuSubMenuBg:ma,horizontalItemSelectedColor:ia,horizontalItemSelectedBg:sa,horizontalItemBorderRadius:Un,horizontalItemHoverBg:oa,popupBg:Sa}=Ee;return{[`${fe}-${ve}, ${fe}-${ve} > ${fe}`]:{color:ze,background:Lt,[`&${fe}-root:focus-visible`]:Object.assign({},Dt(Ee)),[`${fe}-item-group-title`]:{color:ot},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:He}},[`${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:On,[`&${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:He,[`&${fe}-item-danger`]:{color:Tn},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:bt,[`&${fe}-item-danger`]:{backgroundColor:Nn}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},Dt(Ee))},[`&${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:It,marginTop:-It,marginBottom:0,borderRadius:Un,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${Mt}px solid transparent`,transition:`border-color ${an} ${Pn}`,content:'""'},"&:hover, &-active, &-open":{background:oa,"&::after":{borderBottomWidth:Mt,borderBottomColor:ia}},"&-selected":{color:ia,backgroundColor:sa,"&:hover":{backgroundColor:sa},"&::after":{borderBottomWidth:Mt,borderBottomColor:ia}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${It}px ${yn} ${mn}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:pt},[`${fe}-item, ${fe}-submenu-title`]:It&&yt?{width:`calc(100% + ${It}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${yt}px solid ${He}`,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 Jt=Ee=>{const{componentCls:ve,itemHeight:fe,itemMarginInline:ze,padding:He,menuArrowSize:ot,marginXS:Lt,itemMarginBlock:pt}=Ee,bt=He+ot+Lt;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:He,overflow:"hidden",textOverflow:"ellipsis",marginInline:ze,marginBlock:pt,width:`calc(100% - ${ze*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 Ce=Ee=>{const{componentCls:ve,iconCls:fe,itemHeight:ze,colorTextLightSolid:He,dropdownWidth:ot,controlHeightLG:Lt,motionDurationMid:pt,motionEaseOut:bt,paddingXL:Mt,itemMarginInline:yt,fontSizeLG:It,motionDurationSlow:an,paddingXS:Pn,boxShadowSecondary:cn,collapsedWidth:Kt,collapsedIconSize:on}=Ee,rn={height:ze,lineHeight:`${ze}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},Jt(Ee))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},Jt(Ee)),{boxShadow:cn})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:ot,maxHeight:`calc(100vh - ${Lt*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 ${pt} ${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:Mt}},[`${ve}-item`]:rn}},{[`${ve}-inline-collapsed`]:{width:Kt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:It,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% - ${It/2}px - ${yt}px)`,textOverflow:"clip",[`
|
|
${ve}-submenu-arrow,
|
|
${ve}-submenu-expand-icon
|
|
`]:{opacity:0},[`${ve}-item-icon, ${fe}`]:{margin:0,fontSize:on,lineHeight:`${ze}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:He}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:Pn})}}]};const Ve=Ee=>{const{componentCls:ve,motionDurationSlow:fe,motionDurationMid:ze,motionEaseInOut:He,motionEaseOut:ot,iconCls:Lt,iconSize:pt,iconMarginInlineEnd:bt}=Ee;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${He}`].join(","),[`${ve}-item-icon, ${Lt}`]:{minWidth:pt,fontSize:pt,transition:[`font-size ${ze} ${ot}`,`margin ${fe} ${He}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${fe} ${He}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${ve}-item-only-child`]:{[`> ${Lt}, > ${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"}}}},wt=Ee=>{const{componentCls:ve,motionDurationSlow:fe,motionEaseInOut:ze,borderRadius:He,menuArrowSize:ot,menuArrowOffset:Lt}=Ee;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ee.margin,width:ot,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${ze}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ot*.6,height:ot*.15,backgroundColor:"currentcolor",borderRadius:He,transition:[`background ${fe} ${ze}`,`transform ${fe} ${ze}`,`top ${fe} ${ze}`,`color ${fe} ${ze}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Lt})`},"&::after":{transform:`rotate(-45deg) translateY(${Lt})`}}}}},Je=Ee=>{const{antCls:ve,componentCls:fe,fontSize:ze,motionDurationSlow:He,motionDurationMid:ot,motionEaseInOut:Lt,paddingXS:pt,padding:bt,colorSplit:Mt,lineWidth:yt,zIndexPopup:It,borderRadiusLG:an,subMenuItemBorderRadius:Pn,menuArrowSize:cn,menuArrowOffset:Kt,lineType:on,menuPanelMaskInset:rn,groupTitleLineHeight:yn,groupTitleFontSize:mn}=Ee;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,xe.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,xe.Wf)(Ee)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ze,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${He} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${fe}-item`]:{flex:"none"}},[`${fe}-item, ${fe}-submenu, ${fe}-submenu-title`]:{borderRadius:Ee.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${pt}px ${bt}px`,fontSize:mn,lineHeight:yn,transition:`all ${He}`},[`&-horizontal ${fe}-submenu`]:{transition:[`border-color ${He} ${Lt}`,`background ${He} ${Lt}`].join(",")},[`${fe}-submenu, ${fe}-submenu-inline`]:{transition:[`border-color ${He} ${Lt}`,`background ${He} ${Lt}`,`padding ${ot} ${Lt}`].join(",")},[`${fe}-submenu ${fe}-sub`]:{cursor:"initial",transition:[`background ${He} ${Lt}`,`padding ${He} ${Lt}`].join(",")},[`${fe}-title-content`]:{transition:`color ${He}`},[`${fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Mt,borderStyle:on,borderWidth:0,borderTopWidth:yt,marginBlock:yt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ve(Ee)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${ze*2}px ${bt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:It,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:Ee.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ee.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ee.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ee.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:an},Ve(Ee)),wt(Ee)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:Pn},[`${fe}-submenu-title::after`]:{transition:`transform ${He} ${Lt}`}})}}),wt(Ee)),{[`&-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 vt=(Ee,ve)=>(0,Xt.Z)("Menu",ze=>{if(ve===!1)return[];const{colorBgElevated:He,colorPrimary:ot,colorTextLightSolid:Lt,controlHeightLG:pt,fontSize:bt,darkItemColor:Mt,darkDangerItemColor:yt,darkItemBg:It,darkSubMenuItemBg:an,darkItemSelectedColor:Pn,darkItemSelectedBg:cn,darkDangerItemSelectedBg:Kt,darkItemHoverBg:on,darkGroupTitleColor:rn,darkItemHoverColor:yn,darkItemDisabledColor:mn,darkDangerItemHoverColor:Sn,darkDangerItemSelectedColor:On,darkDangerItemActiveBg:fn}=ze,Tn=bt/7*5,sn=(0,Le.TS)(ze,{menuArrowSize:Tn,menuHorizontalHeight:pt*1.15,menuArrowOffset:`${Tn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:He}),Nn=(0,Le.TS)(sn,{itemColor:Mt,itemHoverColor:yn,groupTitleColor:rn,itemSelectedColor:Pn,itemBg:It,popupBg:It,subMenuItemBg:an,itemActiveBg:"transparent",itemSelectedBg:cn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:on,itemDisabledColor:mn,dangerItemColor:yt,dangerItemHoverColor:Sn,dangerItemSelectedColor:On,dangerItemActiveBg:fn,dangerItemSelectedBg:Kt,menuSubMenuBg:an,horizontalItemSelectedColor:Lt,horizontalItemSelectedBg:ot});return[Je(sn),nt(sn),Ce(sn),At(sn,"light"),At(Nn,"dark"),dt(sn),(0,Me.Z)(sn),(0,ct.oN)(sn,"slide-up"),(0,ct.oN)(sn,"slide-down"),(0,zt._y)(sn,"zoom-big")]},ze=>{const{colorPrimary:He,colorError:ot,colorTextDisabled:Lt,colorErrorBg:pt,colorText:bt,colorTextDescription:Mt,colorBgContainer:yt,colorFillAlter:It,colorFillContent:an,lineWidth:Pn,lineWidthBold:cn,controlItemBgActive:Kt,colorBgTextHover:on,controlHeightLG:rn,lineHeight:yn,colorBgElevated:mn,marginXXS:Sn,padding:On,fontSize:fn,controlHeightSM:Tn,fontSizeLG:sn,colorTextLightSolid:Nn,colorErrorHover:Xn}=ze,ea=new ue.C(Nn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ze.zIndexPopupBase+50,radiusItem:ze.borderRadiusLG,itemBorderRadius:ze.borderRadiusLG,radiusSubMenuItem:ze.borderRadiusSM,subMenuItemBorderRadius:ze.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:He,horizontalItemHoverColor:He,colorGroupTitle:Mt,groupTitleColor:Mt,colorItemTextSelected:He,itemSelectedColor:He,colorItemTextSelectedHorizontal:He,horizontalItemSelectedColor:He,colorItemBg:yt,itemBg:yt,colorItemBgHover:on,itemHoverBg:on,colorItemBgActive:an,itemActiveBg:Kt,colorSubItemBg:It,subMenuItemBg:It,colorItemBgSelected:Kt,itemSelectedBg:Kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:cn,activeBarHeight:cn,colorActiveBarBorderSize:Pn,activeBarBorderWidth:Pn,colorItemTextDisabled:Lt,itemDisabledColor:Lt,colorDangerItemText:ot,dangerItemColor:ot,colorDangerItemTextHover:ot,dangerItemHoverColor:ot,colorDangerItemTextSelected:ot,dangerItemSelectedColor:ot,colorDangerItemBgActive:pt,dangerItemActiveBg:pt,colorDangerItemBgSelected:pt,dangerItemSelectedBg:pt,itemMarginInline:ze.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:rn,groupTitleLineHeight:yn,collapsedWidth:rn*2,popupBg:mn,itemMarginBlock:Sn,itemPaddingInline:On,horizontalLineHeight:`${rn*1.15}px`,iconSize:fn,iconMarginInlineEnd:Tn-fn,collapsedIconSize:sn,groupTitleFontSize:fn,darkItemDisabledColor:new ue.C(Nn).setAlpha(.25).toRgbString(),darkItemColor:ea,darkDangerItemColor:ot,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Nn,darkItemSelectedBg:He,darkDangerItemSelectedBg:ot,darkItemHoverBg:"transparent",darkGroupTitleColor:ea,darkItemHoverColor:Nn,darkDangerItemHoverColor:Xn,darkDangerItemSelectedColor:Nn,darkDangerItemActiveBg:ot}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Ee),de=function(Ee,ve){var fe={};for(var ze in Ee)Object.prototype.hasOwnProperty.call(Ee,ze)&&ve.indexOf(ze)<0&&(fe[ze]=Ee[ze]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ze=Object.getOwnPropertySymbols(Ee);He<ze.length;He++)ve.indexOf(ze[He])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ze[He])&&(fe[ze[He]]=Ee[ze[He]]);return fe},Ot=(0,pe.forwardRef)((Ee,ve)=>{var fe,ze;const He=pe.useContext(oe.Z),ot=He||{},{getPrefixCls:Lt,getPopupContainer:pt,direction:bt,menu:Mt}=pe.useContext(Ne.E_),yt=Lt(),{prefixCls:It,className:an,style:Pn,theme:cn="light",expandIcon:Kt,_internalDisableMenuItemTitleTooltip:on,inlineCollapsed:rn,siderCollapsed:yn,items:mn,children:Sn,rootClassName:On,mode:fn,selectable:Tn,onClick:sn,overflowedIndicatorPopupClassName:Nn}=Ee,Xn=de(Ee,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ea=(0,Te.Z)(Xn,["collapsedWidth"]),ma=Se(mn)||Sn;(fe=ot.validator)===null||fe===void 0||fe.call(ot,{mode:fn});const ia=(0,ee.useEvent)(function(){var tn;sn==null||sn.apply(void 0,arguments),(tn=ot.onClick)===null||tn===void 0||tn.call(ot)}),sa=ot.mode||fn,Un=Tn!=null?Tn:ot.selectable,oa=pe.useMemo(()=>yn!==void 0?yn:rn,[rn,yn]),Sa={horizontal:{motionName:`${yt}-slide-up`},inline:(0,ne.Z)(yt),other:{motionName:`${yt}-zoom-big`}},Kn=Lt("menu",It||ot.prefixCls),[We,Ue]=vt(Kn,!He),_e=se()(`${Kn}-${cn}`,Mt==null?void 0:Mt.className,an);let rt;if(typeof Kt=="function")rt=Kt;else if(Kt===null||Kt===!1)rt=null;else if(ot.expandIcon===null||ot.expandIcon===!1)rt=null;else{const tn=Kt!=null?Kt:ot.expandIcon;rt=(0,Be.Tm)(tn,{className:se()(`${Kn}-submenu-expand-icon`,(0,Be.l$)(tn)?(ze=tn.props)===null||ze===void 0?void 0:ze.className:"")})}const qt=pe.useMemo(()=>({prefixCls:Kn,inlineCollapsed:oa||!1,direction:bt,firstLevel:!0,theme:cn,mode:sa,disableMenuItemTitleTooltip:on}),[Kn,oa,bt,on,cn]);return We(pe.createElement(oe.Z.Provider,{value:null},pe.createElement(a.Provider,{value:qt},pe.createElement(te.ZP,Object.assign({getPopupContainer:pt,overflowedIndicator:pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:se()(Kn,`${Kn}-${cn}`,Nn),mode:sa,selectable:Un,onClick:ia},ea,{inlineCollapsed:oa,style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),Pn),className:_e,prefixCls:Kn,direction:bt,defaultMotions:Sa,expandIcon:rt,ref:ve,rootClassName:se()(On,Ue)}),ma))))});const kt=(0,pe.forwardRef)((Ee,ve)=>{const fe=(0,pe.useRef)(null),ze=pe.useContext(Ke.D);return(0,pe.useImperativeHandle)(ve,()=>({menu:fe.current,focus:He=>{var ot;(ot=fe.current)===null||ot===void 0||ot.focus(He)}})),pe.createElement(Ot,Object.assign({ref:fe},Ee,ze))});kt.Item=x,kt.SubMenu=E,kt.Divider=be,kt.ItemGroup=te.BW;var Et=kt},8224:function(we,it,ge){"use strict";ge.d(it,{Z:function(){return pe}});var te=ge(4676);function pe(Ke,Ze,se,Ne){var me=te.unstable_batchedUpdates?function(be){te.unstable_batchedUpdates(se,be)}:se;return Ke!=null&&Ke.addEventListener&&Ke.addEventListener(Ze,me,Ne),{remove:function(){Ke!=null&&Ke.removeEventListener&&Ke.removeEventListener(Ze,me,Ne)}}}},55468:function(we,it,ge){"use strict";ge.d(it,{g1:function(){return Te},os:function(){return Be}});var te=/margin|padding|width|height|max|min|offset/,pe={left:!0,top:!0},Ke={cssFloat:1,styleFloat:1,float:1};function Ze(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 pe||(pe[a]=te.test(a)),pe[a]?parseFloat(y)||0:y}function Ne(ae,a){var y=arguments.length,x=Ze(ae);return a=Ke[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=Ke[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 Ze(ae)}function ke(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 Ae(){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 Te(){var ae=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ae,height:a}}function Ge(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Be(ae){var a=ae.getBoundingClientRect(),y=document.documentElement;return{left:a.left+(window.pageXOffset||y.scrollLeft)-(y.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||y.scrollTop)-(y.clientTop||document.body.clientTop||0)}}}}]);
|