(self.webpackChunk=self.webpackChunk||[]).push([[319],{71749:function(){"use strict"},30483:function(){"use strict"},71736:function(dn,pn){"use strict";pn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},52654:function(dn,pn){"use strict";pn.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},12867:function(){"use strict"},18023:function(){"use strict";function dn(fe,z,ee,oe){ee===void 0&&(ee=0),oe===void 0&&(oe=1/0),this._name=fe,this._defaultValue=z,this._minimum=ee,this._maximum=oe}Object.defineProperty(dn.prototype,"name",{get:function(){return this._name},set:function(fe){if(typeof fe!="string"||fe==="")throw new Error("Shape name must be a valid string.");this._name=fe}}),Object.defineProperty(dn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("The default value must be a real number, not: "+fe);this._defaultValue=fe}}),Object.defineProperty(dn.prototype,"minimum",{get:function(){return this._minimum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Minimum must be a real number, not: "+fe);this._minimum=fe}}),Object.defineProperty(dn.prototype,"maximum",{get:function(){return this._maximum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Maximum must be a real number, not: "+fe);this._maximum=fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(fe,z){var ee=go.Shape._FigureParameters[fe];return ee?ee[z]:null},go.Shape.setFigureParameter=function(fe,z,ee){if(!(ee instanceof dn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValueee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var oe=go.Shape._FigureParameters[fe];oe||(oe=[],go.Shape._FigureParameters[fe]=oe),oe[z]=ee};var pn=[];function at(fe,z){var ee=pn.pop();return ee===void 0?new go.Point(fe,z):(ee.x=fe,ee.y=z,ee)}function ot(){var fe=pn.pop();return fe===void 0?new go.Point:fe}function _t(fe){pn.push(fe)}function ae(fe,z,ee,oe,ie,le,ue,pe,Se){Se||(Se=new go.Point);var Le=fe-ee,De=ie-ue,Fe=NaN,Ae=NaN;if(Le===0)if(De===0)fe===ee&&(Fe=fe,Ae=z);else{var Oe=(le-pe)/De,ze=le-Oe*ie;Fe=fe,Ae=Oe*Fe+ze}else if(De===0){var He=(z-oe)/Le,Ye=z-He*fe;Fe=ie,Ae=He*Fe+Ye}else{var He=(z-oe)/Le,Oe=(le-pe)/De,Ye=z-He*fe,ze=le-Oe*ie;Fe=(ze-Ye)/(He-Oe),Ae=He*Fe+Ye}return Se.x=Fe,Se.y=Ae,Se}function Ge(fe,z,ee,oe,ie,le,ue,pe,Se,Le,De,Fe,Ae,Oe){var ze=1-Se,He=Se,Ye=fe*ze+ee*He,We=z*ze+oe*He,Ue=ee*ze+ie*He,st=oe*ze+le*He,dt=ie*ze+ue*He,gt=le*ze+pe*He,Et=Ye*ze+Ue*He,Ke=We*ze+st*He,et=Ue*ze+dt*He,$e=st*ze+gt*He,vt=Et*ze+et*He,wt=Ke*ze+$e*He;Le.x=Ye,Le.y=We,De.x=Et,De.y=Ke,Fe.x=vt,Fe.y=wt,Ae.x=et,Ae.y=$e,Oe.x=dt,Oe.y=gt}var Ie=new go.Spot(.156,.156),me=new go.Spot(.844,.844),de=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new dn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=5),oe=Math.min(oe,z/3),oe=Math.min(oe,ee/3);var ie=oe*de,le=new go.Geometry().add(new go.PathFigure(oe,0,!0).add(new go.PathSegment(go.PathSegment.Line,z-oe,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,oe,z-ie,0,z,ie)).add(new go.PathSegment(go.PathSegment.Line,z,ee-oe)).add(new go.PathSegment(go.PathSegment.Bezier,z-oe,ee,z,ee-ie,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,oe,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-oe,ie,ee,0,ee-ie)).add(new go.PathSegment(go.PathSegment.Line,0,oe)).add(new go.PathSegment(go.PathSegment.Bezier,oe,0,0,ie,ie,0).close()));return ie>1&&(le.spot1=new go.Spot(0,0,ie,ie),le.spot2=new go.Spot(1,1,-ie,-ie)),le}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(fe,z,ee){var oe=new go.Geometry(go.Geometry.Line);return oe.startX=0,oe.startY=ee/2,oe.endX=z,oe.endY=ee/2,oe}),go.Shape.defineFigureGenerator("LineV",function(fe,z,ee){var oe=new go.Geometry(go.Geometry.Line);return oe.startX=z/2,oe.startY=0,oe.endX=z/2,oe.endY=ee,oe}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.25*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.75*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(fe,z,ee){var oe=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(oe*z,(1-oe)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,oe*ee)).add(new go.PathSegment(go.PathSegment.Move,oe*z,oe*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,(1-oe)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(fe,z,ee){var oe=z/2,ie=new go.Geometry().add(new go.PathFigure(z,z/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,oe,oe,oe,oe).close()));return ie.spot1=Ie,ie.spot2=me,ie.defaultStretch=go.GraphObject.Uniform,ie}),go.Shape.defineFigureGenerator("Line1",function(fe,z,ee){var oe=new go.Geometry(go.Geometry.Line);return oe.startX=0,oe.startY=0,oe.endX=z,oe.endY=ee,oe}),go.Shape.defineFigureGenerator("Line2",function(fe,z,ee){var oe=new go.Geometry(go.Geometry.Line);return oe.startX=z,oe.startY=0,oe.endX=0,oe.endY=ee,oe}),go.Shape.defineFigureGenerator("Curve1",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,de*z,0,z,(1-de)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,0,de*ee,(1-de)*z,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,de*ee,de*z,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-de)*z,0,0,(1-de)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new dn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)?oe=.1:oe<-1?oe=-1:oe>1&&(oe=1);var ie=Math.abs(oe)*z;if(oe===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return oe>0?le.add(new go.PathFigure(ie,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-ie,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,ee).close())),iez&&(oe=z);var ie=Math.abs(oe);if(oe===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return oe>0?le.add(new go.PathFigure(ie,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-ie,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,ee).close())),ie.5&&(oe=.5);var ie=Math.abs(oe)*z;if(oe===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return oe>0?le.add(new go.PathFigure(ie,0).add(new go.PathSegment(go.PathSegment.Line,z-ie,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,ee).close())),iez&&(oe=z/2);var ie=Math.abs(oe);if(oe===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return oe>0?le.add(new go.PathFigure(ie,0).add(new go.PathSegment(go.PathSegment.Line,z-ie,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,ee).close())),iez&&(oe=z/2);var ie=Math.abs(oe);if(oe===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return oe>0?le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,ee).close())):le.add(new go.PathFigure(ie,0).add(new go.PathSegment(go.PathSegment.Line,z-ie,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),ie0&&(ue.add(new go.PathSegment(go.PathSegment.Move,z/2+pe,z/2)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ie,ie,pe,pe).close())),le.spot1=Ie,le.spot2=me,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Cloud",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.08034461*z,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*z,.05349299*ee,-.09239631*z,.07836421*ee,.1406031*z,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*z,.074219*ee,.2450511*z,-.00697547*ee,.3776197*z,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*z,.07004196*ee,.4539471*z,0,.6066018*z,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*z,.08370865*ee,.6914277*z,-.01904177*ee,.8921095*z,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*z,.3194596*ee,1.036446*z,.04105738*ee,1.020377*z,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*z,.562044*ee,1.04448*z,.360238*ee,.992256*z,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*z,.8217117*ee,1.032337*z,.5771781*ee,1.018411*z,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*z,.9156953*ee,1.028411*z,.9571472*ee,.8556702*z,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*z,.9310455*ee,.7431877*z,1.009325*ee,.5624123*z,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*z,.9344623*ee,.4820677*z,1.031761*ee,.3030112*z,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.870098*ee,.2329994*z,1.01518*ee,.03213784*z,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*z,.6545475*ee,-.02812061*z,.9032597*ee,-.01205169*z,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*z,.4265613*ee,-.01812061*z,.6089503*ee,-.00606892*z,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.1944299*ee,-.01606892*z,.3892545*ee,-.01205169*z,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(fe,z,ee){var oe=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(oe*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,oe*ee)).add(new go.PathSegment(go.PathSegment.Line,z,(1-oe)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,ee)).add(new go.PathSegment(go.PathSegment.Line,oe*z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-oe)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,oe*ee).close())).setSpots(oe/2,oe/2,1-oe/2,1-oe/2)}),go.Shape.setFigureParameter("Pie",0,new dn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new dn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(fe,z,ee){var oe=fe?fe.parameter1:NaN,ie=fe?fe.parameter2:NaN;isNaN(oe)&&(oe=0),isNaN(ie)&&(ie=315);var le=oe%360;le<0&&(le+=360);var ue=ie%360,pe=Math.min(z,ee)/2;return new go.Geometry().add(new go.PathFigure(pe,pe).add(new go.PathSegment(go.PathSegment.Arc,le,ue,pe,pe,pe,pe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(fe,z,ee){var oe=de/Math.SQRT2*.5,ie=Math.SQRT2/2,le=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,ie*z,le*ee,z,(1-oe)*ee,(ie+oe)*z,(le+oe)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new dn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=30);var ie=Math.min(oe,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-ie,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+ie,0)).add(new go.PathSegment(go.PathSegment.Line,le+ie,ue-ie)).add(new go.PathSegment(go.PathSegment.Line,z,ue-ie)).add(new go.PathSegment(go.PathSegment.Line,z,ue+ie)).add(new go.PathSegment(go.PathSegment.Line,le+ie,ue+ie)).add(new go.PathSegment(go.PathSegment.Line,le+ie,ee)).add(new go.PathSegment(go.PathSegment.Line,le-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,le-ie,ue+ie)).add(new go.PathSegment(go.PathSegment.Line,0,ue+ie)).add(new go.PathSegment(go.PathSegment.Line,0,ue-ie)).add(new go.PathSegment(go.PathSegment.Line,le-ie,ue-ie).close()))}),go.Shape.setFigureParameter("ThinCross",0,new dn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=10);var ie=Math.min(oe,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-ie,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+ie,0)).add(new go.PathSegment(go.PathSegment.Line,le+ie,ue-ie)).add(new go.PathSegment(go.PathSegment.Line,z,ue-ie)).add(new go.PathSegment(go.PathSegment.Line,z,ue+ie)).add(new go.PathSegment(go.PathSegment.Line,le+ie,ue+ie)).add(new go.PathSegment(go.PathSegment.Line,le+ie,ee)).add(new go.PathSegment(go.PathSegment.Line,le-ie,ee)).add(new go.PathSegment(go.PathSegment.Line,le-ie,ue+ie)).add(new go.PathSegment(go.PathSegment.Line,0,ue+ie)).add(new go.PathSegment(go.PathSegment.Line,0,ue-ie)).add(new go.PathSegment(go.PathSegment.Line,le-ie,ue-ie).close()))}),go.Shape.setFigureParameter("ThickX",0,new dn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;if((isNaN(oe)||oe<0)&&(oe=30),z===0||ee===0){var ie=new go.Geometry(go.Geometry.Rectangle);return ie.startX=0,ie.startY=0,ie.endX=z,ie.endY=ee,ie}else{var le=z/2,ue=ee/2,pe=Math.atan2(ee,z),Se=oe-Math.min(Math.cos(pe)*oe/2,le),Le=oe-Math.min(Math.sin(pe)*oe/2,ue),ie=new go.Geometry,De=new go.PathFigure(Se,0,!0);return ie.add(De),De.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),De.add(new go.PathSegment(go.PathSegment.Line,z-Se,0)),De.add(new go.PathSegment(go.PathSegment.Line,z,Le)),De.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),De.add(new go.PathSegment(go.PathSegment.Line,z,ee-Le)),De.add(new go.PathSegment(go.PathSegment.Line,z-Se,ee)),De.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),De.add(new go.PathSegment(go.PathSegment.Line,Se,ee)),De.add(new go.PathSegment(go.PathSegment.Line,0,ee-Le)),De.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),De.add(new go.PathSegment(go.PathSegment.Line,0,Le).close()),ie}}),go.Shape.setFigureParameter("ThinX",0,new dn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=10);var ie=new go.Geometry,le=new go.PathFigure(.1*z,0,!0);return ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),ie}),go.Shape.setFigureParameter("SquareIBeam",0,new dn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=.2);var ie=new go.Geometry,le=new go.PathFigure(0,0,!0);return ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,oe*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+oe/2)*z,oe*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+oe/2)*z,(1-oe)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,(1-oe)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-oe)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-oe/2)*z,(1-oe)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-oe/2)*z,oe*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,oe*ee).close()),ie}),go.Shape.setFigureParameter("RoundedIBeam",0,new dn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=.5);var ie=new go.Geometry,le=new go.PathFigure(0,0,!0);return ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,Math.abs(1-oe)*z,.25*ee,Math.abs(1-oe)*z,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,oe*z,.75*ee,oe*z,.25*ee).close()),ie}),go.Shape.defineFigureGenerator("HalfEllipse",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,de*z,0,z,(.5-de/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,(.5+de/2)*ee,de*z,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,0,z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*z,.75*ee,.5*z,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*z,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,0,0,.45*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.55*z,0,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.5*ee,.9*z,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*z,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.6*z,.2*ee,z,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.7*ee,z,.8*ee,.6*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,.5*z,.75*ee,.55*z,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.7*ee,.45*z,.95*ee,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*z,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*z,.01*ee,0,.25*ee,.4*z,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.4*z,.6*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.15*z,ee,.5*z,.75*ee,.45*z,.95*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.6*ee,.55*z,.95*ee,.5*z,.75*ee));var le=.2,ue=.3,pe=0,Se=le*de;return ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Se+pe)*ee,(.5-Se+ue)*z,(.5+le+pe)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Se+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Se+pe)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Se+pe)*ee,(.5+Se+ue)*z,(.5-le+pe)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-Se+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-Se+pe-.02)*ee)),le=.2,ue=0,pe=-.3,Se=le*de,ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Se+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Se+pe)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Se+pe)*ee,(.5+Se+ue)*z,(.5-le+pe)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Se+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Se+pe)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Se+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Se+pe)*ee,(.5-Se+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,Se=le*de,ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-Se+pe-.02)*ee,(.5+Se+ue)*z,(.5-le+pe)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Se+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Se+pe)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Se+pe)*ee,(.5-Se+ue)*z,(.5+le+pe)*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+Se+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Se+pe)*ee).close()),oe.setSpots(.06,.33,.93,.68),oe}),go.Shape.defineFigureGenerator("YinYang",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*.5,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*.5,z*.5,z*.5,z*.5)),ie.add(new go.PathSegment(go.PathSegment.Arc,90,-180,z*.5,z*.75,z*.25,z*.25)),ie.add(new go.PathSegment(go.PathSegment.Arc,90,180,z*.5,z*.25,z*.25,z*.25));var le=.1,ue=.5,pe=.25;return ie.add(new go.PathSegment(go.PathSegment.Move,(ue+le)*z,pe*ee)),ie.add(new go.PathSegment(go.PathSegment.Arc,0,-360,z*ue,ee*pe,le*z,le*z).close()),ie=new go.PathFigure(z*.5,0,!1),oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*.5,z*.5,z*.5,z*.5)),pe=.75,ie=new go.PathFigure((ue+le)*z,pe*ee,!0),oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,0,360,z*ue,ee*pe,le*z,le*z).close()),oe.defaultStretch=go.GraphObject.Uniform,oe}),go.Shape.defineFigureGenerator("Peace",function(fe,z,ee){var oe=.8535533905932737,ie=.5*z,le=.5*ee;return new go.Geometry().add(new go.PathFigure(ie,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,ie,le,ie,le)).add(new go.PathSegment(go.PathSegment.Line,ie,ee)).add(new go.PathSegment(go.PathSegment.Move,ie,le)).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,oe*ee)).add(new go.PathSegment(go.PathSegment.Move,ie,le)).add(new go.PathSegment(go.PathSegment.Line,oe*z,oe*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(fe,z,ee){var oe=new go.Geometry,ie=de*.5,le=.5,ue=.5,pe=.5,Se=new go.PathFigure(ue*z,(pe-le)*ee);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-ie)*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+ie)*ee,(ue-ie)*z,(pe+le)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+ie)*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-ie)*ee,(ue+ie)*z,(pe-le)*ee)),le=.4,ie=de*.4;var Le=ot(),De=ot(),Fe=ot(),Ae=ot();Ge(ue,pe-le,ue+ie,pe-le,ue+le,pe-ie,ue+le,pe,.42,Le,De,Fe,Ae,Ae);var Oe=ot(),ze=ot(),He=ot();Ge(ue,pe-le,ue+ie,pe-le,ue+le,pe-ie,ue+le,pe,.58,Ae,Ae,He,Oe,ze);var Ye=ot(),We=ot(),Ue=ot();Ge(ue,pe+le,ue-ie,pe+le,ue-le,pe+ie,ue-le,pe,.42,Ye,We,Ue,Ae,Ae);var st=ot(),dt=ot(),gt=ot();return Ge(ue,pe+le,ue-ie,pe+le,ue-le,pe+ie,ue-le,pe,.58,Ae,Ae,gt,st,dt),Se.add(new go.PathSegment(go.PathSegment.Move,gt.x*z,gt.y*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,st.x*z,st.y*ee,dt.x*z,dt.y*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee,(ue-ie)*z,(pe-le)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,Fe.x*z,Fe.y*ee,Le.x*z,Le.y*ee,De.x*z,De.y*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,gt.x*z,gt.y*ee).close()),Se.add(new go.PathSegment(go.PathSegment.Move,Ue.x*z,Ue.y*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,He.x*z,He.y*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Oe.x*z,Oe.y*ee,ze.x*z,ze.y*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,Ue.x*z,Ue.y*ee,Ye.x*z,Ye.y*ee,We.x*z,We.y*ee).close()),_t(Le),_t(De),_t(Fe),_t(Ae),_t(Oe),_t(ze),_t(He),_t(Ye),_t(We),_t(Ue),_t(st),_t(dt),_t(gt),oe.defaultStretch=go.GraphObject.Uniform,oe}),go.Shape.defineFigureGenerator("Fragile",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*z,0)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*z,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.5*ee,z,.25*ee,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new dn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=30),oe>z&&(oe=z);var ie=(z-oe)/2,le=ie+oe;return new go.Geometry().add(new go.PathFigure(le,.5*ee).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,ie,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*z,0)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(fe,z,ee){var oe=new go.Geometry,ie=de*.4,le=.4,ue=.5,pe=.5,Se=ot(),Le=ot(),De=ot(),Fe=ot(),Ae=new go.PathFigure((ue-le)*z,pe*ee,!1);oe.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee,(ue-ie)*z,(pe-le)*ee)),Ge(ue,pe-le,ue+ie,pe-le,ue+le,pe-ie,ue+le,pe,.44,De,Fe,Le,Se,Se),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*z,Le.y*ee,De.x*z,De.y*ee,Fe.x*z,Fe.y*ee));var Oe=at(Le.x,Le.y);Ge(ue,pe-le,ue+ie,pe-le,ue+le,pe-ie,ue+le,pe,.56,Se,Se,Le,De,Fe);var ze=at(Le.x,Le.y);Ae.add(new go.PathSegment(go.PathSegment.Line,(Oe.x*.1+.95*.9)*z,Oe.y*.1*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*z,Oe.y*.1*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,z,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*z,.15*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*z,(ze.y*.1+.05*.9)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Line,ze.x*z,ze.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,De.x*z,De.y*ee,Fe.x*z,Fe.y*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-ie)*z,(pe+le)*ee,(ue-le)*z,(pe+ie)*ee)),le=.35,ie=de*.35;var He=new go.PathFigure(ue*z,(pe-le)*ee,!1);oe.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-ie)*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee)),He.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+ie)*ee,(ue-ie)*z,(pe+le)*ee)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+ie)*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),He.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-ie)*ee,(ue+ie)*z,(pe-le)*ee));var Ye=new go.PathFigure((ue-le)*z,pe*ee,!1);return oe.add(Ye),_t(Se),_t(Le),_t(De),_t(Fe),_t(Oe),_t(ze),oe.spot1=new go.Spot(.202,.257),oe.spot2=new go.Spot(.792,.739),oe.defaultStretch=go.GraphObject.Uniform,oe}),go.Shape.defineFigureGenerator("GenderFemale",function(fe,z,ee){var oe=new go.Geometry,ie=.375,le=0,ue=-.125,pe=ie*de,Se=new go.PathFigure((.525+le)*z,(.5+ie+ue)*ee,!1);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ie+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5+ie+ue)*ee,(.5+ie+le)*z,(.5+pe+ue)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-ie+ue)*ee,(1-.5+ie+le)*z,(.5-pe+ue)*ee,(.5+pe+le)*z,(.5-ie+ue)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-ie+ue)*ee,(.5-ie+le)*z,(.5-pe+ue)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(.475+le)*z,(.5+ie+ue)*ee,(.5-ie+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,(.5+ie+ue)*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),ie=.325,le=0,ue=-.125,pe=ie*de;var Se=new go.PathFigure((1-.5+ie+le)*z,(.5+ue)*ee,!1);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5+ie+ue)*ee,(.5+ie+le)*z,(.5+pe+ue)*ee,(.5+pe+le)*z,(.5+ie+ue)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5+ie+ue)*ee,(.5-ie+le)*z,(.5+pe+ue)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-ie+ue)*ee,(.5-ie+le)*z,(.5-pe+ue)*ee,(.5-pe+le)*z,(.5-ie+ue)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ie+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5-ie+ue)*ee,(1-.5+ie+le)*z,(.5-pe+ue)*ee));var Se=new go.PathFigure((.525+le)*z,(.5+ie+ue)*ee,!1);return oe.add(Se),oe.spot1=new go.Spot(.232,.136),oe.spot2=new go.Spot(.682,.611),oe.defaultStretch=go.GraphObject.Uniform,oe}),go.Shape.defineFigureGenerator("LogicImplies",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;return isNaN(oe)&&(oe=.2),new go.Geometry().add(new go.PathFigure((1-oe)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;return isNaN(oe)&&(oe=.2),new go.Geometry().add(new go.PathFigure((1-oe)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-oe)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,oe*z,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,oe*z,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(fe,z,ee){var oe=new go.Geometry().add(new go.PathFigure(.5*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*z,.5*ee,.5*z,.5*ee)));return oe.defaultStretch=go.GraphObject.Uniform,oe}),go.Shape.defineFigureGenerator("LogicTruth",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(fe,z,ee){var oe=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,oe*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,oe*z,oe*ee,oe*z,oe*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(fe,z,ee){var oe=.5;return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,oe*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,oe*z,oe*ee,oe*z,oe*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new dn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new dn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=.3);var ie=fe?fe.parameter2:NaN;isNaN(ie)&&(ie=.3);var le=(1-oe)*z,ue=(.5-ie/2)*ee,pe=(.5+ie/2)*ee,Se=new go.Geometry,Le=new go.PathFigure(0,ue,!0);Se.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Le.add(new go.PathSegment(go.PathSegment.Line,le,0)),Le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Le.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Le.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Se.spot1=new go.Spot(0,ue/ee);var De=ae(0,pe/ee,1,pe/ee,le/z,1,1,.5,ot());return Se.spot2=new go.Spot(De.x,De.y),_t(De),Se}),go.Shape.setFigureParameter("Arrow2",0,new dn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new dn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=30),oe>z&&(oe=z);var ie=fe?fe.parameter2:NaN;isNaN(ie)&&(ie=30),ie=Math.min(ie,ee/2);var le=z-oe,ue=(ee-ie)/2,pe=ue+ie,Se=new go.Geometry,Le=new go.PathFigure(0,ue,!0);Se.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Le.add(new go.PathSegment(go.PathSegment.Line,le,0)),Le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Le.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Le.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Se.spot1=new go.Spot(0,ue/ee);var De=ae(0,pe/ee,1,pe/ee,le/z,1,1,.5,ot());return Se.spot2=new go.Spot(De.x,De.y),_t(De),Se}),go.Shape.defineFigureGenerator("Chevron",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),oe}),go.Shape.defineFigureGenerator("DoubleArrow",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,.214*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,1*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,.786*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),oe}),go.Shape.setFigureParameter("DoubleEndArrow",0,new dn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=.3);var ie=(.5-oe/2)*ee,le=(.5+oe/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close());var Se=ae(0,.5,.3,0,0,ie/ee,.1,ie/ee,ot());return ue.spot1=new go.Spot(Se.x,Se.y),Se=ae(.7,1,1,.5,0,le/ee,1,le/ee,Se),ue.spot2=new go.Spot(Se.x,Se.y),_t(Se),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new dn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new dn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=40);var ie=fe?fe.parameter2:NaN;isNaN(ie)&&(ie=100);var le=(ee-oe)/2,ue=le+oe,pe=(ee-ie)/2,Se=pe+ie;(oe>ee||ie>ee)&&(ie>oe?(oe=oe*ee/ie,le=(ee-oe)/2,ue=le+oe,pe=0,Se=ee):(le=0,ue=ee,pe=0,Se=ee));var Le=new go.Geometry,De=new go.PathFigure(z,.5*ee,!0);Le.add(De),De.add(new go.PathSegment(go.PathSegment.Line,.7*z,Se)),De.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),De.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),De.add(new go.PathSegment(go.PathSegment.Line,.3*z,Se)),De.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),De.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),De.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),De.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),De.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var Fe=ae(0,.5,.3,pe/ee,0,le/ee,1,le/ee,ot());return Le.spot1=new go.Spot(Fe.x,Fe.y),Fe=ae(.7,Se/ee,1,.5,0,ue/ee,1,ue/ee,Fe),Le.spot2=new go.Spot(Fe.x,Fe.y),_t(Fe),Le}),go.Shape.setFigureParameter("IBeamArrow",0,new dn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=.3);var ie=(.5-oe/2)*ee,le=(.5+oe/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(0,ie/ee);var Se=ae(.7,1,1,.5,0,le/ee,1,le/ee,ot());return ue.spot2=new go.Spot(Se.x,Se.y),_t(Se),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new dn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new dn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=40);var ie=fe?fe.parameter2:NaN;isNaN(ie)&&(ie=100);var le=(ee-oe)/2,ue=le+oe,pe=(ee-ie)/2,Se=pe+ie;(oe>ee||ie>ee)&&(ie>oe?(oe=oe*ee/ie,le=(ee-oe)/2,ue=le+oe,pe=0,Se=ee):(le=0,ue=ee,pe=0,Se=ee));var Le=new go.Geometry,De=new go.PathFigure(z,.5*ee,!0);Le.add(De),De.add(new go.PathSegment(go.PathSegment.Line,.7*z,Se)),De.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),De.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),De.add(new go.PathSegment(go.PathSegment.Line,.2*z,Se)),De.add(new go.PathSegment(go.PathSegment.Line,0,Se)),De.add(new go.PathSegment(go.PathSegment.Line,0,pe)),De.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),De.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),De.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),De.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),Le.spot1=new go.Spot(0,le/ee);var Fe=ae(.7,Se/ee,1,.5,0,ue/ee,1,ue/ee,ot());return Le.spot2=new go.Spot(Fe.x,Fe.y),_t(Fe),Le}),go.Shape.setFigureParameter("Pointer",0,new dn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=.1);var ie=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,oe*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),ie.spot1=new go.Spot(oe,.35);var ue=ae(.2,.65,1,.65,0,1,1,.5,ot());return ie.spot2=new go.Spot(ue.x,ue.y),_t(ue),ie}),go.Shape.setFigureParameter("RoundedPointer",0,new dn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=.3);var ie=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,oe*z,.75*ee,oe*z,.25*ee).close()),ie.spot1=new go.Spot(oe,.35);var ue=ae(0,.65,1,.65,0,1,1,.5,ot());return ie.spot2=new go.Spot(ue.x,ue.y),_t(ue),ie}),go.Shape.setFigureParameter("SplitEndArrow",0,new dn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=.4);var ie=(.5-oe/2)*ee,le=(.5+oe/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,.3);var Se=ae(.7,1,1,.5,0,le/ee,1,le/ee,ot());return ue.spot2=new go.Spot(Se.x,Se.y),_t(Se),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new dn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=50);var ie=(ee-oe)/2,le=ie+oe;oe>ee&&(ie=0,le=ee);var ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,ie/ee);var Se=ae(.7,1,1,.5,0,le/ee,1,le/ee,ot());return ue.spot2=new go.Spot(Se.x,Se.y),_t(Se),ue}),go.Shape.setFigureParameter("SquareArrow",0,new dn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=.7);var ie=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);return ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,oe*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,oe*z,0).close()),ie.spot1=go.Spot.TopLeft,ie.spot2=new go.Spot(oe,1),ie}),go.Shape.defineFigureGenerator("Cone1",function(fe,z,ee){var oe=new go.Geometry,ie=de*.5,le=de*.1,ue=new go.PathFigure(0,.9*ee,!0);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+ie)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ie)*z,ee,0,(.9+le)*ee).close()),oe.spot1=new go.Spot(.25,.5),oe.spot2=new go.Spot(.75,.97),oe}),go.Shape.defineFigureGenerator("Cone2",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.9*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,ee,.85/.9*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var le=new go.PathFigure(0,.9*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,.8*ee,.85/.9*z,.8*ee)),oe.spot1=new go.Spot(.25,.5),oe.spot2=new go.Spot(.75,.82),oe}),go.Shape.defineFigureGenerator("Cube1",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),oe.spot1=new go.Spot(0,.3),oe.spot2=new go.Spot(.5,.85),oe}),go.Shape.defineFigureGenerator("Cube2",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.3*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,0).close());var le=new go.PathFigure(0,.3*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),oe.spot1=new go.Spot(0,.3),oe.spot2=new go.Spot(.7,1),oe}),go.Shape.defineFigureGenerator("Cylinder1",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=5),oe=Math.min(oe,ee/3);var ie=new go.Geometry,le=de*.5,ue=new go.PathFigure(0,oe,!0);ie.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,de*oe,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,1*z,oe,(.5+le)*z,0,1*z,de*oe)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-oe)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,1*ee,1*z,ee-de*oe,(.5+le)*z,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-oe,(.5-le)*z,1*ee,0,ee-de*oe)),ue.add(new go.PathSegment(go.PathSegment.Line,0,oe));var pe=new go.PathFigure(z,oe,!1);return ie.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,2*oe,1*z,2*oe-de*oe,(.5+le)*z,2*oe)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,oe,(.5-le)*z,2*oe,0,2*oe-de*oe)),ie.spot1=new go.Spot(0,0,0,2*oe),ie.spot2=new go.Spot(1,1),ie}),go.Shape.defineFigureGenerator("Cylinder2",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=5),oe=Math.min(oe,ee/3);var ie=new go.Geometry,le=de*.5,ue=new go.PathFigure(0,ee-oe,!0);ie.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,oe)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,de*oe,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,oe,(.5+le)*z,0,z,de*oe)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-oe)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,ee-de*oe,(.5+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-oe,(.5-le)*z,ee,0,ee-de*oe));var pe=new go.PathFigure(0,ee-oe,!1);return ie.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee-2*oe,0,ee-oe-de*oe,(.5-le)*z,ee-2*oe)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ee-oe,(.5+le)*z,ee-2*oe,z,ee-oe-de*oe)),ie.spot1=new go.Spot(0,0),ie.spot2=new go.Spot(1,1,0,-2*oe),ie}),go.Shape.defineFigureGenerator("Cylinder3",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=5),oe=Math.min(oe,z/3);var ie=new go.Geometry,le=de*.5,ue=new go.PathFigure(oe,0,!0);ie.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z-oe,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-de*oe,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-oe,ee,z,(.5+le)*ee,z-de*oe,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,oe,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,de*oe,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe,0,0,(.5-le)*ee,de*oe,0));var pe=new go.PathFigure(oe,0,!1);return ie.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,2*oe,.5*ee,oe+de*oe,0,2*oe,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,oe,ee,2*oe,(.5+le)*ee,oe+de*oe,ee)),ie.spot1=new go.Spot(0,0,2*oe,0),ie.spot2=new go.Spot(1,1),ie}),go.Shape.defineFigureGenerator("Cylinder4",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=5),oe=Math.min(oe,z/3);var ie=new go.Geometry,le=de*.5,ue=new go.PathFigure(z-oe,0,!0);ie.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-de*oe,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-oe,ee,z,(.5+le)*ee,z-de*oe,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,oe,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,de*oe,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe,0,0,(.5-le)*ee,de*oe,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z-oe,0));var pe=new go.PathFigure(z-oe,0,!1);return ie.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-2*oe,.5*ee,z-oe-de*oe,0,z-2*oe,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-oe,ee,z-2*oe,(.5+le)*ee,z-oe-de*oe,ee)),ie.spot1=new go.Spot(0,0),ie.spot2=new go.Spot(1,1,-2*oe,0),ie}),go.Shape.defineFigureGenerator("Prism1",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.25*z,.25*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.25*z,.25*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),oe.spot1=new go.Spot(.408,.172),oe.spot2=new go.Spot(.833,.662),oe}),go.Shape.defineFigureGenerator("Prism2",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.25*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),oe.spot1=new go.Spot(.25,.5),oe.spot2=new go.Spot(.75,.75),oe}),go.Shape.defineFigureGenerator("Pyramid1",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var le=new go.PathFigure(.5*z,0,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),oe.spot1=new go.Spot(.25,.367),oe.spot2=new go.Spot(.75,.875),oe}),go.Shape.defineFigureGenerator("Pyramid2",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,0,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),oe.spot1=new go.Spot(.25,.367),oe.spot2=new go.Spot(.75,.875),oe}),go.Shape.defineFigureGenerator("Actor",function(fe,z,ee){var oe=new go.Geometry,ie=.2,le=.1,ue=de*ie,pe=de*le,Se=.5,Le=.1,De=new go.PathFigure(Se*z,(Le+le)*ee,!0);oe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ie)*z,Le*ee,(Se-ue)*z,(Le+le)*ee,(Se-ie)*z,(Le+pe)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le-le)*ee,(Se-ie)*z,(Le-pe)*ee,(Se-ue)*z,(Le-le)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ie)*z,Le*ee,(Se+ue)*z,(Le-le)*ee,(Se+ie)*z,(Le-pe)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le+le)*ee,(Se+ie)*z,(Le+pe)*ee,(Se+ue)*z,(Le+le)*ee));var Fe=.05,Ae=de*Fe;Se=.05,Le=.25;var Oe=new go.PathFigure(.5*z,.2*ee,!0);return oe.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),Se=.95,Le=.25,Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+Fe)*z,Le*ee,(Se+Ae)*z,(Le-Fe)*ee,(Se+Fe)*z,(Le-Ae)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Fe=.025,Ae=de*Fe,Se=.825,Le=.35,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le-Fe)*ee,(Se+Fe)*z,(Le-Ae)*ee,(Se+Ae)*z,(Le-Fe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-Fe)*z,Le*ee,(Se-Ae)*z,(Le-Fe)*ee,(Se-Fe)*z,(Le-Ae)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Fe=.05,Ae=de*Fe,Se=.5,Le=.7,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le-Fe)*ee,(Se+Fe)*z,(Le-Ae)*ee,(Se+Ae)*z,(Le-Fe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-Fe)*z,Le*ee,(Se-Ae)*z,(Le-Fe)*ee,(Se-Fe)*z,(Le-Ae)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Fe=.025,Ae=de*Fe,Se=.175,Le=.35,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le-Fe)*ee,(Se+Fe)*z,(Le-Ae)*ee,(Se+Ae)*z,(Le-Fe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-Fe)*z,Le*ee,(Se-Ae)*z,(Le-Fe)*ee,(Se-Fe)*z,(Le-Ae)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Fe=.05,Ae=de*Fe,Se=.05,Le=.25,Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le-Fe)*ee,(Se-Fe)*z,(Le-Ae)*ee,(Se-Ae)*z,(Le-Fe)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),oe.spot1=new go.Spot(.2,.2),oe.spot2=new go.Spot(.8,.65),oe}),go.Shape.setFigureParameter("Card",0,new dn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;isNaN(oe)&&(oe=.2);var ie=new go.Geometry,le=new go.PathFigure(z,0,!0);return ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,oe*ee)),le.add(new go.PathSegment(go.PathSegment.Line,oe*z,0).close()),ie.spot1=new go.Spot(0,oe),ie.spot2=go.Spot.BottomRight,ie}),go.Shape.defineFigureGenerator("Collate",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,.5*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee));var le=new go.PathFigure(.5*z,.5*ee,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),oe.spot1=new go.Spot(.25,0),oe.spot2=new go.Spot(.75,.25),oe}),go.Shape.defineFigureGenerator("CreateRequest",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;isNaN(ie)&&(ie=.1);var le=new go.PathFigure(0,0,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,ie*ee,!1);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,ie*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-ie)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-ie)*ee)),oe}),go.Shape.defineFigureGenerator("Database",function(fe,z,ee){var oe=new go.Geometry,ie=de*.5,le=de*.1,ue=new go.PathFigure(z,.1*ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+ie)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ie)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-ie)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+ie)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+ie)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-ie)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+ie)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-ie)*z,.3*ee,0,(.2+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.4*ee,z,(.3+le)*ee,(.5+ie)*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-ie)*z,.4*ee,0,(.3+le)*ee)),oe.spot1=new go.Spot(0,.4),oe.spot2=new go.Spot(1,.9),oe}),go.Shape.defineFigureGenerator("DataStorage",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.9*ee,.25*z,.1*ee).close()),oe.spot1=new go.Spot(.226,0),oe.spot2=new go.Spot(.81,1),oe}),go.Shape.defineFigureGenerator("DiskStorage",function(fe,z,ee){var oe=new go.Geometry,ie=de*.5,le=de*.1,ue=new go.PathFigure(z,.1*ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+ie)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-ie)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-ie)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+ie)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+ie)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-ie)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+ie)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-ie)*z,.3*ee,0,(.2+le)*ee)),oe.spot1=new go.Spot(0,.3),oe.spot2=new go.Spot(1,.9),oe}),go.Shape.defineFigureGenerator("Display",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.25*z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),oe.spot1=new go.Spot(.25,0),oe.spot2=new go.Spot(.75,1),oe}),go.Shape.defineFigureGenerator("DividedEvent",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;isNaN(ie)?ie=.2:ie<.15&&(ie=.15);var le=de*.2,ue=new go.PathFigure(0,.2*ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,0,(.2-le)*ee,(.2-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.2*ee,(.8+le)*z,0,z,(.2-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,ee,z,(.8+le)*ee,(.8+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-le)*z,ee,0,(.8+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var pe=new go.PathFigure(0,ie*ee,!1);return oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,ie*ee)),oe}),go.Shape.defineFigureGenerator("DividedProcess",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;(isNaN(ie)||ie<.1)&&(ie=.1);var le=new go.PathFigure(0,0,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,ie*ee,!1);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,ie*ee)),oe}),go.Shape.defineFigureGenerator("Document",function(fe,z,ee){var oe=new go.Geometry;ee=ee/.8;var ie=new go.PathFigure(0,.7*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),oe.spot1=go.Spot.TopLeft,oe.spot2=new go.Spot(1,.6),oe}),go.Shape.defineFigureGenerator("ExternalOrganization",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;(isNaN(ie)||ie<.2)&&(ie=.2);var le=new go.PathFigure(0,0,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(ie*z,0,!1);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ie*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,z,ie*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-ie)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-ie)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ie*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-ie)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-ie)*ee)),oe}),go.Shape.defineFigureGenerator("ExternalProcess",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(.1*z,.4*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.9*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.6*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.4*z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.9*ee)),oe.spot1=new go.Spot(.25,.25),oe.spot2=new go.Spot(.75,.75),oe}),go.Shape.defineFigureGenerator("File",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.75*z,0,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),oe.spot1=new go.Spot(0,.25),oe.spot2=go.Spot.BottomRight,oe}),go.Shape.defineFigureGenerator("Interrupt",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,.5*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee));var le=new go.PathFigure(z,.5*ee,!1);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee));var ue=new go.PathFigure(z,.5*ee,!1);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(.5,.75),oe}),go.Shape.defineFigureGenerator("InternalStorage",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(ie)&&(ie=.1),isNaN(le)&&(le=.1);var ue=new go.PathFigure(0,0,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(ie*z,0,!1);return oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ie*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,le*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee)),oe}),go.Shape.defineFigureGenerator("Junction",function(fe,z,ee){var oe=new go.Geometry,ie=1/Math.SQRT2,le=(1-1/Math.SQRT2)/2,ue=de*.5,pe=.5,Se=new go.PathFigure(z,pe*ee,!0);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z,pe*ee,(pe+ue)*z,0,z,(pe-ue)*ee));var Le=new go.PathFigure((le+ie)*z,(le+ie)*ee,!1);return oe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,le*z,le*ee)),Le.add(new go.PathSegment(go.PathSegment.Move,le*z,(le+ie)*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,(le+ie)*z,le*ee)),oe}),go.Shape.defineFigureGenerator("LinedDocument",function(fe,z,ee){var oe=new go.Geometry;ee=ee/.8;var ie=new go.PathFigure(0,.7*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close());var le=new go.PathFigure(.1*z,0,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.75*ee)),oe.spot1=new go.Spot(.1,0),oe.spot2=new go.Spot(1,.6),oe}),go.Shape.defineFigureGenerator("LoopLimit",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),oe.spot1=new go.Spot(0,.25),oe.spot2=go.Spot.BottomRight,oe}),go.Shape.defineFigureGenerator("MagneticTape",function(fe,z,ee){var oe=new go.Geometry,ie=de*.5,le=.5,ue=new go.PathFigure(.5*z,ee,!0);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-ie)*z,ee,0,(le+ie)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-ie)*ee,(le-ie)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+ie)*z,0,z,(le-ie)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(le+.1)*z,.9*ee,z,(le+ie)*ee,(le+ie)*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),oe.spot1=new go.Spot(.15,.15),oe.spot2=new go.Spot(.85,.8),oe}),go.Shape.defineFigureGenerator("ManualInput",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),oe.spot1=new go.Spot(0,.25),oe.spot2=go.Spot.BottomRight,oe}),go.Shape.defineFigureGenerator("MessageFromUser",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;isNaN(ie)&&(ie=.7);var le=new go.PathFigure(0,0,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,ie*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe.spot1=go.Spot.TopLeft,oe}),go.Shape.defineFigureGenerator("MicroformProcessing",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;isNaN(ie)&&(ie=.25);var le=new go.PathFigure(0,0,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ie*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,(1-ie)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe}),go.Shape.defineFigureGenerator("MicroformRecording",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(1,.75),oe}),go.Shape.defineFigureGenerator("MultiDocument",function(fe,z,ee){var oe=new go.Geometry;ee=ee/.8;var ie=new go.PathFigure(z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.44*ee,.96*z,.47*ee,.93*z,.45*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.54*ee,.86*z,.57*ee,.83*z,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*z,.4*ee,.4*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,0).close());var le=new go.PathFigure(.1*z,.2*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.44*ee)),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(.8,.77),oe}),go.Shape.defineFigureGenerator("MultiProcess",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.1*z,.1*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close());var le=new go.PathFigure(.2*z,.1*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.1*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),oe.spot1=new go.Spot(0,.2),oe.spot2=new go.Spot(.8,1),oe}),go.Shape.defineFigureGenerator("OfflineStorage",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;isNaN(ie)&&(ie=.1);var le=1-ie,ue=new go.PathFigure(0,0,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close());var pe=new go.PathFigure(.5*ie*z,ie*ee,!1);return oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*ie)*z,ie*ee)),oe}),go.Shape.defineFigureGenerator("OffPageConnector",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe.spot1=go.Spot.TopLeft,oe.spot2=new go.Spot(.75,1),oe}),go.Shape.defineFigureGenerator("Or",function(fe,z,ee){var oe=new go.Geometry,ie=de*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+ie)*ee,(le+ie)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-ie)*z,ee,0,(le+ie)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-ie)*ee,(le-ie)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+ie)*z,0,z,(le-ie)*ee));var pe=new go.PathFigure(z,.5*ee,!1);return oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),oe}),go.Shape.defineFigureGenerator("PaperTape",function(fe,z,ee){var oe=new go.Geometry;ee=ee/.8;var ie=new go.PathFigure(0,.7*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.5*z,.6*ee,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),oe.spot1=new go.Spot(0,.49),oe.spot2=new go.Spot(1,.75),oe}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(ie)&&(ie=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(ie)&&(ie=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe}),go.Shape.defineFigureGenerator("Procedure",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;isNaN(ie)&&(ie=.1);var le=new go.PathFigure(0,0,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure((1-ie)*z,0,!1);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-ie)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,ie*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ie*z,ee)),oe}),go.Shape.defineFigureGenerator("Process",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;isNaN(ie)&&(ie=.1);var le=new go.PathFigure(0,0,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(ie*z,0,!1);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ie*z,ee)),oe.spot2=go.Spot.BottomRight,oe}),go.Shape.defineFigureGenerator("Sort",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(0,.5*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),oe.spot1=new go.Spot(.25,.25),oe.spot2=new go.Spot(.75,.5),oe}),go.Shape.defineFigureGenerator("Start",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;isNaN(ie)&&(ie=.25);var le=new go.PathFigure(ie*z,0,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee));var ue=new go.PathFigure(ie*z,0,!1);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ie*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-ie)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-ie)*z,ee)),oe.spot1=new go.Spot(ie,0),oe.spot2=new go.Spot(1-ie,1),oe}),go.Shape.defineFigureGenerator("Terminator",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.25*z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee)),oe.spot1=new go.Spot(.23,0),oe.spot2=new go.Spot(.77,1),oe}),go.Shape.defineFigureGenerator("TransmittalTape",function(fe,z,ee){var oe=new go.Geometry,ie=fe?fe.parameter1:NaN;isNaN(ie)&&(ie=.1);var le=new go.PathFigure(0,0,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,(1-ie)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-ie)*ee).close()),oe.spot1=go.Spot.TopLeft,oe}),go.Shape.defineFigureGenerator("AndGate",function(fe,z,ee){var oe=new go.Geometry,ie=de*.5,le=new go.PathFigure(0,0,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(.5+ie)*z,0,z,(.5-ie)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.5+ie)*ee,(.5+ie)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe.spot1=go.Spot.TopLeft,oe.spot2=new go.Spot(.55,1),oe}),go.Shape.defineFigureGenerator("Buffer",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(.5,.75),oe}),go.Shape.defineFigureGenerator("Clock",function(fe,z,ee){var oe=new go.Geometry,ie=de*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+ie)*ee,(le+ie)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-ie)*z,ee,0,(le+ie)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-ie)*ee,(le-ie)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+ie)*z,0,z,(le-ie)*ee));var pe=new go.PathFigure(z,le*ee,!1);oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee));var Se=new go.PathFigure(.8*z,.75*ee,!1);return oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*ee)),oe}),go.Shape.defineFigureGenerator("Ground",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.3*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.4*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),oe}),go.Shape.defineFigureGenerator("Inverter",function(fe,z,ee){var oe=new go.Geometry,ie=de*.1,le=.1,ue=.9,pe=.5,Se=new go.PathFigure(.8*z,.5*ee,!0);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,0,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee));var Le=new go.PathFigure((ue+le)*z,pe*ee,!0);return oe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-ie)*z,(pe+le)*ee,(ue-le)*z,(pe+ie)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee,(ue-ie)*z,(pe-le)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+ie)*z,(pe-le)*ee,(ue+le)*z,(pe-ie)*ee)),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(.4,.75),oe}),go.Shape.defineFigureGenerator("NandGate",function(fe,z,ee){var oe=new go.Geometry,ie=de*.5,le=de*.4,ue=de*.1,pe=.1,Se=.9,Le=.5,De=new go.PathFigure(.8*z,.5*ee,!0);oe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+ie)*z,ee)),De.add(new go.PathSegment(go.PathSegment.Line,0,ee)),De.add(new go.PathSegment(go.PathSegment.Line,0,0)),De.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),De.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+ie)*z,0,.8*z,(.5-le)*ee));var Fe=new go.PathFigure((Se+pe)*z,Le*ee,!0);return oe.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le+pe)*ee,(Se+pe)*z,(Le+ue)*ee,(Se+ue)*z,(Le+pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*z,Le*ee,(Se-ue)*z,(Le+pe)*ee,(Se-pe)*z,(Le+ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le-pe)*ee,(Se-pe)*z,(Le-ue)*ee,(Se-ue)*z,(Le-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*z,Le*ee,(Se+ue)*z,(Le-pe)*ee,(Se+pe)*z,(Le-ue)*ee)),oe.spot1=new go.Spot(0,.05),oe.spot2=new go.Spot(.55,.95),oe}),go.Shape.defineFigureGenerator("NorGate",function(fe,z,ee){var oe=new go.Geometry,ie=.5,le=de*ie,ue=0,pe=.5,Se=new go.PathFigure(.8*z,.5*ee,!0);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-ie)*ee,.7*z,(pe-le)*ee)),ie=.1,le=de*.1,ue=.9,pe=.5;var Le=new go.PathFigure((ue-ie)*z,pe*ee,!0);return oe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-ie)*ee,(ue-ie)*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*z,pe*ee,(ue+le)*z,(pe-ie)*ee,(ue+ie)*z,(pe-le)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*z,pe*ee,(ue-le)*z,(pe+ie)*ee,(ue-ie)*z,(pe+le)*ee)),oe.spot1=new go.Spot(.2,.25),oe.spot2=new go.Spot(.6,.75),oe}),go.Shape.defineFigureGenerator("OrGate",function(fe,z,ee){var oe=new go.Geometry,ie=.5,le=de*ie,ue=0,pe=.5,Se=new go.PathFigure(0,0,!0);return oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-ie)*ee,.8*z,(pe-le)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee).close()),oe.spot1=new go.Spot(.2,.25),oe.spot2=new go.Spot(.75,.75),oe}),go.Shape.defineFigureGenerator("XnorGate",function(fe,z,ee){var oe=new go.Geometry,ie=.5,le=de*ie,ue=.2,pe=.5,Se=new go.PathFigure(.1*z,0,!1);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Le=new go.PathFigure(.8*z,.5*ee,!0);oe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-ie)*ee,.7*z,(pe-le)*ee)),ie=.1,le=de*.1,ue=.9,pe=.5;var De=new go.PathFigure((ue-ie)*z,pe*ee,!0);return oe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-ie)*ee,(ue-ie)*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*z,pe*ee,(ue+le)*z,(pe-ie)*ee,(ue+ie)*z,(pe-le)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*z,pe*ee,(ue-le)*z,(pe+ie)*ee,(ue-ie)*z,(pe+le)*ee)),oe.spot1=new go.Spot(.4,.25),oe.spot2=new go.Spot(.65,.75),oe}),go.Shape.defineFigureGenerator("XorGate",function(fe,z,ee){var oe=new go.Geometry,ie=.5,le=de*ie,ue=.2,pe=.5,Se=new go.PathFigure(.1*z,0,!1);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Le=new go.PathFigure(.2*z,0,!0);return oe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le)*z,(pe-ie)*ee,.9*z,(pe-le)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee).close()),oe.spot1=new go.Spot(.4,.25),oe.spot2=new go.Spot(.8,.75),oe}),go.Shape.defineFigureGenerator("Capacitor",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),oe}),go.Shape.defineFigureGenerator("Resistor",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.5*ee,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),oe}),go.Shape.defineFigureGenerator("Inductor",function(fe,z,ee){var oe=new go.Geometry,ie=de*.1,le=.1,ue=.1,pe=.5,Se=new go.PathFigure((ue-ie*.5)*z,ee,!1);return oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-ie)*z,ee,(ue-le)*z,0)),ue=.3,Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+ie)*z,ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-ie)*z,ee,(ue-le)*z,0)),ue=.5,Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+ie)*z,ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-ie)*z,ee,(ue-le)*z,0)),ue=.7,Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+ie)*z,ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-ie)*z,ee,(ue-le)*z,0)),ue=.9,Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie*.5)*z,ee,(ue+le)*z,0,(ue+ie)*z,ee)),oe}),go.Shape.defineFigureGenerator("ACvoltageSource",function(fe,z,ee){var oe=new go.Geometry,ie=de*.5,le=.5,ue=.5,pe=.5,Se=new go.PathFigure((ue-le)*z,pe*ee,!1);return oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee,(ue-ie)*z,(pe-le)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+ie)*z,(pe-le)*ee,(ue+le)*z,(pe-ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-ie)*z,(pe+le)*ee,(ue-le)*z,(pe+ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le-.1)*z,pe*ee,ue*z,(pe-le)*ee,ue*z,(pe+le)*ee)),oe}),go.Shape.defineFigureGenerator("DCvoltageSource",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.75*ee,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),oe}),go.Shape.defineFigureGenerator("Diode",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),oe.spot1=new go.Spot(0,.25),oe.spot2=new go.Spot(.5,.75),oe}),go.Shape.defineFigureGenerator("Wifi",function(fe,z,ee){var oe=new go.Geometry,ie=z,le=ee;z=z*.38,ee=ee*.6;var ue=de*.8,pe=.8,Se=0,Le=.5,De=(ie-z)/2,Fe=(le-ee)/2,Ae=new go.PathFigure(Se*z+De,(Le+pe)*ee+Fe,!0);oe.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*z+De,Le*ee+Fe,(Se-ue)*z+De,(Le+pe)*ee+Fe,(Se-pe)*z+De,(Le+ue)*ee+Fe)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*z+De,(Le-pe)*ee+Fe,(Se-pe)*z+De,(Le-ue)*ee+Fe,(Se-ue)*z+De,(Le-pe)*ee+Fe)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe+ue*.5)*z+De,Le*ee+Fe,Se*z+De,(Le-pe)*ee+Fe,(Se-pe+ue*.5)*z+De,(Le-ue)*ee+Fe)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Se*z+De,(Le+pe)*ee+Fe,(Se-pe+ue*.5)*z+De,(Le+ue)*ee+Fe,Se*z+De,(Le+pe)*ee+Fe).close()),ue=de*.4,pe=.4,Se=.2,Le=.5;var Oe=new go.PathFigure(Se*z+De,(Le+pe)*ee+Fe,!0);oe.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*z+De,Le*ee+Fe,(Se-ue)*z+De,(Le+pe)*ee+Fe,(Se-pe)*z+De,(Le+ue)*ee+Fe)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*z+De,(Le-pe)*ee+Fe,(Se-pe)*z+De,(Le-ue)*ee+Fe,(Se-ue)*z+De,(Le-pe)*ee+Fe)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe+ue*.5)*z+De,Le*ee+Fe,Se*z+De,(Le-pe)*ee+Fe,(Se-pe+ue*.5)*z+De,(Le-ue)*ee+Fe)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Se*z+De,(Le+pe)*ee+Fe,(Se-pe+ue*.5)*z+De,(Le+ue)*ee+Fe,Se*z+De,(Le+pe)*ee+Fe).close()),ue=de*.2,pe=.2,Se=.5,Le=.5;var ze=new go.PathFigure((Se-pe)*z+De,Le*ee+Fe,!0);oe.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,Se*z+De,(Le-pe)*ee+Fe,(Se-pe)*z+De,(Le-ue)*ee+Fe,(Se-ue)*z+De,(Le-pe)*ee+Fe)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*z+De,Le*ee+Fe,(Se+ue)*z+De,(Le-pe)*ee+Fe,(Se+pe)*z+De,(Le-ue)*ee+Fe)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Se*z+De,(Le+pe)*ee+Fe,(Se+pe)*z+De,(Le+ue)*ee+Fe,(Se+ue)*z+De,(Le+pe)*ee+Fe)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Se-pe)*z+De,Le*ee+Fe,(Se-ue)*z+De,(Le+pe)*ee+Fe,(Se-pe)*z+De,(Le+ue)*ee+Fe)),ue=de*.4,pe=.4,Se=.8,Le=.5;var He=new go.PathFigure(Se*z+De,(Le-pe)*ee+Fe,!0);oe.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*z+De,Le*ee+Fe,(Se+ue)*z+De,(Le-pe)*ee+Fe,(Se+pe)*z+De,(Le-ue)*ee+Fe)),He.add(new go.PathSegment(go.PathSegment.Bezier,Se*z+De,(Le+pe)*ee+Fe,(Se+pe)*z+De,(Le+ue)*ee+Fe,(Se+ue)*z+De,(Le+pe)*ee+Fe)),He.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe-ue*.5)*z+De,Le*ee+Fe,Se*z+De,(Le+pe)*ee+Fe,(Se+pe-ue*.5)*z+De,(Le+ue)*ee+Fe)),He.add(new go.PathSegment(go.PathSegment.Bezier,Se*z+De,(Le-pe)*ee+Fe,(Se+pe-ue*.5)*z+De,(Le-ue)*ee+Fe,Se*z+De,(Le-pe)*ee+Fe).close()),ue=de*.8,pe=.8,Se=1,Le=.5;var Ye=new go.PathFigure(Se*z+De,(Le-pe)*ee+Fe,!0);return oe.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe)*z+De,Le*ee+Fe,(Se+ue)*z+De,(Le-pe)*ee+Fe,(Se+pe)*z+De,(Le-ue)*ee+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Se*z+De,(Le+pe)*ee+Fe,(Se+pe)*z+De,(Le+ue)*ee+Fe,(Se+ue)*z+De,(Le+pe)*ee+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Se+pe-ue*.5)*z+De,Le*ee+Fe,Se*z+De,(Le+pe)*ee+Fe,(Se+pe-ue*.5)*z+De,(Le+ue)*ee+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Se*z+De,(Le-pe)*ee+Fe,(Se+pe-ue*.5)*z+De,(Le-ue)*ee+Fe,Se*z+De,(Le-pe)*ee+Fe).close()),oe}),go.Shape.defineFigureGenerator("Email",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,0,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.54*ee)),oe}),go.Shape.defineFigureGenerator("Ethernet",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.35*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.65*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.35*z,0).close());var le=new go.PathFigure(.1*z,ee,!0,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var ue=new go.PathFigure(.6*z,ee,!0,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee).close());var pe=new go.PathFigure(0,.5*ee,!1);return oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.75*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*z,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.25*z,.6*ee)),oe}),go.Shape.defineFigureGenerator("Power",function(fe,z,ee){var oe=new go.Geometry,ie=de*.4,le=.4,ue=.5,pe=.5,Se=ot(),Le=ot(),De=ot(),Fe=ot();Ge(ue,pe-le,ue+ie,pe-le,ue+le,pe-ie,ue+le,pe,.5,Se,Se,Le,De,Fe);var Ae=at(Le.x,Le.y),Oe=new go.PathFigure(Le.x*z,Le.y*ee,!0);oe.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,De.x*z,De.y*ee,Fe.x*z,Fe.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-ie)*z,(pe+le)*ee,(ue-le)*z,(pe+ie)*ee)),Ge(ue-le,pe,ue-le,pe-ie,ue-ie,pe-le,ue,pe-le,.5,De,Fe,Le,Se,Se),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*z,Le.y*ee,De.x*z,De.y*ee,Fe.x*z,Fe.y*ee)),ie=de*.3,le=.3,Ge(ue-le,pe,ue-le,pe-ie,ue-ie,pe-le,ue,pe-le,.5,De,Fe,Le,Se,Se),Oe.add(new go.PathSegment(go.PathSegment.Line,Le.x*z,Le.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Fe.x*z,Fe.y*ee,De.x*z,De.y*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+ie)*ee,(ue-ie)*z,(pe+le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+ie)*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),Ge(ue,pe-le,ue+ie,pe-le,ue+le,pe-ie,ue+le,pe,.5,Se,Se,Le,De,Fe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*z,Le.y*ee,Fe.x*z,Fe.y*ee,De.x*z,De.y*ee).close());var Oe=new go.PathFigure(.45*z,0,!0);return oe.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Oe.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),_t(Se),_t(Le),_t(De),_t(Fe),_t(Ae),oe.spot1=new go.Spot(.25,.45),oe.spot2=new go.Spot(.75,.8),oe}),go.Shape.defineFigureGenerator("Fallout",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee/2,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,180,360,z/2,ee/2,z/2,ee/2));function le(ue,pe,Se){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+Se)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+Se)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+Se)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+Se)*ee).close())}return le(ie,0,0),le(ie,.4,0),le(ie,.2,-.3),oe}),go.Shape.defineFigureGenerator("IrritationHazard",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.2*z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),oe.spot1=new go.Spot(.3,.3),oe.spot2=new go.Spot(.7,.7),oe}),go.Shape.defineFigureGenerator("ElectricalHazard",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.37*z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.11*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.77*z,.04*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.33*z,.49*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.37*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.63*z,.86*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.77*z,.91*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.34*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.34*z,.78*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.44*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.65*z,.56*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),oe}),go.Shape.defineFigureGenerator("FireHazard",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.1*z,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.29*z,0,-.25*z,.63*ee,.45*z,.44*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.51*z,.42*ee,.48*z,.17*ee,.54*z,.35*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.59*z,.18*ee,.59*z,.29*ee,.58*z,.28*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,.6*ee,.8*z,.34*ee,.88*z,.43*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.88*z,.31*ee,.87*z,.48*ee,.88*z,.43*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,1.17*z,.76*ee,.82*z,.8*ee).close()),oe.spot1=new go.Spot(.07,.445),oe.spot2=new go.Spot(.884,.958),oe}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(fe,z,ee){var oe=new go.Geometry,ie=.5,le=0,ue=0,pe=ie*de,Se=.4*Math.SQRT2/2+.5,Le=.5-.5*Math.SQRT2/2,De=1,Fe=.5,Ae=.5,Oe=0,ze=new go.PathFigure(Se*z,(1-Le)*ee,!1);return oe.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,De*z,Fe*ee,De*z,.7*ee,De*z,Fe*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+le)*z,(Oe+le)*ee,(.5+ie+le)*z,(.5-pe+le)*ee,(.5+pe+le)*z,(.5-ie+le)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-ie+ue)*ee,(.5-ie+le)*z,(.5-pe+ue)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(.35+le)*z,.9*ee,(.5-ie+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,.9*ee)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+le)*z,.8*ee)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+le)*z,.9*ee)),ze.add(new go.PathSegment(go.PathSegment.Line,(.2+le)*z,.95*ee)),oe}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),oe}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),oe}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);oe.add(ie);var le=new go.PathFigure(z,ee,!1);oe.add(le);var ue=new go.PathFigure(0,.5*ee,!1);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.2*z,.35*ee,.3*z,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.7*z,.65*ee,.8*z,.65*ee)),oe}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.5*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close()),oe}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.2*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var ie=new go.PathFigure(0,.2*ee,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),oe}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.7*z,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,0,.6*z,.5*ee,0,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,ee,.4*z,.5*ee,z,.5*ee).close());var le=new go.PathFigure(.45*z,.73*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.73*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.38*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.63*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.31*z,.27*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.56*z,.27*ee)),oe}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);oe.add(ie);var le=new go.PathFigure(.335*z,(1-.555)*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.68*ee,(1-.12)*z,.46*ee,(1-.02)*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.335*z,(1-.555)*ee,.02*z,.54*ee,.12*z,.46*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.365*z,(1-.595)*ee));var ue=.5-.285,pe=.5,Se=ue,Le=Math.PI/4,De=4*(1-Math.cos(Le))/(3*Math.sin(Le)),Fe=De*.5,Ae=ue,Oe=ue,ze=De*Ae,He=De*Oe;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-Ae)*z,Se*ee,(pe-(ze+Ae)/2)*z,(Se+(Oe+He)/2)*ee,(pe-Ae)*z,(Se+He)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(Se-Oe)*ee,(pe-Ae)*z,(Se-He)*ee,(pe-ze)*z,(Se-Oe)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+Ae)*z,Se*ee,(pe+ze)*z,(Se-Oe)*ee,(pe+Ae)*z,(Se-He)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+Ae)*z,(Se+He)*ee,(pe+(ze+Ae)/2)*z,(Se+(Oe+He)/2)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee));var Ye=new go.PathFigure(.2*z,ee,!1);oe.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var We=new go.PathFigure(.8*z,ee,!1);return oe.add(We),We.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),oe}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.1*z,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var le=new go.PathFigure(.2*z,.2*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),oe}),go.Shape.defineFigureGenerator("BpmnEventError",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.66*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.66*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.33*z,.5*ee).close()),oe}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);oe.add(ie);var le=new go.PathFigure(z,ee,!1);oe.add(le);var ue=new go.PathFigure(.1*z,ee,!0);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),oe}),go.Shape.defineFigureGenerator("Caution",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.05*z,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.8*ee,0,ee,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.45*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.1*ee,.5*z,0,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.95*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,z,ee,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.05*z,ee));var le=.05;return ie.add(new go.PathSegment(go.PathSegment.Move,(.5-le)*z,.875*ee)),ie.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*z,.875*ee,le*z,le*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.325*ee,.575*z,.725*ee,.625*z,.375*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.75*ee,.375*z,.375*ee,.425*z,.725*ee)),oe}),go.Shape.defineFigureGenerator("Recycle",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.45*z,.95*ee,!1);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,.95*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.185*z,.85*ee,.17*z,.95*ee,.15*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.235*z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*z,.625*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.35*z,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.275*z,.45*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.05*z,.45*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.05*z,.575*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1875*z,.95*ee,0,.675*ee,0,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.45*z,.95*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.45*z,.775*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.22*z,.775*ee));var le=new go.PathFigure(.475*z,.2*ee,!1);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.225*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.275*z,.175*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.325*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.05*ee,.35*z,0,.375*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.575*z,.375*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.525*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.475*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.315*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.32*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,0,.65*z,.05*ee,.625*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.38*z,.0105*ee));var ue=new go.PathFigure(.675*z,.575*ee,!1);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.875*z,.525*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.85*z,.95*ee,z,.8*ee,z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.725*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.675*z,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.775*z,.775*ee)),oe}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(fe,z,ee){var oe=new go.Geometry,ie=.5,le=de*.5,ue=new go.PathFigure(z,ie*ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*z,ee,z,(ie+le)*ee,(ie+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ie*ee,(ie-le)*z,ee,0,(ie+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*z,0,0,(ie-le)*ee,(ie-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,ie*ee,(ie+le)*z,0,z,(ie-le)*ee));var pe=new go.PathFigure(ie*z,0,!1);return oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ie*z,.15*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,ie*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,ie*z,.85*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,ie*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*z,ie*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,ie*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*z,ie*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,ie*z,ie*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.58*z,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,ie*z,ie*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.78*z,.54*ee)),oe}),go.Shape.defineFigureGenerator("Package",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.15*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,.15*ee,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.15*ee).close()),oe.spot1=new go.Spot(0,.1),oe.spot2=new go.Spot(1,1),oe}),go.Shape.defineFigureGenerator("Class",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(0,.5*ee,!1);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close()),oe}),go.Shape.defineFigureGenerator("Component",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee).close());var le=new go.PathFigure(0,.2*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var ue=new go.PathFigure(0,.6*ee,!0);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),oe}),go.Shape.defineFigureGenerator("Boat Shipment",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.15*z,.6*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee));var le=new go.PathFigure(.15*z,.6*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),oe}),go.Shape.defineFigureGenerator("Customer/Supplier",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.66*z,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.66*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.33*z,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),oe}),go.Shape.defineFigureGenerator("Workcell",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.35*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),oe}),go.Shape.defineFigureGenerator("Supermarket",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,z,.33*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.66*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,z,.66*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),oe}),go.Shape.defineFigureGenerator("TruckShipment",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(z,.8*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee).close());var ue=.1,pe=de*.1,Se=.2,Le=.9,De=new go.PathFigure((Se-ue)*z,Le*ee,!0);oe.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le-ue)*ee,(Se-ue)*z,(Le-pe)*ee,(Se-pe)*z,(Le-ue)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ue)*z,Le*ee,(Se+pe)*z,(Le-ue)*ee,(Se+ue)*z,(Le-pe)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le+ue)*ee,(Se+ue)*z,(Le+pe)*ee,(Se+pe)*z,(Le+ue)*ee)),De.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ue)*z,Le*ee,(Se-pe)*z,(Le+ue)*ee,(Se-ue)*z,(Le+pe)*ee).close()),ue=.1,pe=de*.1,Se=.8,Le=.9;var Fe=new go.PathFigure((Se-ue)*z,Le*ee,!0);return oe.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le-ue)*ee,(Se-ue)*z,(Le-pe)*ee,(Se-pe)*z,(Le-ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ue)*z,Le*ee,(Se+pe)*z,(Le-ue)*ee,(Se+ue)*z,(Le-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*z,(Le+ue)*ee,(Se+ue)*z,(Le+pe)*ee,(Se+pe)*z,(Le+ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ue)*z,Le*ee,(Se-pe)*z,(Le+ue)*ee,(Se-ue)*z,(Le+pe)*ee).close()),oe}),go.Shape.defineFigureGenerator("KanbanPost",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.2*z,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),oe}),go.Shape.defineFigureGenerator("Forklift",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0));var le=new go.PathFigure(0,.5*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var ue=new go.PathFigure(.5*z,.8*ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee));var pe=new go.PathFigure(.5*z,.7*ee,!1);oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee));var Se=.1,Le=de*.1,De=.1,Fe=.9,Ae=new go.PathFigure((De-Se)*z,Fe*ee,!0);oe.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,De*z,(Fe-Se)*ee,(De-Se)*z,(Fe-Le)*ee,(De-Le)*z,(Fe-Se)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(De+Se)*z,Fe*ee,(De+Le)*z,(Fe-Se)*ee,(De+Se)*z,(Fe-Le)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,De*z,(Fe+Se)*ee,(De+Se)*z,(Fe+Le)*ee,(De+Le)*z,(Fe+Se)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(De-Se)*z,Fe*ee,(De-Le)*z,(Fe+Se)*ee,(De-Se)*z,(Fe+Le)*ee)),Se=.1,Le=de*.1,De=.4,Fe=.9;var Oe=new go.PathFigure((De-Se)*z,Fe*ee,!0);return oe.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,De*z,(Fe-Se)*ee,(De-Se)*z,(Fe-Le)*ee,(De-Le)*z,(Fe-Se)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(De+Se)*z,Fe*ee,(De+Le)*z,(Fe-Se)*ee,(De+Se)*z,(Fe-Le)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,De*z,(Fe+Se)*ee,(De+Se)*z,(Fe+Le)*ee,(De+Le)*z,(Fe+Se)*ee)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(De-Se)*z,Fe*ee,(De-Le)*z,(Fe+Se)*ee,(De-Se)*z,(Fe+Le)*ee)),oe}),go.Shape.defineFigureGenerator("RailShipment",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.1*z,.4*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.4*ee).close());var le=new go.PathFigure(.45*z,.7*ee,!1);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee));var ue=new go.PathFigure(.55*z,.4*ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.4*ee).close());var De=.05,Fe=de*.05,Ae=.175,Oe=.95,pe=new go.PathFigure((Ae-De)*z,Oe*ee,!0);oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(Oe-De)*ee,(Ae-De)*z,(Oe-Fe)*ee,(Ae-Fe)*z,(Oe-De)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+De)*z,Oe*ee,(Ae+Fe)*z,(Oe-De)*ee,(Ae+De)*z,(Oe-Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(Oe+De)*ee,(Ae+De)*z,(Oe+Fe)*ee,(Ae+Fe)*z,(Oe+De)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-De)*z,Oe*ee,(Ae-Fe)*z,(Oe+De)*ee,(Ae-De)*z,(Oe+Fe)*ee));var De=.05,Fe=de*.05,Ae=.375,Oe=.95,Se=new go.PathFigure((Ae-De)*z,Oe*ee,!0);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(Oe-De)*ee,(Ae-De)*z,(Oe-Fe)*ee,(Ae-Fe)*z,(Oe-De)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+De)*z,Oe*ee,(Ae+Fe)*z,(Oe-De)*ee,(Ae+De)*z,(Oe-Fe)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(Oe+De)*ee,(Ae+De)*z,(Oe+Fe)*ee,(Ae+Fe)*z,(Oe+De)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-De)*z,Oe*ee,(Ae-Fe)*z,(Oe+De)*ee,(Ae-De)*z,(Oe+Fe)*ee));var De=.05,Fe=de*.05,Ae=.625,Oe=.95,Le=new go.PathFigure((Ae-De)*z,Oe*ee,!0);oe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(Oe-De)*ee,(Ae-De)*z,(Oe-Fe)*ee,(Ae-Fe)*z,(Oe-De)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+De)*z,Oe*ee,(Ae+Fe)*z,(Oe-De)*ee,(Ae+De)*z,(Oe-Fe)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(Oe+De)*ee,(Ae+De)*z,(Oe+Fe)*ee,(Ae+Fe)*z,(Oe+De)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-De)*z,Oe*ee,(Ae-Fe)*z,(Oe+De)*ee,(Ae-De)*z,(Oe+Fe)*ee));var De=.05,Fe=de*.05,Ae=.825,Oe=.95,ze=new go.PathFigure((Ae-De)*z,Oe*ee,!0);oe.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(Oe-De)*ee,(Ae-De)*z,(Oe-Fe)*ee,(Ae-Fe)*z,(Oe-De)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+De)*z,Oe*ee,(Ae+Fe)*z,(Oe-De)*ee,(Ae+De)*z,(Oe-Fe)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Ae*z,(Oe+De)*ee,(Ae+De)*z,(Oe+Fe)*ee,(Ae+Fe)*z,(Oe+De)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-De)*z,Oe*ee,(Ae-Fe)*z,(Oe+De)*ee,(Ae-De)*z,(Oe+Fe)*ee).close());var He=new go.PathFigure(0,ee,!1);return oe.add(He),He.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),oe}),go.Shape.defineFigureGenerator("Warehouse",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(.15*z,ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee).close());var pe=.05,Se=de*.05,Le=.35,De=.775,Fe=new go.PathFigure((Le-pe)*z,De*ee,!0);return oe.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Le*z,(De-pe)*ee,(Le-pe)*z,(De-Se)*ee,(Le-Se)*z,(De-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Le+pe)*z,De*ee,(Le+Se)*z,(De-pe)*ee,(Le+pe)*z,(De-Se)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Le*z,(De+pe)*ee,(Le+pe)*z,(De+Se)*ee,(Le+Se)*z,(De+pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Le-pe)*z,De*ee,(Le-Se)*z,(De+pe)*ee,(Le-pe)*z,(De+Se)*ee).close()),oe}),go.Shape.defineFigureGenerator("ControlCenter",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.1*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee).close()),oe}),go.Shape.defineFigureGenerator("Bluetooth",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.75*ee,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),oe}),go.Shape.defineFigureGenerator("Bookmark",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),oe}),go.Shape.defineFigureGenerator("Bookmark",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),oe}),go.Shape.defineFigureGenerator("Globe",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.75*z,0,z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.75*ee,.75*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*z,ee,0,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,.25*ee,.25*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,.15*z,.25*ee,.15*z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.85*z,.75*ee,.85*z,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.15*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.15*ee,.35*z,.3*ee,.65*z,.3*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.85*ee,.35*z,.7*ee,.65*z,.7*ee)),oe}),go.Shape.defineFigureGenerator("Wave",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.25*ee,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.25*ee,.1*z,0,.2*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.25*ee,.425*z,.5*ee,.575*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.25*ee,.8*z,0,.9*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.75*ee,.1*z,.5*ee,.2*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.75*ee,.425*z,ee,.575*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.75*ee,.8*z,.5*ee,.9*z,.5*ee)),oe}),go.Shape.defineFigureGenerator("Operator",function(fe,z,ee){var oe=new go.Geometry,ie=.3,le=de*.3,ue=.5,pe=.7,Se=new go.PathFigure((ue-ie)*z,pe*ee,!0);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-ie)*ee,(ue-ie)*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*z,pe*ee,(ue+le)*z,(pe-ie)*ee,(ue+ie)*z,(pe-le)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*z,pe*ee,(ue-le)*z,(pe+ie)*ee,(ue-ie)*z,(pe+le)*ee));var Le=new go.PathFigure(0,.7*ee,!1);return oe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,z,.7*ee,0,0,z,0)),oe}),go.Shape.defineFigureGenerator("TripleFanBlades",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.5*z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.65*z,.3*ee,.65*z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.35*z,.5*ee,.35*z,.3*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*z,.6*ee,.1*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.2*z,ee,.35*z,.95*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,.7*z,.6*ee,.9*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.8*z,ee,.65*z,.95*ee)),oe}),go.Shape.defineFigureGenerator("CentrifugalPump",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z,0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,0,ee,.4*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.4*ee,.8*z,ee,.85*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),oe}),go.Shape.defineFigureGenerator("Battery",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.4*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,.1*ee));var le=new go.PathFigure(0,.6*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),oe}),go.Shape.defineFigureGenerator("Delete",function(fe,z,ee){var oe=new go.Geometry,ie=.5,le=de*.5,ue=.5,pe=.5,Se=new go.PathFigure((ue-ie)*z,pe*ee,!0);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-ie)*ee,(ue-ie)*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*z,pe*ee,(ue+le)*z,(pe-ie)*ee,(ue+ie)*z,(pe-le)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*z,pe*ee,(ue-le)*z,(pe+ie)*ee,(ue-ie)*z,(pe+le)*ee));var Le=new go.PathFigure(.15*z,.5*ee,!1);return oe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.5*ee)),oe}),go.Shape.defineFigureGenerator("Flag",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.1*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.1*ee,.15*z,0,.35*z,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,.65*z,.2*ee,.85*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.85*z,.6*ee,.65*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*z,.4*ee,.15*z,.4*ee).close()),oe}),go.Shape.defineFigureGenerator("Help",function(fe,z,ee){var oe=new go.Geometry,ie=.5,le=de*.5,ue=.5,pe=.5,Se=new go.PathFigure((ue-ie)*z,pe*ee,!1);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-ie)*ee,(ue-ie)*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*z,pe*ee,(ue+le)*z,(pe-ie)*ee,(ue+ie)*z,(pe-le)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*z,pe*ee,(ue-le)*z,(pe+ie)*ee,(ue-ie)*z,(pe+le)*ee).close()),ie=.05,le=de*.05,ue=.5,pe=.8;var Le=new go.PathFigure((ue-ie)*z,pe*ee,!1);return oe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-ie)*ee,(ue-ie)*z,(pe-le)*ee,(ue-le)*z,(pe-ie)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ie)*z,pe*ee,(ue+le)*z,(pe-ie)*ee,(ue+ie)*z,(pe-le)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+ie)*ee,(ue+ie)*z,(pe+le)*ee,(ue+le)*z,(pe+ie)*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ie)*z,pe*ee,(ue-le)*z,(pe+ie)*ee,(ue-ie)*z,(pe+le)*ee).close()),Le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),Le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*ee,.4*z,.2*ee,.3*z,.25*ee)),oe}),go.Shape.defineFigureGenerator("Location",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.975*z,.025*ee,.5*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*z,.5*ee,.5*z,0,.025*z,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*z,.3*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.5*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.3*ee)),oe}),go.Shape.defineFigureGenerator("Unlocked",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.5*ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.35*ee)),oe}),go.Shape.defineFigureGenerator("Gear",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.9375*z,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*z,.3316875*ee,.79840625*z,.39915625*ee,.7834375*z,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*z,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*z,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*z,.19378125*ee,.64228125*z,.2188125*ee,.603875*z,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*z,.239375*ee,.39759375*z,.20190625*ee,.36053125*z,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*z,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*z,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*z,.4375*ee,.21765625*z,.36059375*ee,.201875*z,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*z,.67596875*ee,.20221875*z,.603875*ee,.21884375*z,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*z,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*z,.80621875*ee,.36353125*z,.78340625*ee,.3991875*z,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*z,.760625*ee,.602375*z,.79809375*ee,.63946875*z,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*z,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*z,.56246875*ee,.78234375*z,.63940625*ee,.798125*z,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*z,.5*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.5*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.3*ee,0,.375*ee,.05*z,.325*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.075*ee,.3*z,.225*ee,.4*z,.175*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.525*z,.075*ee,.46*z,.05*ee,.525*z,.05*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.4*ee,.525*z,.275*ee,.475*z,.325*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.55*ee,z,.4*ee,z,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*z,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.7*ee,.675*z,.55*ee,.675*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,.85*ee,.65*z,.7*ee,.65*z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.535*z,ee,.61*z,.85*ee,.61*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*z,ee,0,ee).close()),oe}),go.Shape.defineFigureGenerator("Map",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,.2*ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ie.add(new go.PathSegment(go.PathSegment.Move,.25*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ie.add(new go.PathSegment(go.PathSegment.Move,.75*z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),oe}),go.Shape.defineFigureGenerator("Eject",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee*.7)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var le=new go.PathFigure(0,ee*.6,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close()),oe}),go.Shape.defineFigureGenerator("Pencil",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*1,ee*1,!1);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),ie.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.85)),ie.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),ie.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.3)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.3)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee*.3)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.85)),ie.add(new go.PathSegment(go.PathSegment.Line,z,ee*.85).close());var le=new go.PathFigure(.126*z,.85*ee,!1);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.126*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.85*ee).close());var ue=new go.PathFigure(.402*z,.85*ee,!1);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.402*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.85*ee).close());var pe=new go.PathFigure(.678*z,.85*ee,!1);oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.678*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.85*ee).close());var Se=new go.PathFigure(.5*z,.1*ee,!1);return oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*ee).close()),oe}),go.Shape.defineFigureGenerator("Staircase",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee*1,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.6)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.6)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.4)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.4)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.2)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.2)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.15)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.15)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.35)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),oe}),go.Shape.defineFigureGenerator("5Bars",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,ee*1,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*(1-.184)).close());var le=new go.PathFigure(z*.204,ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.204,ee*(1-.184))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*(1-.184*2))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*1).close());var ue=new go.PathFigure(z*.408,ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.408,ee*(1-.184*2))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*(1-.184*3))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*1).close());var pe=new go.PathFigure(z*.612,ee,!0);oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.612,ee*(1-.184*3))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*(1-.184*4))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*1).close());var Se=new go.PathFigure(z*.816,ee,!0);return oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),Se.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),Se.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1).close()),oe}),go.Shape.defineFigureGenerator("PC",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,0).close());var le=new go.PathFigure(z*.055,.07*ee,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.07)),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.1).close());var ue=new go.PathFigure(z*.055,.13*ee,!0);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.13)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.16)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.16).close());var pe=new go.PathFigure(z*.055,.18*ee,!0);oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.18)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.21)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.21).close());var Se=new go.PathFigure(z*1,0,!0);return oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Se.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),Se.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.65).close()),oe}),go.Shape.defineFigureGenerator("Plane",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(.55*z,ee,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.1*z,.475*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.35*z,.525*ee,0,.4*ee,.225*z,.45*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*z,.475*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.15*z,.35*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*z,.325*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,.325*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.85*z,.1*ee)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.2*ee,.975*z,0,z,.08*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*z,.45*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*z,.95*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee).close()),oe}),go.Shape.defineFigureGenerator("Key",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*1,ee*.5,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.9,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,.4*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,.35*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,.35*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.15,.2*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.15,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,.8*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,.65*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.6,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.65,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.7,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,.55*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,.6*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.85,.575*ee)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.9,.6*ee).close()),ie.add(new go.PathSegment(go.PathSegment.Move,.17*z,.425*ee)),ie.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*z,.5*ee,.075*z,.075*ee).close()),oe}),go.Shape.defineFigureGenerator("FilmTape",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(0,0,!1);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*0,z*.3,z*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*.95)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var le=new go.PathFigure(0,0,!1);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*0)),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*1,z*.3,z*.055)),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var ue=new go.PathFigure(z*.11,ee*.1,!1);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.11,ee*.8).close());var pe=new go.PathFigure(z*(.11+.24133333*1+.028*1),ee*.1,!1);oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.8)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*1),ee*.8).close());var Se=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),Se.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),Se.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),ee*.8).close()),oe}),go.Shape.defineFigureGenerator("FloppyDisk",function(fe,z,ee){var oe=new go.Geometry,ie=8,le=ie*de,ue=new go.PathFigure(ie,0,!1);oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.86,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.14)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ie,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ie,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ie,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ie,0,0,le,le,0).close());var pe=new go.PathFigure(z*.83,0,!1);oe.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*0).close());var Se=new go.PathFigure(z*.83,ee*1,!1);oe.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),Se.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),Se.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var Le=new go.PathFigure(z*.78,ee*.05,!1);return oe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),Le.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),Le.add(new go.PathSegment(go.PathSegment.Line,z*.78,ee*.25).close()),oe}),go.Shape.defineFigureGenerator("SpeechBubble",function(fe,z,ee){var oe=fe?fe.parameter1:NaN;(isNaN(oe)||oe<0)&&(oe=15),oe=Math.min(oe,z/3),oe=Math.min(oe,ee/3);var ie=oe*de,le=ee*.8,ue=new go.Geometry,pe=new go.PathFigure(oe,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z-oe,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,oe,z-ie,0,z,ie)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le-oe)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-oe,le,z,le-ie,z-ie,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.55,le)),pe.add(new go.PathSegment(go.PathSegment.Line,oe,le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,le-oe,ie,le,0,le-ie)),pe.add(new go.PathSegment(go.PathSegment.Line,0,oe)),pe.add(new go.PathSegment(go.PathSegment.Bezier,oe,0,0,ie,ie,0).close()),ie>1?(ue.spot1=new go.Spot(0,0,ie,ie),ue.spot2=new go.Spot(1,.8,-ie,-ie)):(ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.8)),ue}),go.Shape.defineFigureGenerator("Repeat",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*0,ee*.45,!0);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.9)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.9)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.45).close());var le=new go.PathFigure(z*1,ee*.55,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.55).close()),oe}),go.Shape.defineFigureGenerator("Windows",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*z,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*0,ee*.1,!1);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.9)),ie.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.9).close());var le=new go.PathFigure(z*.1,ee*.2,!0);oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,z*.22,ee*.285)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.37)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.25).close());var ue=new go.PathFigure(z*.28,ee*.37,!0);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.37)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.41)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.28,ee*.41).close()),oe}),go.Shape.defineFigureGenerator("Beaker",function(fe,z,ee){var oe=new go.Geometry,ie=15,le=ie*de,ue=new go.PathFigure(z*.62,ee*.475,!0);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ie)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ie,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ie,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ie,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.475)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.03)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.62,ee*.03).close()),le>1?(oe.spot1=new go.Spot(0,0,le,le),oe.spot2=new go.Spot(1,1,-le,-le)):(oe.spot1=go.Spot.TopLeft,oe.spot2=go.Spot.BottomRight),oe}),go.Shape.defineFigureGenerator("Download",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*0,ee*1,!0);oe.add(ie);var le=.1/.3;ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.4,ee*0,!0);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.66)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(1-.26),ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*0).close()),oe}),go.Shape.defineFigureGenerator("Bin",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*0,ee*1,!0);oe.add(ie);var le=.1/.3;return ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close()),oe}),go.Shape.defineFigureGenerator("Upload",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*0,ee*1,!0);oe.add(ie);var le=.1/.3;ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.5,ee*0,!0);return oe.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.74,ee*.25).close()),oe}),go.Shape.defineFigureGenerator("EmptyDrink",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*.15,ee*0,!1);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close()),oe}),go.Shape.defineFigureGenerator("Drink",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*.15,ee*0,!1);oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close());var le=new go.PathFigure(z*.235,ee*.28,!0);return oe.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.765,ee*.28)),le.add(new go.PathSegment(go.PathSegment.Line,z*.655,ee*.97)),le.add(new go.PathSegment(go.PathSegment.Line,z*.345,ee*.97).close()),oe}),go.Shape.defineFigureGenerator("4Arrows",function(fe,z,ee){var oe=new go.Geometry,ie=new go.PathFigure(z*.5,ee*0,!0);return oe.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),ie.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*1)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.75)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.55)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.35)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.45)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.25).close()),oe}),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")},61016: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 dn={},pn="5.0",at={},ot=null,_t=!1,ae=!1,Ge=null,Ie=!1,me=null,de=null,Ee=0;Ee4?parseFloat(ht):5};dn.setHTML5Codebase=function(ht,pt){de=ht,$e(ht,pt)},dn.setJavaCodebase=dn.setJavaCodebaseVersion=dn.isCompiledInstalled=dn.setPreCompiledScriptPath=dn.setPreCompiledResourcePath=function(){},dn.setHTML5CodebaseVersion=function(ht,pt){var ct=parseFloat(ht);if(ct!==NaN&&ct<5){console.log("The GeoGebra HTML5 codebase version "+ct+" is deprecated. Using version latest instead.");return}me=ht,et(ht,pt)},dn.getHTML5CodebaseVersion=function(){return fe},dn.getParameters=function(){return at},dn.setFontsCSSURL=function(ht){ue=ht},dn.setGiacJSURL=function(ht){},dn.setJNLPFile=function(ht){be=ht},dn.setJNLPBaseDir=function(ht){},dn.inject=function(){function ht(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var pt="auto",ct=at.id,Ct,xt=!1,yt=0;yt=5)return!0;var ht=dn.getAppletObject();return ht&&typeof ht.recalculateEnvironments=="function"?(ht.recalculateEnvironments(),!0):!1},dn.startAnimation=function(){var ht=dn.getAppletObject();return ht&&typeof ht.startAnimation=="function"?(ht.startAnimation(),!0):!1},dn.stopAnimation=function(){var ht=dn.getAppletObject();return ht&&typeof ht.stopAnimation=="function"?(ht.stopAnimation(),!0):!1},dn.getAppletObject=function(){var ht=at.id!==void 0?at.id:"ggbApplet";return window[ht]},dn.resize=function(){};var ze=function(ht,pt,ct){var Ct=document.createElement("param");Ct.setAttribute("name",pt),Ct.setAttribute("value",ct),ht.appendChild(Ct)},He=function(ht){return ht&&ht!=="false"},Ye=function(ht,pt,ct){Se(fe)<=4.2&&(ct=!0);var Ct=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(Ct=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var xt=document.createElement("div");xt.classList.add("appletParameters","notranslate");var yt=pt.width,Tt=pt.height;if(pt.disableAutoScale=pt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():pt.disableAutoScale,pt.width!==void 0)if(Se(fe)<=4.4)He(pt.showToolBar)&&(pt.height-=7),He(pt.showAlgebraInput)&&(pt.height-=37),pt.width<605&&He(pt.showToolBar)&&(pt.width=605,yt=605);else{var St=100;(He(pt.showToolBar)||He(pt.showMenuBar))&&(pt.hasOwnProperty("customToolBar")&&(pt.customToolbar=pt.customToolBar),St=He(pt.showMenuBar)?245:155),yt=5?(pt.appletOnLoad=function(jt){var Ht=ht.querySelector(".ggb_preview");Ht&&Ht.parentNode.removeChild(Ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ce),window.GGBT_wsf_view&&$(window).trigger("resize"),Qe(jt)},Ne||Ce.appendChild(Je)):xt.appendChild(Je),Ce.appendChild(xt),Ne||ht.appendChild(Ce),setTimeout(function(){dn.resize()},1)}else{var rt=document.createElement("div");rt.className="applet_scaler",rt.style.position="relative",rt.style.display="block",rt.appendChild(xt),ht.appendChild(rt),pt.appletOnLoad=function(jt){dn.resize(),Qe(jt)}}function Be(jt,Ht){Ht&&typeof Ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,Ht.appletOnLoad):renderGGBElement(jt),vt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ht)}function _e(jt,Ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:Ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ln){Be(ln.article,ln.params)}),html5AppletsToProcess=null)},Se(fe)<5&&(jt.className+=" geogebraweb")):Be(jt,Ht)}if(Ct){scriptLoadStarted=!0;for(var Xe=0;Xe0?(nt.remove(),Ce.attr("id","fullscreencontent").show(),jQuery(Qe).append(Ce),window.dispatchEvent(new Event("resize"))):Ye(nt,pt,!1),window.GGBT_wsf_view.launchFullScreen(Qe)}else xe=Ct,Ye(ht,pt,!1);if(!window.GGBT_wsf_view)for(Tt=0;Ttht/4*3&&(nt=ht/4*3),Qe=nt/5.8,St.setAttribute("src",ie),St.setAttribute("width",nt),St.setAttribute("height",Qe);var Ce=(ht-nt)/2,Ne=(pt-Qe)/2;St.style.left=Ce+"px",St.style.top=Ne+"px",xt.appendChild(St)}}return xt.appendChild(Tt),xt},Et=function(ht){return ht=ht.toLowerCase(),ht==="html5"||ht==="screenshot"?ht:"html5"},Ke=["web","webSimple","web3d","tablet","tablet3d","phone"],et=function(ht,pt){if(fe=ht,pt){$e(fe,!0);return}var ct=!_t;if(ct){var Ct=Se(fe);!isNaN(Ct)&&Ct<4.4&&(ct=!1)}var xt,yt;window.location.protocol.substr(0,4)==="http"?xt=window.location.protocol:xt="http:";var Tt=fe.indexOf("//");Tt>0?yt=fe:Tt===0?yt=xt+fe:yt="https://www.geogebra.org/apps/5.2.814.0/";for(var St in Ke)if(fe.slice(Ke[St].length*-1)===Ke[St]||fe.slice((Ke[St].length+1)*-1)===Ke[St]+"/"){$e(yt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ct&&!ot.is3D&&!ot.AV&&!ot.SV&&!ot.CV&&!ot.EV2&&!ot.CP&&!ot.PC&&!ot.DA&&!ot.FI&&!ot.PV&&!He(at.showToolBar)&&!He(at.showMenuBar)&&!He(at.showAlgebraInput)&&!He(at.enableRightClick)&&(!at.appName||at.appName=="classic")?yt+="webSimple/":yt+="web3d/",$e(yt,!1)},$e=function(ht,pt){if(ht.requirejs){Te=ht;return}ht.slice(-1)!=="/"&&(ht+="/"),Te=ht,pt===null&&(pt=ht.indexOf("http")===-1),ve=pt,z="web.nocache.js",ee=!1;var ct=Te.split("/");ct.length>1&&(!pt&&ct[ct.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):Ke.indexOf(ct[ct.length-2])>=0&&(z=ct[ct.length-2]+".nocache.js")),ct=ht.split("/"),fe=ct[ct.length-3],fe.substr(0,4)==="test"?fe=fe.substr(4,1)+"."+fe.substr(5,1):(fe.substr(0,3)==="war"||fe.substr(0,4)==="beta")&&(fe="5.0");var Ct=parseFloat(fe);Ct!==NaN&&Ct<5&&ht.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ct+" is deprecated. Using version latest instead."),et("5.0",pt))},vt=function(ht,pt){window.console&&window.console.log&&(!pt||typeof pt.showLogging=="undefined"||pt.showLogging&&pt.showLogging!=="false")&&console.log(ht)};at.material_id!==void 0?Fe(wt):wt();function wt(){var ht=pn;me!==null?ht=me:parseFloat(ht)<5&&(ht="5.0"),et(ht,!1),de!==null&&$e(de,ve),Ie=!0}return dn},GGBAppletUtils=function(){"use strict";function dn(){return window.GGBT_wsf_edit!==void 0}function pn(Ie,me){me!=1?(Ie.style.transformOrigin="0% 0% 0px",Ie.style.webkitTransformOrigin="0% 0% 0px",Ie.style.transform="scale("+me+","+me+")",Ie.style.webkitTransform="scale("+me+","+me+")",Ie.style.maxWidth="initial",Ie.querySelector(".ggb_preview")!==null&&(Ie.querySelector(".ggb_preview").style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ie.style.transform="none",Ie.style.webkitTransform="none")}function at(Ie,me,de,Ee,we,be){var Te=null;if(be!=null&&be!="")for(var ve=Ie.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+be+" ")>-1){Te=ve;break}else ve=ve.parentNode;var xe=0,fe=0,z=0,ee=0,oe=0,ie=0,le=0;if(Te)xe=Te.offsetWidth,fe=Math.max(Ee?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),z=xe):(xe=window.innerWidth,fe=window.innerHeight,z=window.innerWidth),Ie){var ue=Ie.getBoundingClientRect();ue.left>0&&ue.left<=xe&&(we===void 0||!we)&&(document.dir==="rtl"?(oe=xe-ue.width-ue.left,ie=z<=480?10:30):(ie=ue.left,oe=z<=480?10:30),ee=ie+oe)}if(Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=Ie.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return Ie&&((de===void 0||!de)&&me>0&&me+ee1&&(be=!0)),me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(be=!0),!(Ie.hasOwnProperty("disableAutoScale")&&Ie.disableAutoScale))we=ot(Ie,me,be,de,Ie.scaleContainerClass);else return Ee;return be&&(!Ie.hasOwnProperty("scale")||Ee===1)?we:Math.min(Ee,we)}function ae(Ie){var me=Math.min(window.innerWidth,document.documentElement.clientWidth),de=Math.min(window.innerHeight,document.documentElement.clientHeight),Ee=Ie.getBoundingClientRect(),we=(me-Ee.width)/2,be=(de-Ee.height)/2;be<0&&(be=0),Ie.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we<40?Ie.style.left="40px":Ie.style.left=we+"px",Ie.style.top=be+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(be<40?Ie.style.top="40px":Ie.style.top=be+"px",Ie.style.left=we+"px")}function Ge(Ie,me){var de=Ie.querySelector(".appletParameters");if(de){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!==de.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ie)}if(de.parentElement&&/fullscreen/.test(de.parentElement.className))return;var Ee=_t(me,Ie);dn()&&de.setAttribute("data-param-scale",Ee);for(var we=null,be=0;be=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(dn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(dn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(dn){var pn=c[dn];return pn==null?null:pn},r=d,webModule.__errFn=e}function B(){function dn(Ie){var me=Ie.lastIndexOf(rb);me==-1&&(me=Ie.length);var de=Ie.indexOf(sb);de==-1&&(de=Ie.length);var Ee=Ie.lastIndexOf(tb,Math.min(de,me));return Ee>=O?Ie.substring(O,Ee+P):W}function pn(Ie){if(!Ie.match(/^\w+:\/\//)){var me=o.createElement(ub);me.src=Ie+vb,Ie=dn(me.src)}return Ie}function at(){var Ie=__gwt_getMetaProperty(wb);return Ie!=null?Ie:W}function ot(){for(var Ie=o.getElementsByTagName(_),me=O;meO?Ie[Ie.length-P].href:W}function ae(){var Ie=o.location;return Ie.href==Ie.protocol+zb+Ie.host+Ie.pathname+Ie.search+Ie.hash}var Ge=at();return Ge==W&&(Ge=ot()),Ge==W&&(Ge=_t()),Ge==W&&ae()&&(Ge=dn(o.location.href)),Ge=pn(Ge),Ge}function C(dn){return dn.match(/^\//)||dn.match(/^[a-zA-Z]+:\/\//)?dn:webModule.__moduleBase+dn}function D(){var dn=[],pn=O,at=[],ot=[];function _t(Ie){var me=ot[Ie](),de=at[Ie];if(me in de)return me;var Ee=[];for(var we in de)Ee[de[we]]=we;throw r&&r(Ie,Ee,me),null}if(__gwt_isKnownPropertyValue=function(Ie,me){return me in at[Ie]},webModule.__getPropMap=function(){var Ie={};for(var me in at)at.hasOwnProperty(me)&&(Ie[me]=_t(me));return Ie},webModule.__computePropValue=_t,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ae;try{ae=Cb;var Ge=ae.indexOf(Db);Ge!=-1&&(pn=parseInt(ae.substring(Ge+P),$),ae=ae.substring(O,Ge))}catch(Ie){}return webModule.__softPermutationId=pn,C(ae+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/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})()},15476:function(dn,pn,at){"use strict";at.d(pn,{Ax:function(){return Ge},Ds:function(){return Ie},KI:function(){return de},SI:function(){return ae},f1:function(){return _t}});var ot=at(11320);function _t(Ee){let we=!0;if(Ee.length>0){for(let be=0;benew Promise((z,ee)=>{var oe=ue=>{try{le(fe.next(ue))}catch(pe){ee(pe)}},ie=ue=>{try{le(fe.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(oe,ie);le((fe=fe.apply(ve,xe)).next())}),Te=({data:ve,className:xe,fullWidth:fe,style:z={},onClose:ee,onOk:oe,showFullTools:ie,noAssociationId:le})=>{const ue=(0,ot.useRef)(null),pe=(0,ot.useRef)(null),Se=(0,ot.useRef)(null),Le=(0,ot.useRef)(null),[De,Fe]=(0,ot.useState)(!1),[Ae,Oe]=(0,ot.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ot.useEffect)(()=>(Se.current||(Se.current=document.createElement("style"),document.head.appendChild(Se.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),Se.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&ze()):(document.body.removeAttribute("data-custom"),Se.current&&(document.head.removeChild(Se.current),Se.current=null)),()=>{document.body.removeAttribute("data-custom"),Se.current&&(document.head.removeChild(Se.current),Se.current=null)}),[ve==null?void 0:ve.visible]);const ze=()=>we(void 0,null,function*(){Fe(!0),Oe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ue=yield(0,Ee.ZJ)(ve==null?void 0:ve.src);ue.current.src="",ue.current.src=Ue,ue.current.onload=function(){We()},Fe(!1),Oe("")}),He=Ue=>we(void 0,null,function*(){Fe(!0),Oe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const st=yield(0,de.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Ue.dataUrl}});st!=null&&st.id&&!le?(yield(0,de.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:st==null?void 0:st.id,settings:JSON.stringify(Ue.state)}})).status===0&&oe():st!=null&&st.id&&oe(st),Fe(!1),Oe("")}),Ye=()=>{const Ue=document.querySelector('a[href="https://markerjs.com/"]');Ue&&Ue.parentNode&&(Ue.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(dt=>{const gt=document.querySelector(dt.name);gt&>.setAttribute("title",dt.title)})},We=()=>{pe.current=new me.hP(ue.current),pe.current.targetRoot=Le.current,pe.current.addEventListener("render",He),pe.current.addEventListener("beforeclose",ee),ie&&(pe.current.availableMarkerTypes=pe.current.ALL_MARKER_TYPES,pe.current.uiStyleSettings.redoButtonVisible=!0,pe.current.uiStyleSettings.notesButtonVisible=!0,pe.current.uiStyleSettings.zoomButtonVisible=!0,pe.current.uiStyleSettings.zoomOutButtonVisible=!0,pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pe.current.uiStyleSettings,pe.current.show(),ve!=null&&ve.snapshotData&&pe.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ye()},300)};return ot.createElement(ot.Fragment,null,(ve==null?void 0:ve.visible)&&ot.createElement(Ie.Z,{spinning:De,tip:Ae,style:{position:"absolute",width:"100vw"}},ot.createElement("div",{ref:Le,className:Ge()(_t.imageDimensions,xe,fe?_t.fullWidth:""),style:z},ot.createElement("img",{className:_t.img,ref:ue}))))}},4069:function(dn,pn,at){"use strict";at.d(pn,{N:function(){return ee}});var ot=at(67294),_t=at(88044),ae=at(62844),Ge=at(28802),Ie=at(2453),me=at(71230),de=at(15746),Ee=at(33170),we={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},be=at(94184),Te=at.n(be),ve=at(55304),xe=at(67294),fe=(oe,ie,le)=>new Promise((ue,pe)=>{var Se=Fe=>{try{De(le.next(Fe))}catch(Ae){pe(Ae)}},Le=Fe=>{try{De(le.throw(Fe))}catch(Ae){pe(Ae)}},De=Fe=>Fe.done?ue(Fe.value):Promise.resolve(Fe.value).then(Se,Le);De((le=le.apply(oe,ie)).next())});const{Option:z}=_t.default,ee=({subId:oe,value:ie,selectvalues:le,disabled:ue,knowledgeOptions:pe=[],className:Se,height:Le,onChange:De=()=>{},onAddKnowledgeFinish:Fe=()=>{},zIndex:Ae=1e3})=>{const Oe=(0,ot.useRef)(),[ze,He]=(0,ot.useState)([]);ie=ie||[];const Ye=(Ue,st)=>{Ue?(He([...st]),De([...st])):(He([]),De([]))};(0,ot.useEffect)(()=>{(le==null?void 0:le.length)>0?(He([...le]),De([...le])):(He([]),De([]))},[pe]),(0,ot.useEffect)(()=>{(ie==null?void 0:ie.length)>0&&De([...ie])},[pe]);const We=Ue=>{Ue.preventDefault(),Oe.current="",ae.default.confirm({centered:!0,width:585,zIndex:Ae,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:xe.createElement("div",{className:"font14"},xe.createElement("div",{className:we.public_tips},xe.createElement(ve.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),xe.createElement("div",{style:{display:"flex",alignItems:"center"}},xe.createElement("div",{style:{width:"95px"}},xe.createElement("span",{className:we.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),xe.createElement(Ge.default,{className:we.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:Oe.current,onChange:st=>{Oe.current=st.target.value}}))),onOk:()=>new Promise((st,dt)=>fe(void 0,null,function*(){if(!Oe.current)return Ie.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),dt();if(Oe.current.length>20)return Ie.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),dt();const gt=yield(0,Ee.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Oe.current,sub_discipline_id:oe}});if((gt==null?void 0:gt.status)===0){Fe({id:gt.tag_discipline_id,name:Oe.current,type:"personal"});let Et=le||[];Et.push(gt.tag_discipline_id),De([...Et]),He([...Et]),De([...Et])}return st()}))})};return xe.createElement(me.Z,{wrap:!1,align:"middle",className:Te()(we.wrap,Se)},xe.createElement(de.Z,null,xe.createElement(_t.default,{mode:"multiple",disabled:!oe||ue,className:we.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:Ye,style:{width:Le||490},showSearch:!0,allowClear:!0,value:ze,filterOption:(Ue,st)=>st.label.indexOf(Ue.toLowerCase())>=0},pe==null?void 0:pe.map(Ue=>xe.createElement(z,{key:Ue.id,value:Ue.id,label:Ue.name},xe.createElement("div",{style:{display:"flex",alignItems:"center"}},xe.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Ue.name),(Ue==null?void 0:Ue.type)==="personal"&&xe.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),oe&&xe.createElement(de.Z,{className:`ml20 ${Le&&we.add_style}`},xe.createElement("span",{className:we.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),xe.createElement("span",{className:we.linkBtn,onClick:We},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},36527:function(dn,pn,at){"use strict";var ot=at(67294),_t=at(71230),ae=at(15746),Ge=at(55238),Ie=at(85804),me=at(65226),de=at(71736),Ee=at(84279),we=at(67294);const be=(0,ot.forwardRef)(({callback:Te,showSaveButton:ve,value:xe=""},fe)=>{const z=(0,ot.useRef)(),ee=[{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 "}]}]}],oe=[{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}`}]}]}],ie=pe=>{z.current.setValue(z.current.getValue()+" "+pe.value+" ")},le=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:we.createElement(_t.Z,{className:de.Z.lists,gutter:[10,10]},ee.map((pe,Se)=>we.createElement(ae.Z,{flex:"110px",className:de.Z.item},we.createElement("div",null,we.createElement(me.Z,{value:`$$${pe.value}$$`}),pe.name),we.createElement("div",{className:de.Z.children},pe.children.map((Le,De)=>we.createElement("div",{key:De},we.createElement("h1",null,Le.name),we.createElement(_t.Z,{gutter:[10,10]},Le.data.map((Fe,Ae)=>we.createElement(ae.Z,{key:Ae,onClick:()=>ie(Fe),className:de.Z.diamond},we.createElement(me.Z,{value:"`$$"+Fe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:we.createElement(_t.Z,{className:de.Z.lists,gutter:[10,10]},oe.map((pe,Se)=>we.createElement(ae.Z,{flex:"110px",className:de.Z.item},we.createElement("div",null,we.createElement(me.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),we.createElement("div",{className:de.Z.children},pe.children.map((Le,De)=>we.createElement("div",{key:De},Le.name&&we.createElement("h1",null,Le.name),we.createElement(_t.Z,{gutter:[10,10]},Le.data.map((Fe,Ae)=>we.createElement(ae.Z,{key:Ae,onClick:()=>ie(Fe),className:de.Z.diamond},we.createElement(me.Z,{value:"`$$"+Fe.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var Se=pe.innerText;return Te&&Te(Se),Se};return(0,ot.useImperativeHandle)(fe,()=>({getData:ue})),we.createElement("div",{className:de.Z.mathWrap},we.createElement(Ge.default,{defaultActiveKey:"1",items:le}),we.createElement("math-field",{locale:"zh_cn",className:de.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},xe||""),ve&&we.createElement("div",{className:de.Z.button},we.createElement(Ie.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});pn.Z=be},26194:function(dn,pn,at){"use strict";var ot=at(67294),_t=at(4977),ae=at(85804),Ge=Object.defineProperty,Ie=Object.defineProperties,me=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,be=(fe,z,ee)=>z in fe?Ge(fe,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):fe[z]=ee,Te=(fe,z)=>{for(var ee in z||(z={}))Ee.call(z,ee)&&be(fe,ee,z[ee]);if(de)for(var ee of de(z))we.call(z,ee)&&be(fe,ee,z[ee]);return fe},ve=(fe,z)=>Ie(fe,me(z));const xe=({img:fe,buttonProps:z={},styles:ee={},customText:oe,ButtonText:ie,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:Se,loading:Le=!1,className:De=""})=>ot.createElement("section",{className:`tc animated fadeIn ${De}`,style:Te({color:"#999",margin:"100px auto",visibility:Le?"hidden":"visible"},ee)},ot.createElement("img",{src:fe||_t,style:ve(Te({},Se),{pointerEvents:"none",userSelect:"none"})}),ot.createElement("p",{className:"mt20 font14"},oe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ie&&ot.createElement(ae.ZP,Te({className:ue,onClick:le},z),ie),pe&&pe);pn.Z=xe},20819:function(dn,pn,at){"use strict";at.d(pn,{Z:function(){return ue}});var ot=at(67294),_t={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ae=at(85804),Ge=at(30153),Ie=at(36295),me=at(83062),de=at(28706),Ee=at(15835),we=at(26194),be=at(11320),Te=at(66540),ve=at(67294),xe=Object.defineProperty,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,oe=(pe,Se,Le)=>Se in pe?xe(pe,Se,{enumerable:!0,configurable:!0,writable:!0,value:Le}):pe[Se]=Le,ie=(pe,Se)=>{for(var Le in Se||(Se={}))z.call(Se,Le)&&oe(pe,Le,Se[Le]);if(fe)for(var Le of fe(Se))ee.call(Se,Le)&&oe(pe,Le,Se[Le]);return pe},le=(pe,Se,Le)=>new Promise((De,Fe)=>{var Ae=He=>{try{ze(Le.next(He))}catch(Ye){Fe(Ye)}},Oe=He=>{try{ze(Le.throw(He))}catch(Ye){Fe(Ye)}},ze=He=>He.done?De(He.value):Promise.resolve(He.value).then(Ae,Oe);ze((Le=Le.apply(pe,Se)).next())}),ue=({editOffice:pe="view",data:Se,issaver:Le,onSaver:De,theme:Fe,type:Ae,filename:Oe,monacoEditor:ze,className:He,style:Ye,close:We,onClose:Ue,hasMask:st,disabledDownload:dt,onImgDimensions:gt,showNodata:Et,recordInfo:Ke})=>{const[et,$e]=(0,ot.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[vt,wt]=(0,ot.useState)(""),[ht,pt]=(0,ot.useState)(),ct=window.ENV==="build"?"/react/build":"",Ct=location.host.startsWith("localhost")?be.Z.PROXY_SERVER:be.Z.API_SERVER,yt=10*(1024*1024),Tt=(0,ot.useRef)();Se!=null&&Se.startsWith("/api")&&Ae!=="txt"&&(Se=be.Z.API_SERVER+Se);const St=Je=>Je.substring(Je.lastIndexOf("/")+1).split(".").pop();Oe&&ze&&(ze.filename=Oe),(0,ot.useEffect)(()=>{var Je,rt;const Be=(rt=(Je=document.cookie)==null?void 0:Je.replace(/\s/g,""))==null?void 0:rt.split(";");Be==null||Be.map(_e=>{let Xe=_e.split("=");Xe[0]==="_educoder_session"&&wt(Xe[1])})},[]),(0,ot.useEffect)(()=>{Ae==="office"&&(Se.indexOf("bigfilescdn.")>-1||Se.indexOf("bigfiles1")>-1?pt({url:Se,fileType:St(Se),model:Se.indexOf("model=edit")?"edit":"view"}):Qe())},[Ae,Se]);function nt(Je){return le(this,null,function*(){Je.data.type==="pdfdata"&&(De(Je.data.data),window.removeEventListener("message",nt,!1)),console.log("mess---:",Je.data)})}const Qe=()=>le(void 0,null,function*(){console.log("data:",Se);let Je=Se;Se.startsWith("http")||(Je=location.origin+Je);let rt=new URL(Je).pathname.split("/").pop();const Be=yield(0,Ee.gJ)({attachment_id:rt});Be.url=Ct+Be.url,pt(Be)}),Ce=()=>{if(Se.startsWith("http")||Se.startsWith("blob:")){Ne();return}(0,de.Sv)(Oe||"educoder",Se,Oe)},Ne=()=>{Ke&&(0,Te.fc)({id:Ke==null?void 0:Ke.id,watch_type:1,course_id:Ke==null?void 0:Ke.course_id}),(0,de.Nd)(Oe||"educoder",decodeURIComponent(Se))};return ve.createElement("div",{style:ie({},Ye||{}),className:`${st&&_t.bgBlack} ${Ae?_t.wrp:"hide"}`},We&&ve.createElement("div",{className:_t.close,ref:Tt},!!gt&&ve.createElement(me.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Tt.current},ve.createElement("span",{onClick:()=>{Ue(),gt()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!dt&&ve.createElement(me.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Tt.current},ve.createElement("span",{onClick:Ne},ve.createElement("i",{className:"icon-quxiaozhiding"}))),Le&&ve.createElement(me.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Tt.current},ve.createElement("span",{className:"",onClick:()=>{const Je=document.getElementById("pdfiframe");window.addEventListener("message",nt,!1),setTimeout(()=>{Je.contentWindow.postMessage("getData","*")},300)}},ve.createElement("i",{className:"icon-baocun"}))),ve.createElement(me.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Tt.current},ve.createElement("span",{className:"",onClick:()=>{Ue()}},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${_t[He]} ${He} ${_t.monaco} ${Ae==="txt"?"show":"hide"}`},Ae==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(Ie.ZP,ie({},ze)))),Ae==="audio"&&ve.createElement("audio",{src:`${(Se==null?void 0:Se.indexOf("http://"))>-1||(Se==null?void 0:Se.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Se}`,autoPlay:!0}),Ae==="video"&&ve.createElement(ve.Fragment,null,(Se==null?void 0:Se.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${Se}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Se}`,autoPlay:!0})),Ae==="office"&&ht&&ve.createElement("iframe",{src:`${ct}/office.html?key=${ht.key}&url=${btoa(ht.url)}&callbackUrl=${Ct+(ht.callbackUrl||"")}&fileType=${ht.fileType}&title=${ht.title||""}&model=${pe}&officeServer=${be.Z.ONLYOFFICE}&disabledDownload=${!!dt}`}),Ae==="html"&&ve.createElement("iframe",{src:Se+"&disposition=inline"}),Ae==="pdf"&&ve.createElement("iframe",{id:"pdfiframe",src:`${ct}/js/pdfview/index.html?filename=${Oe||"educoder.pdf"}&url=${encodeURIComponent(Se)}&disabledDownload=${!!dt}&model=${pe}`}),Ae==="image"&&ve.createElement("img",{src:`${(Se==null?void 0:Se.indexOf("http://"))>-1||(Se==null?void 0:Se.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Se}`}),(Ae==="other"||Ae==="download")&&ve.createElement(ve.Fragment,null,Et?ve.createElement(we.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(ae.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ce,disabled:dt},"\u4E0B\u8F7D")}):ve.createElement(ae.ZP,{type:"primary",size:"middle",onClick:Ce,disabled:dt},ve.createElement(Ge.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},41307:function(dn,pn,at){"use strict";at.d(pn,{h:function(){return z},x:function(){return ee}});var ot=at(35567),_t=at(52654),ae=at(65226),Ge=at(67294),Ie=Object.defineProperty,me=Object.defineProperties,de=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Te=(oe,ie,le)=>ie in oe?Ie(oe,ie,{enumerable:!0,configurable:!0,writable:!0,value:le}):oe[ie]=le,ve=(oe,ie)=>{for(var le in ie||(ie={}))we.call(ie,le)&&Te(oe,le,ie[le]);if(Ee)for(var le of Ee(ie))be.call(ie,le)&&Te(oe,le,ie[le]);return oe},xe=(oe,ie)=>me(oe,de(ie)),fe=(oe,ie)=>{var le={};for(var ue in oe)we.call(oe,ue)&&ie.indexOf(ue)<0&&(le[ue]=oe[ue]);if(oe!=null&&Ee)for(var ue of Ee(oe))ie.indexOf(ue)<0&&be.call(oe,ue)&&(le[ue]=oe[ue]);return le};const z=oe=>{var ie=oe,{value:le,onChange:ue,scrollId:pe}=ie,Se=fe(ie,["value","onChange","scrollId"]);return Ge.createElement("div",{id:pe||""},Ge.createElement(ot.Z,xe(ve({},Se),{defaultValue:le,onChange:(Le,De)=>{De!=null&&De.length?ue(Le,De):ue(Le)}})))},ee=({value:oe,onChange:ie,placeholder:le,height:ue=140,isEdit:pe,miniToolbar:Se,watch:Le=!0})=>pe?Ge.createElement(ot.Z,{watch:Le,isFocus:!0,height:ue||void 0,placeholder:le,defaultValue:oe,onChange:ie,miniToolbar:Se}):Ge.createElement("div",{style:{cursor:"pointer"}},oe?Ge.createElement(ae.Z,{className:_t.Z.inputBorder,value:oe}):Ge.createElement("div",{className:`${_t.Z.inputBorder} ${_t.Z.placeholder} inputBorderError`},le))},65226:function(dn,pn,at){"use strict";at.d(pn,{z:function(){return Ae},Z:function(){return Oe}});var ot=at(67294),_t=at(81897),ae=at(51161),Ge=at(11771),Ie=at(67631),me=at.n(Ie),de=at(11320),Ee=at(28706),we=at(20527),be=at(25934),Te=at(20819),ve=at(67294),fe=({html:ze})=>{const He=(0,ot.useRef)(null),Ye=(0,ot.useRef)(null),We=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 56px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,ot.useEffect)(()=>{const Ue=He.current.attachShadow({mode:"open"});Ye.current=document.createElement("div"),Ye.current.className="markdown-body",Ye.current.innerHTML=ze,Ue.appendChild(Ye.current);const st=document.createElement("style");return st.textContent=We,Ue.appendChild(st),()=>{Ue.innerHTML=""}},[]),(0,ot.useEffect)(()=>{Ye.current&&(Ye.current.innerHTML=ze)},[ze]),ve.createElement("div",{ref:He})};function z(ze){const He=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],Ye=new RegExp(`\\b(${He.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ze.replace(Ye,"").trim()}var ee=Object.defineProperty,oe=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=(ze,He,Ye)=>He in ze?ee(ze,He,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ze[He]=Ye,pe=(ze,He)=>{for(var Ye in He||(He={}))ie.call(He,Ye)&&ue(ze,Ye,He[Ye]);if(oe)for(var Ye of oe(He))le.call(He,Ye)&&ue(ze,Ye,He[Ye]);return ze};const Se="@\u2581\u2581@",Le="@\u2581@",De=/]*>/g;function Fe(ze){let He=document.createElement("div");return He.innerHTML=ze,He.childNodes.length===0?"":He.childNodes[0].nodeValue}const Ae=(ze,He)=>{ze=ze||"";const Ye=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,We=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ue=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,st=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return He?ze.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Ye,(dt,gt,Et,Ke,et,$e,vt)=>{const wt=gt||Ke||$e,ht=Et||et||vt||"?";return de.Z.API_SERVER+"/api/attachments/"+wt+ht+"&t="+(0,Ee.Jn)(wt,Date.now())+(dt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ze=ze.replace(st,(dt,gt,Et,Ke,et,$e,vt)=>{const wt=gt||Ke||$e,ht=Et||et||vt||"?";return de.Z.API_SERVER+"/attachments/download/"+wt+ht+"&t="+(0,Ee.Jn)(wt,Date.now())+(dt.indexOf(")")>-1?")":"&")}).replace(Ye,(dt,gt,Et,Ke,et,$e,vt)=>{const wt=gt||Ke||$e,ht=Et||et||vt||"?";return de.Z.API_SERVER+"/api/attachments/"+wt+ht+"&t="+(0,Ee.Jn)(wt,Date.now())+(dt.indexOf(")")>-1?")":"&")}).replace(We,(dt,gt,Et,Ke,et)=>{const $e=gt||Ke,vt=Et||et||"";return'"'+de.Z.API_SERVER+"/api/attachments/"+$e+vt+$e+vt+"&t="+(0,Ee.Jn)($e,Date.now())}).replace(Ue,(dt,gt,Et,Ke,et)=>{const $e=gt||Ke,vt=Et||et||"";return"("+de.Z.API_SERVER+"/files/uploads/"+$e+vt+$e+vt+"&t="+(0,Ee.Jn)($e,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),ze)};var Oe=({value:ze="",className:He,showTextOnly:Ye,showLines:We,style:Ue={},stylesPrev:st={},highlightKeywords:dt,showProgramFill:gt,isProgramFill:Et,disabledFill:Ke=!1,programFillValue:et,onFillChange:$e=ht=>{},onFillBlur:vt=()=>{},onFillFocus:wt=()=>{}})=>{let ht=z(String(ze||""));const[pt,ct]=(0,ot.useState)(""),[Ct,xt]=(0,ot.useState)("office"),[yt,Tt]=(0,ot.useState)([]),St=(0,ot.useRef)("a"+(0,be.Z)()),nt={},Qe=jt=>//i.test(jt||""),Ce=(jt,Ht,ln)=>{const an=document.createElement(jt===Le?"input":"textarea");an.style.width="100%",an.style.height=jt===Le?"40px":"151px",an.rows=5,an.spellcheck=!1,an.name="edu-program-fill",an.placeholder="\u8BF7\u8F93\u5165",an.dataset.id=Ht;const sn=Object.keys(nt).length;return nt[sn]=an,`${an.outerHTML}`};function Ne(jt){return jt=jt.replace(/!\[.*?\]\(.*?\)/g,""),jt=jt.replace(/\[.*?\]\(.*?\)/g,""),jt=jt.replace(new RegExp("","gs"),""),jt=jt.replace(//g,""),jt=jt.replace(//g,""),jt=jt.replace(new RegExp(".*?<\\/video>","gs"),""),jt=jt.replace(new RegExp(".*?<\\/audio>","gs"),""),jt=jt.replace(new RegExp(".*?<\\/style>","gs"),""),jt=jt.replace(new RegExp(".*?<\\/script>","gs"),""),jt}const Je=jt=>!Ye&&Qe(ht)?jt:jt.replace(/([\s\S]+?)<\/style>/gim,function(Ht,ln){let an=ln.replace(/(\n|\r)/g,"").split("}"),sn=[];return an.map($t=>{$t!=""&&sn.push(`.${St.current} ${$t}`)}),``}),rt=(0,ot.useMemo)(()=>{try{const an=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,sn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$t=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,On=/\(\/attachments\/download\//g;ht=ht.replace(On,"("+de.Z.API_SERVER+"/attachments/download/").replace(an,"("+de.Z.API_SERVER+"/api/attachments/").replace(sn,'"'+de.Z.API_SERVER+"/api/attachments/").replace($t,'"'+de.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `)}catch(an){}if(gt){let an=-1;return ht=ht.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(sn,$t,On){var un;return++an,Ce(sn,an,(un=et==null?void 0:et[an])==null?void 0:un.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Je(ht||"")}
`}let jt=Je(ht);jt=(0,ae.ZP)(jt);const Ht=(0,ae.ez)();ht.match(/\[TOC\]/)&&(jt=jt.replace("

[TOC]

",(0,ae.Qv)()),(0,ae.Iy)()),jt=jt.replace(/(__special_katext_id_\d+__)/g,(an,sn)=>{const{type:$t,expression:On}=Ht[sn];return(0,we.renderToString)(Fe(On)||"",{displayMode:$t==="block",throwOnError:!1,output:"html"})}),jt=jt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ae.AL)();const ln=document.createElement("div");if(ln.innerHTML=jt,Ye)return ln.innerText;if(dt){const an=dt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return lt(ln,an),ln.innerHTML}return setTimeout(()=>zt(),500),ln.innerHTML},[ht,dt]);(0,ot.useEffect)(()=>{Pt.current&&Pt.current.querySelectorAll(["input","textarea"]).forEach(Ht=>{Ht.oninput=Be,Ht.onblur=_e,Ht.onfocus=Xe})},[yt]),(0,ot.useEffect)(()=>{var jt,Ht,ln,an,sn;if(et!=null&&et.length)try{const $t=Pt.current.querySelectorAll(".edu-program-fill-score"),On=Pt.current.querySelectorAll('[name="edu-program-fill"]');for(const[un,mn]of On.entries())mn.value=((jt=et==null?void 0:et[un])==null?void 0:jt.value)||"",((Ht=et==null?void 0:et[un])==null?void 0:Ht.type)==="warning"?mn.className="program-fill-warning":((ln=et==null?void 0:et[un])==null?void 0:ln.type)==="success"?mn.className="program-fill-success":mn.className="";for(const[un,mn]of $t.entries())mn.innerHTML=(an=et==null?void 0:et[un])!=null&&an.score?`${(sn=et==null?void 0:et[un])==null?void 0:sn.score}\u5206`:"";Tt(et)}catch($t){console.log($t,"error")}},[et]);const Be=jt=>{yt[jt.target.dataset.id]=yt[jt.target.dataset.id]||{},yt[jt.target.dataset.id].value=jt.target.value,Tt([...yt]),$e(yt,jt.target.dataset.id)},_e=jt=>{yt[jt.target.dataset.id]=yt[jt.target.dataset.id]||{},yt[jt.target.dataset.id].value=jt.target.value,Tt([...yt]),vt(yt,jt.target.dataset.id)},Xe=jt=>{yt[jt.target.dataset.id]=yt[jt.target.dataset.id]||{},yt[jt.target.dataset.id].value=jt.target.value,Tt([...yt]),wt(yt,jt.target.dataset.id)};function lt(jt,Ht){return jt.childNodes.forEach(ln=>{var an;if(ln.childNodes.length>0)lt(ln,Ht);else if(ln.nodeName!=="IMG")if(ln.innerHTML)ln.innerHTML=(an=ln.innerHTML)==null?void 0:an.replace(new RegExp(Ht,"gi"),'$&');else{const sn=document.createElement("span");sn.innerHTML=ln.textContent.replace(new RegExp(Ht,"gi"),'$&'),ln.replaceWith(sn)}})}const Pt=(0,ot.useRef)();ae.jb.WebkitLineClamp=We,We&&(Ue=pe(pe({},Ue),ae.jb));function kt(jt){let Ht=jt.target;if(Ht.tagName.toUpperCase()==="A"){let ln=Ht.getAttribute("href");if(ln.indexOf("office")>-1)jt.preventDefault(),ct(ln),xt("office");else if(ln.indexOf("application/pdf")>-1)jt.preventDefault(),ct(ln),xt("pdf");else if(ln.indexOf("text/html")>-1)jt.preventDefault(),ct(ln),xt("html");else if(ln.startsWith("#")){jt.preventDefault();let an=document.getElementById(ln.replace("#",""));an&&an.scrollIntoView(!0)}}}const zt=()=>{var jt;const Ht=(jt=Pt.current)==null?void 0:jt.querySelectorAll("video");Ht==null||Ht.forEach(ln=>{if(ln.oncontextmenu=()=>!1,ln.src.indexOf(".m3u8")>-1&&!ln.canPlayType("application/vnd.apple.mpegurl")){if(me().isSupported()){var an=new(me());an.loadSource(ln.src),an.attachMedia(ln)}}})};return(0,ot.useEffect)(()=>{if(Pt.current&&rt&&rt.match(De)&&window.PR.prettyPrint(),Pt.current)return Pt.current.addEventListener("click",kt),()=>{var jt;(jt=Pt.current)==null||jt.removeEventListener("click",kt),(0,ae.AL)(),(0,ae.Iy)()}},[rt,Pt.current,kt]),(0,ot.useEffect)(()=>{var jt;const Ht=ln=>{ln.preventDefault(),ln.clipboardData.setData("text",window.getSelection().toString())};return(jt=Pt.current)==null||jt.addEventListener("copy",Ht),()=>{var ln;(ln=Pt.current)==null||ln.removeEventListener("copy",Ht)}},[Pt.current]),ot.createElement(ot.Fragment,null,Ye&&ot.createElement("div",{ref:Pt},rt),!Ye&&!Qe(rt)&&ot.createElement("div",{ref:Pt,style:pe({},Ue),className:`${He||""} ${Ke?"disabled-fill":""} markdown-body ${St.current}`,dangerouslySetInnerHTML:{__html:rt}}),!Ye&&Qe(rt)&&ot.createElement(fe,{html:rt}),ot.createElement(Te.Z,{close:!0,data:pt,type:pt!=null&&pt.length?Ct:"",style:pe({},st),onClose:()=>ct("")}))}},59451:function(dn,pn,at){"use strict";at.d(pn,{cT:function(){return Ae},pe:function(){return Le}});var ot=at(67294),_t=at(35059),ae=at(2453),Ge=at(33170),Ie=at(81354),me=at.n(Ie),de=at(25934),Ee=at(35973),we=at(56448),be=at.n(we),Te=Object.defineProperty,ve=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,oe=(ze,He,Ye)=>He in ze?Te(ze,He,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ze[He]=Ye,ie=(ze,He)=>{for(var Ye in He||(He={}))z.call(He,Ye)&&oe(ze,Ye,He[Ye]);if(fe)for(var Ye of fe(He))ee.call(He,Ye)&&oe(ze,Ye,He[Ye]);return ze},le=(ze,He)=>ve(ze,xe(He)),ue=(ze,He)=>{var Ye={};for(var We in ze)z.call(ze,We)&&He.indexOf(We)<0&&(Ye[We]=ze[We]);if(ze!=null&&fe)for(var We of fe(ze))He.indexOf(We)<0&&ee.call(ze,We)&&(Ye[We]=ze[We]);return Ye},pe=(ze,He,Ye)=>new Promise((We,Ue)=>{var st=Et=>{try{gt(Ye.next(Et))}catch(Ke){Ue(Ke)}},dt=Et=>{try{gt(Ye.throw(Et))}catch(Ke){Ue(Ke)}},gt=Et=>Et.done?We(Et.value):Promise.resolve(Et.value).then(st,dt);gt((Ye=Ye.apply(ze,He)).next())});const{Dragger:Se}=_t.default,Le=ze=>{const He="bf3c199c2470cb477d907b1e0917c17b",Ye="5183666c72eec9e4";var We=me().enc.Utf8.parse(He);let Ue=me().enc.Utf8.parse(Ye);var st=me().AES.decrypt(ze,We,{iv:Ue,mode:me().mode.CBC});return st.toString(me().enc.Utf8)};let De;const Fe=ze=>pe(void 0,[ze],function*({identifier:He,oldFilename:Ye,newFilename:We}){var Ue,st,dt,gt,Et,Ke;const et=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});et.data=JSON.parse(Le(et.data));const $e=new OSS({endpoint:(Ue=et==null?void 0:et.data)==null?void 0:Ue.end_point,region:(st=et==null?void 0:et.data)==null?void 0:st.region,accessKeyId:(dt=et==null?void 0:et.data)==null?void 0:dt.access_key_id,accessKeySecret:(gt=et==null?void 0:et.data)==null?void 0:gt.access_key_secret,bucket:(Et=et==null?void 0:et.data)==null?void 0:Et.bucket,stsToken:(Ke=et==null?void 0:et.data)==null?void 0:Ke.security_token});return new Promise((vt,wt)=>{console.log(11111,`${He}/${Ye}`,`${He}/${We}`,et.data),$e.copy(`/${He}/${Ye}`,`/${He}/${We}`).then(ht=>{console.log("\u62F7\u8D1D\u6210\u529F",ht)}).catch(ht=>{console.log(ht)})})}),Ae=(ze,He,Ye)=>pe(void 0,null,function*(){var We,Ue,st,dt,gt,Et;He.file_name=ze.name;const Ke=yield(0,Ge.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Le(Ke.data)),Ke.data=JSON.parse(Le(Ke.data));const et=ze.name.split(".");et.pop();const $e=He.realFileName?et.join(""):(0,de.Z)(),vt=new(be())({endpoint:(We=Ke==null?void 0:Ke.data)==null?void 0:We.end_point,region:(Ue=Ke==null?void 0:Ke.data)==null?void 0:Ue.region,accessKeyId:(st=Ke==null?void 0:Ke.data)==null?void 0:st.access_key_id,accessKeySecret:(dt=Ke==null?void 0:Ke.data)==null?void 0:dt.access_key_secret,bucket:(gt=Ke==null?void 0:Ke.data)==null?void 0:gt.bucket,stsToken:(Et=Ke==null?void 0:Ke.data)==null?void 0:Et.security_token});return new Promise((wt,ht)=>{var pt;vt.multipartUpload(`${$e}`,new Blob([ze],{type:ze.type}),le(ie({timeout:200*1e3,partSize:102400},Ye),{callback:{url:(pt=Ke==null?void 0:Ke.data)==null?void 0:pt.callback_url,host:Ke==null?void 0:Ke.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ge.rz)(He)}})).then(function(ct){var Ct;ze.response=(Ct=ct.data)==null?void 0:Ct.data,wt(ct==null?void 0:ct.data)}).catch(function(ct){ht(ct),console.log("err:",ct)})})}),Oe=ze=>{var He=ze,{user:Ye,cancelUpload:We}=He,Ue=ue(He,["user","cancelUpload"]);const[st,dt]=(0,ot.useState)([]);let[gt,Et]=(0,ot.useState)();const Ke={onRemove:$e=>{dt([...st.filter(vt=>vt.name!==$e.name)]),Ue.onChange(st.filter(vt=>vt.name!==$e.name))},disabled:Ue.disabled,multiple:!0,fileList:st==null?void 0:st.map($e=>$e.file),customRequest:()=>{},beforeUpload:$e=>pe(void 0,null,function*(){let vt=Ue.maxSize||1073741824;if(st.filter(wt=>wt.name===$e.name).length){ae.ZP.info(`${$e.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return($e==null?void 0:$e.size)>vt?(ae.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${vt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(st.push({name:$e.name,file:$e}),dt([...st]),Ue.onChange(st),!1)})},et=($e,vt)=>pe(void 0,null,function*(){var wt,ht,pt,ct,Ct,xt;vt.file_name=$e.name;const yt=$e.name,Tt=yield(0,Ge.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(Tt.data=JSON.parse(Le(Tt.data)),(Tt==null?void 0:Tt.status)!==0){st[st.findIndex(Qe=>Qe.name===yt)].status="error",st[st.findIndex(Qe=>Qe.name===yt)].file.status="error",Ue.onChange(st),ae.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}gt=new(be())({endpoint:(wt=Tt==null?void 0:Tt.data)==null?void 0:wt.end_point,region:(ht=Tt==null?void 0:Tt.data)==null?void 0:ht.region,accessKeyId:(pt=Tt==null?void 0:Tt.data)==null?void 0:pt.access_key_id,accessKeySecret:(ct=Tt==null?void 0:Tt.data)==null?void 0:ct.access_key_secret,bucket:(Ct=Tt==null?void 0:Tt.data)==null?void 0:Ct.bucket,stsToken:(xt=Tt==null?void 0:Tt.data)==null?void 0:xt.security_token}),console.log($e,"file"),Et(gt);const St=$e.name.split(".");St.pop();const nt=yt.indexOf(".")>-1?vt.realFileName?St.join("."):(0,de.Z)():yt;return new Promise((Qe,Ce)=>{var Ne;try{gt.multipartUpload(`${Ue.identifier}/${nt}${yt.indexOf(".")>-1?"."+yt.split(".").pop():""}`,new Blob([$e.file],{type:$e.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Je,rt,Be)=>{try{console.log("\u8FDB\u5EA6",Je,rt,Be);const _e=st.findIndex(Xe=>Xe.name===yt);st[_e].file.percent=Je*100,st[_e].tempCheckpoint=rt,dt([...st])}catch(_e){}},checkpoint:st[st.findIndex(Je=>Je.name===yt)].tempCheckpoint,callback:{customValue:{id:yt+""},url:(Ne=Tt==null?void 0:Tt.data)==null?void 0:Ne.callback_url,host:Tt==null?void 0:Tt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ge.rz)(vt)}}).then(function(Je){var rt,Be,_e;const Xe=st.findIndex(Pt=>Pt.name===yt);let lt="done";if(((rt=Je.data)==null?void 0:rt.status)===0){$e.response=(Be=Je.data)==null?void 0:Be.data;const Pt=st.findIndex(kt=>kt.name===yt);st[Pt].status="done",st[Pt].file.status="done"}else ae.ZP.warning((_e=Je.data)==null?void 0:_e.message),lt="error";st[Xe].status=lt,st[Xe].file.status=lt,Ue.onChange(st),Qe(Je==null?void 0:Je.data)}).catch(function(Je){st[st.findIndex(rt=>rt.name===yt)].status="error",st[st.findIndex(rt=>rt.name===yt)].file.status="error",ae.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),dt([...st]),Ue.onChange(st),Ce(Je),console.log("err:",Je)})}catch(Je){}})});return(0,ot.useEffect)(()=>{st.every($e=>$e==="done"||$e==="error")&&Ue.onComplete(st)},[st]),(0,ot.useEffect)(()=>{We&&(gt==null||gt.cancel())},[We]),(0,ot.useEffect)(()=>{Ue.uploading&&st.map($e=>pe(void 0,null,function*(){var vt;if((!$e.status||$e.status==="error")&&!We){$e.status="uploading",$e.file.status="uploading";const wt=yield et($e,{login:(vt=Ye==null?void 0:Ye.userInfo)==null?void 0:vt.login,container_type:Ue.container_type,container_id:Ue.container_id,description:Ue.description,realFileName:Ue.realFileName})}}))},[Ue.uploading]),ot.createElement(Se,le(ie({},Ke),{height:Ue.height,className:Ue.className}),ot.createElement("p",{className:"ant-upload-hint"},Ue.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};pn.ZP=(0,Ee.connect)(({loading:ze,globalSetting:He,user:Ye})=>({globalSetting:He,loading:ze.models.competitions,user:Ye}))(Oe)},57444:function(dn,pn,at){"use strict";at.d(pn,{h:function(){return pe}});var ot=at(67294),_t=at(88044),ae=at(91773),Ge=at(85804),Ie=at(4631),me=at.n(Ie),de=at(71749),Ee=at(30483),we=Object.defineProperty,be=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,z=(Se,Le,De)=>Le in Se?we(Se,Le,{enumerable:!0,configurable:!0,writable:!0,value:De}):Se[Le]=De,ee=(Se,Le)=>{for(var De in Le||(Le={}))xe.call(Le,De)&&z(Se,De,Le[De]);if(ve)for(var De of ve(Le))fe.call(Le,De)&&z(Se,De,Le[De]);return Se},oe=(Se,Le)=>be(Se,Te(Le));const ie=_t.default.Option,le={labelCol:{span:4},wrapperCol:{span:20}},ue={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"]};pn.Z=({callback:Se,onCancel:Le})=>{const[De,Fe]=(0,ot.useState)("python");function Ae(ze){Fe(ue[ze][1])}function Oe(ze){Se(ze)}return ot.createElement(ae.default,oe(ee({},le),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Oe,style:{width:500}}),ot.createElement(ae.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ot.createElement(_t.default,{getPopupContainer:ze=>ze.parentNode,onChange:Ae},Object.keys(ue).map(ze=>ot.createElement(ie,{key:ze,value:ze},ue[ze][0])))),ot.createElement(ae.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ot.createElement(pe,{mode:De})),ot.createElement("div",{className:"flex-container flex-end"},ot.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ot.createElement(Ge.ZP,{type:"ghost",onClick:Le},"\u53D6\u6D88")))};function pe({value:Se,onChange:Le,mode:De,options:Fe={}}){const Ae=(0,ot.useRef)(),[Oe,ze]=(0,ot.useState)();return(0,ot.useEffect)(()=>{if(Oe){let He=function(Ye){const We=Ye.getValue();Le&&Le(We)};return Oe.on("change",He),()=>{Oe.off("change",He)}}},[Oe,Le]),(0,ot.useEffect)(()=>{Oe&&Oe.setOption("mode",De)},[Oe,De]),(0,ot.useEffect)(()=>{Oe&&(Se!==Oe.getValue()||Se==="")&&setTimeout(()=>{Oe.setValue(Se||"")},300)},[Oe,Se]),(0,ot.useEffect)(()=>{if(Ae.current&&!Oe){const He=me().fromTextArea(Ae.current,ee({mode:De,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Fe));ze(He)}},[Ae.current,Oe]),ot.createElement("div",{className:"my-codemirror-container"},ot.createElement("textarea",{ref:Ae}))}},35567:function(dn,pn,at){"use strict";at.d(pn,{Z:function(){return Mr}});var ot=at(67294),_t=at(4631),ae=at.n(_t),Ge=at(91033),Ie=at(71749),me=at(57341),de=at(82801),Ee=at(88386),we=at(49047),be=at(80785),Te=at(65226),ve=({value:nn="",className:on,showTextOnly:Kt,showLines:hn,style:qn={}})=>{const tr=(0,ot.useMemo)(()=>"",[nn]);return ot.createElement(ot.Fragment,null,ot.createElement("div",{dangerouslySetInnerHTML:{__html:tr}}))},xe=Object.defineProperty,fe=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,le=(nn,on,Kt)=>on in nn?xe(nn,on,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):nn[on]=Kt,ue=(nn,on)=>{for(var Kt in on||(on={}))oe.call(on,Kt)&&le(nn,Kt,on[Kt]);if(ee)for(var Kt of ee(on))ie.call(on,Kt)&&le(nn,Kt,on[Kt]);return nn},pe=(nn,on)=>fe(nn,z(on));let Se=[{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\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",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 Le({onActionCallback:nn,title:on,icon:Kt,actionName:hn,className:qn="",children:tr}){function ur(){nn(hn)}return ot.createElement("a",{title:on,className:qn,onClick:ur},ot.createElement("i",{className:`${Kt}`}),tr)}var De=({watch:nn,showNullButton:on,showNullProgramButton:Kt,onActionCallback:hn,fullScreen:qn,insertTemp:tr,hidetoolBar:ur,extraUse:Qt})=>{const Cn=[...Se,{title:`${nn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${nn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ot.createElement("ul",{className:"markdown-toolbar-container"},!ur&&Cn.map((dr,Ar)=>ot.createElement("li",{key:Ar},dr.actionName?ot.createElement(Le,pe(ue({},dr),{onActionCallback:hn})):ot.createElement("span",{className:"v-line"}))),on?ot.createElement("li",null,ot.createElement(Le,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:hn},ot.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Kt?ot.createElement(ot.Fragment,null,ot.createElement("li",null,ot.createElement(Le,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:hn},ot.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),ot.createElement("li",null,ot.createElement(Le,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:hn},ot.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,tr&&ot.createElement("li",null,ot.createElement(Le,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${tr}`,onActionCallback:hn},ot.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Qt&&ot.createElement("li",null,Qt),ot.createElement("li",{className:"btn-full-screen"},ot.createElement(Le,{icon:`${qn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:qn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:hn})))},Fe=at(76621),Ae=at(91773),Oe=at(28802),ze=at(85804),He=Object.defineProperty,Ye=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,gt=(nn,on,Kt)=>on in nn?He(nn,on,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):nn[on]=Kt,Et=(nn,on)=>{for(var Kt in on||(on={}))st.call(on,Kt)&>(nn,Kt,on[Kt]);if(Ue)for(var Kt of Ue(on))dt.call(on,Kt)&>(nn,Kt,on[Kt]);return nn},Ke=(nn,on)=>Ye(nn,We(on));const et={labelCol:{span:4},wrapperCol:{span:20}};var $e=({callback:nn,onCancel:on})=>{function Kt(hn){nn(hn)}return ot.createElement(Ae.default,Ke(Et({},et),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Kt,style:{width:500}}),ot.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ot.createElement(Oe.default,null)),ot.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ot.createElement(Oe.default,null)),ot.createElement("div",{className:"flex-container flex-end"},ot.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ot.createElement(ze.ZP,{type:"ghost",onClick:on},"\u53D6\u6D88")))},vt=at(57444),wt=at(70859),ht=at(62844),pt=at(71230),ct=at(63205),Ct=at(67294),xt=({callback:nn,onCancel:on})=>{const Kt=document.createElement("canvas"),hn=Kt.getContext("2d");Kt.width=1e3,Kt.height=800,hn.fillStyle="#ffffff",hn.fillRect(0,0,Kt.width,Kt.height);const qn=Kt.toDataURL("image/png");return Ct.createElement(ht.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ct.createElement(pt.Z,{style:{height:"100vh"}},Ct.createElement(ct.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:qn,visible:!0,title:String(Date.now())},onOk:tr=>{nn({src:tr.url})},onClose:on})))},yt=at(23495);function Tt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Tt,go.CommandHandler),Tt.prototype.canAlignSelection=function(){var nn=this.diagram;return!(nn===null||nn.isReadOnly||nn.isModelReadOnly||nn.selection.count<2)},Tt.prototype.alignLeft=function(){var nn=this.diagram;nn.startTransaction("aligning left");var on=1/0;nn.selection.each(function(Kt){Kt instanceof go.Link||(on=Math.min(Kt.position.x,on))}),nn.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(on,Kt.position.y))}),nn.commitTransaction("aligning left")},Tt.prototype.alignRight=function(){var nn=this.diagram;nn.startTransaction("aligning right");var on=-1/0;nn.selection.each(function(Kt){if(!(Kt instanceof go.Link)){var hn=Kt.actualBounds.x+Kt.actualBounds.width;on=Math.max(hn,on)}}),nn.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(on-Kt.actualBounds.width,Kt.position.y))}),nn.commitTransaction("aligning right")},Tt.prototype.alignTop=function(){var nn=this.diagram;nn.startTransaction("alignTop");var on=1/0;nn.selection.each(function(Kt){Kt instanceof go.Link||(on=Math.min(Kt.position.y,on))}),nn.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(Kt.position.x,on))}),nn.commitTransaction("alignTop")},Tt.prototype.alignBottom=function(){var nn=this.diagram;nn.startTransaction("aligning bottom");var on=-1/0;nn.selection.each(function(Kt){if(!(Kt instanceof go.Link)){var hn=Kt.actualBounds.y+Kt.actualBounds.height;on=Math.max(hn,on)}}),nn.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(Kt.actualBounds.x,on-Kt.actualBounds.height))}),nn.commitTransaction("aligning bottom")},Tt.prototype.alignCenterX=function(){var nn=this.diagram,on=nn.selection.first();if(on){nn.startTransaction("aligning Center X");var Kt=on.actualBounds.x+on.actualBounds.width/2;nn.selection.each(function(hn){hn instanceof go.Link||hn.move(new go.Point(Kt-hn.actualBounds.width/2,hn.actualBounds.y))}),nn.commitTransaction("aligning Center X")}},Tt.prototype.alignCenterY=function(){var nn=this.diagram,on=nn.selection.first();if(on){nn.startTransaction("aligning Center Y");var Kt=on.actualBounds.y+on.actualBounds.height/2;nn.selection.each(function(hn){hn instanceof go.Link||hn.move(new go.Point(hn.actualBounds.x,Kt-hn.actualBounds.height/2))}),nn.commitTransaction("aligning Center Y")}},Tt.prototype.alignColumn=function(nn){var on=this.diagram;on.startTransaction("align Column"),nn===void 0&&(nn=0),nn=parseFloat(nn);var Kt=new Array;on.selection.each(function(Qt){Qt instanceof go.Link||Kt.push(Qt)});for(var hn=0;hn0){for(var Qt=tr.elt(ur-1);Qt!==null&&Qt.isTreeExpanded&&!Qt.isTreeLeaf;){var Cn=this._sortTreeChildrenByY(Qt);Qt=Cn.last()}Qt!==null&&nn.select(Qt)}else nn.select(qn)}}else if(Kt.key==="Down")if(on.isTreeExpanded&&!on.isTreeLeaf){var hn=this._sortTreeChildrenByY(on).first();hn!==null&&nn.select(hn)}else for(;on!==null;){var qn=on.findTreeParentNode();if(qn===null)break;var tr=this._sortTreeChildrenByY(qn),ur=tr.indexOf(on);if(urtr.y?1:qn.xtr.x?1:0}),on},Tt.prototype.copyToClipboard=function(nn){go.CommandHandler.prototype.copyToClipboard.call(this,nn),this._lastPasteOffset.set(this.pasteOffset)},Tt.prototype.pasteFromClipboard=function(){var nn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(nn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),nn},Object.defineProperty(Tt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(nn){if(nn!=="move"&&nn!=="select"&&nn!=="scroll"&&nn!=="tree"&&nn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+nn);this._arrowKeyBehavior=nn}}),Object.defineProperty(Tt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(nn){if(!(nn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+nn);this._pasteOffset.set(nn)}});var St=Tt,nt=at(18023),Qe=at(15746),Ce=at(33170),Ne={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Je=at(52262),rt=at(67294),Be=(nn,on,Kt)=>new Promise((hn,qn)=>{var tr=Cn=>{try{Qt(Kt.next(Cn))}catch(dr){qn(dr)}},ur=Cn=>{try{Qt(Kt.throw(Cn))}catch(dr){qn(dr)}},Qt=Cn=>Cn.done?hn(Cn.value):Promise.resolve(Cn.value).then(tr,ur);Qt((Kt=Kt.apply(nn,on)).next())});function _e({onCancel:nn,callback:on}){let Kt=(0,ot.useRef)(),hn=(0,ot.useRef)(),qn=(0,ot.useRef)(),tr=(0,ot.useRef)(!1);const ur=(0,ot.useRef)(!1),[Qt,Cn]=(0,ot.useState)(0);function dr(){const _n=yt.bx.make,Zt={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"};Kt.current=new yt.S0(hn.current,{padding:20,grid:_n(yt.s_,"Grid",_n(yt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),_n(yt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:tn=>{var Vr=tn.diagram.commandHandler.addTopLevelParts(tn.diagram.selection,!0);Vr||tn.diagram.currentTool.doCancel()},commandHandler:_n(St),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:tn=>{var Vr=tn.subject;Vr.location=Vr.location.copy().snapToGridPoint(tn.diagram.grid.gridOrigin,tn.diagram.grid.gridCellSize),setTimeout(()=>{tn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:tn=>{var Vr=tn.subject;setTimeout(()=>{tn.diagram.commandHandler.editTextBlock()})},LinkRelinked:tn=>{var Vr=tn.parameter.part;Vr.invalidateConnectedLinks();var Ti=tn.subject;tn.diagram.toolManager.linkingTool.isForwards?Ti.toNode.invalidateConnectedLinks():Ti.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Kt.current.nodeTemplate=_n(yt.NB,"Auto",{locationSpot:yt.z6.Center,locationObjectName:"SHAPE",desiredSize:new yt.$u(120,60),minSize:new yt.$u(40,40),resizable:!0,resizeCellSize:new yt.$u(10,10),rotatable:!0},new yt.KX("location","loc",yt.E9.parse).makeTwoWay(yt.E9.stringify),new yt.KX("desiredSize","size",yt.$u.parse).makeTwoWay(yt.$u.stringify),_n(yt.bn,{name:"SHAPE",fill:Zt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:yt.z6.AllSides,toSpot:yt.z6.AllSides},new yt.KX("figure"),new yt.KX("fill"),new yt.KX("stroke","borderColor"),new yt.KX("strokeWidth","thickness"),new yt.KX("strokeDashArray","dash")),_n(yt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),_n(yt.al,{margin:1,textAlign:"center",overflow:yt.al.OverflowEllipsis,editable:!0},new yt.KX("text").makeTwoWay(),new yt.KX("stroke","color"))),Kt.current.nodeTemplate.toolTip=_n("ToolTip",_n(yt.s_,"Vertical",{maxSize:new yt.$u(200,NaN)},_n(yt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new yt.KX("text")),_n(yt.al,{font:"10pt sans-serif",textAlign:"center"},new yt.KX("text","details"))));function ir(tn,Vr){var Ti=(jr,Fo)=>{jr.handled=!0,jr.diagram.model.commit(Oi=>{var Ri=Fo.part.adornedPart,Li=new yt.E9().setRectSpot(Ri.actualBounds,tn);Li.subtract(Ri.location),Li.scale(2,2),Li.x+=Math.sign(Li.x)*130,Li.y+=Math.sign(Li.y)*130,Li.add(Ri.location),Li.snapToGridPoint(jr.diagram.grid.gridOrigin,jr.diagram.grid.gridCellSize);var bi=Oi.copyNodeData(Ri.data);Oi.setGroupKeyForNodeData(bi,Oi.getGroupKeyForNodeData(Ri.data)),Oi.addNodeData(bi);var uo={from:Ri.key,to:Oi.getKeyForNodeData(bi)};Oi.addLinkData(uo);var Ln=jr.diagram.findNodeForData(bi);Ln.location=Li,jr.diagram.select(Ln),setTimeout(()=>{jr.diagram.commandHandler.editTextBlock()},20)})};return _n(yt.bn,{figure:Vr,alignment:tn,alignmentFocus:tn.opposite(),width:tn.equals(yt.z6.Top)||tn.equals(yt.z6.Bottom)?25:18,height:tn.equals(yt.z6.Top)||tn.equals(yt.z6.Bottom)?18:25,fill:"orange",stroke:Zt.white,strokeWidth:4,mouseEnter:(jr,Fo)=>Fo.fill="dodgerblue",mouseLeave:(jr,Fo)=>Fo.fill="orange",isActionable:!0,click:Ti,contextClick:Ti})}function Nr(tn){return _n(yt.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:(Vr,Ti)=>Ti.fill="dodgerblue",mouseLeave:(Vr,Ti)=>Ti.fill="orange",click:(Vr,Ti)=>{Vr.diagram.commandHandler.showContextMenu(Ti.part.adornedPart)}},tn||{})}Kt.current.nodeTemplate.selectionAdornmentTemplate=_n(yt.uz,"Spot",_n(yt.Vm,{padding:10}),ir(yt.z6.Top,"TriangleUp"),ir(yt.z6.Left,"TriangleLeft"),ir(yt.z6.Right,"TriangleRight"),ir(yt.z6.Bottom,"TriangleDown"),Nr({alignment:new yt.z6(.75,0)}));function si(tn,Vr){return(Ti,jr)=>{Ti.handled=!0,Ti.diagram.model.commit(Fo=>{Fo.set(jr.part.adornedPart.data,tn,Vr)})}}function Tn(tn,Vr){return Vr||(Vr="color"),_n(yt.bn,{width:16,height:16,stroke:"lightgray",fill:tn,margin:1,background:"transparent",mouseEnter:(Ti,jr)=>jr.stroke="dodgerblue",mouseLeave:(Ti,jr)=>jr.stroke="lightgray",click:si(Vr,tn),contextClick:si(Vr,tn)})}function vr(){return[_n("ContextMenuButton",_n(yt.s_,"Horizontal",Tn(Zt.white,"fill"),Tn(Zt.beige,"fill"),Tn(Zt.extralightblue,"fill"),Tn(Zt.extralightred,"fill"))),_n("ContextMenuButton",_n(yt.s_,"Horizontal",Tn(Zt.lightgray,"fill"),Tn(Zt.lightgreen,"fill"),Tn(Zt.lightblue,"fill"),Tn(Zt.lightred,"fill")))]}function yi(){return[_n("ContextMenuButton",_n(yt.s_,"Horizontal",Tn(Zt.black),Tn(Zt.green),Tn(Zt.blue),Tn(Zt.red))),_n("ContextMenuButton",_n(yt.s_,"Horizontal",Tn(Zt.white),Tn(Zt.magenta),Tn(Zt.purple),Tn(Zt.orange)))]}function ko(tn,Vr){return Vr||(Vr="thickness"),_n(yt.bn,"LineH",{width:16,height:16,strokeWidth:tn,margin:1,background:"transparent",mouseEnter:(Ti,jr)=>jr.background="dodgerblue",mouseLeave:(Ti,jr)=>jr.background="transparent",click:si(Vr,tn),contextClick:si(Vr,tn)})}function zi(tn,Vr){return Vr||(Vr="dash"),_n(yt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:tn,margin:1,background:"transparent",mouseEnter:(Ti,jr)=>jr.background="dodgerblue",mouseLeave:(Ti,jr)=>jr.background="transparent",click:si(Vr,tn),contextClick:si(Vr,tn)})}function xr(){return[_n("ContextMenuButton",_n(yt.s_,"Horizontal",ko(1),ko(2),ko(3),ko(4))),_n("ContextMenuButton",_n(yt.s_,"Horizontal",zi(null),zi([2,4]),zi([4,4])))]}function gr(tn,Vr){return Vr||(Vr="figure"),_n(yt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:tn,margin:1,background:"transparent",mouseEnter:(Ti,jr)=>jr.fill="dodgerblue",mouseLeave:(Ti,jr)=>jr.fill="lightgray",click:si(Vr,tn),contextClick:si(Vr,tn)})}Kt.current.nodeTemplate.contextMenu=_n("ContextMenu",_n("ContextMenuButton",_n(yt.s_,"Horizontal",gr("Rectangle"),gr("RoundedRectangle"),gr("Ellipse"),gr("Diamond"))),_n("ContextMenuButton",_n(yt.s_,"Horizontal",gr("Parallelogram2"),gr("ManualOperation"),gr("Procedure"),gr("Cylinder1"))),_n("ContextMenuButton",_n(yt.s_,"Horizontal",gr("Terminator"),gr("CreateRequest"),gr("Document"),gr("TriangleDown"))),vr(),yi(),xr()),Kt.current.groupTemplate=_n(yt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:yt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(tn,Vr)=>{var Ti=Vr.addMembers(Vr.diagram.selection,!0);Ti||Vr.diagram.currentTool.doCancel()},avoidable:!1},new yt.KX("location","loc",yt.E9.parse).makeTwoWay(yt.E9.stringify),_n(yt.s_,"Auto",{name:"BODY"},_n(yt.bn,{parameter1:10,fill:Zt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:yt.z6.AllSides,toSpot:yt.z6.AllSides},new yt.KX("fill"),new yt.KX("stroke","color"),new yt.KX("strokeWidth","thickness"),new yt.KX("strokeDashArray","dash")),_n(yt.Vm,{background:"transparent",margin:20})),_n(yt.al,{alignment:yt.z6.Top,alignmentFocus:yt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new yt.KX("text"),new yt.KX("stroke","color"))),Kt.current.groupTemplate.selectionAdornmentTemplate=_n(yt.uz,"Spot",_n(yt.s_,"Auto",_n(yt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),_n(yt.Vm,{margin:1.5})),Nr({alignment:yt.z6.TopRight,alignmentFocus:yt.z6.BottomRight})),Kt.current.groupTemplate.contextMenu=_n("ContextMenu",vr(),yi(),xr()),Kt.current.linkTemplate=_n(yt.rU,{layerName:"Foreground",routing:yt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new yt.KX("fromSpot","fromSpot",yt.z6.parse),new yt.KX("toSpot","toSpot",yt.z6.parse),new yt.KX("fromShortLength","dir",tn=>tn>=1?10:0),new yt.KX("toShortLength","dir",tn=>tn>=1?10:0),new yt.KX("points").makeTwoWay(),_n(yt.bn,{strokeWidth:2},new yt.KX("stroke","color"),new yt.KX("strokeWidth","thickness"),new yt.KX("strokeDashArray","dash")),_n(yt.bn,{segmentIndex:0,segmentOffset:new yt.E9(15,0),segmentOrientation:yt.rU.OrientAlong,alignmentFocus:yt.z6.Right,figure:"circle",width:10,strokeWidth:0},new yt.KX("fill","color"),new yt.KX("visible","dir",tn=>tn===1)),_n(yt.bn,{segmentIndex:-1,segmentOffset:new yt.E9(-10,6),segmentOrientation:yt.rU.OrientPlus90,alignmentFocus:yt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new yt.KX("fill","color"),new yt.KX("visible","dir",tn=>tn>=1),new yt.KX("width","thickness",tn=>7+3*tn),new yt.KX("height","thickness",tn=>7+3*tn),new yt.KX("segmentOffset","thickness",tn=>new yt.E9(-15,4+1.5*tn))),_n(yt.bn,{segmentIndex:0,segmentOffset:new yt.E9(15,-6),segmentOrientation:yt.rU.OrientMinus90,alignmentFocus:yt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new yt.KX("fill","color"),new yt.KX("visible","dir",tn=>tn===2),new yt.KX("width","thickness",tn=>7+3*tn),new yt.KX("height","thickness",tn=>7+3*tn),new yt.KX("segmentOffset","thickness",tn=>new yt.E9(-15,4+1.5*tn))),_n(yt.al,{alignmentFocus:new yt.z6(0,1,-4,0),editable:!0},new yt.KX("text").makeTwoWay(),new yt.KX("stroke","color"))),Kt.current.linkTemplate.selectionAdornmentTemplate=_n(yt.uz,_n(yt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Lr(2)},new yt.KX("pathPattern","thickness",Lr)),Nr({alignmentFocus:new yt.z6(0,0,-6,-4)}));function Lr(tn){return _n(yt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(tn+4).toString()+" H3"})}function _i(tn){var Vr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return tn===0?Vr="M0 0 M16 16 M0 8 L16 8":tn===2&&(Vr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),_n(yt.bn,{geometryString:Vr,margin:2,background:"transparent",mouseEnter:(Ti,jr)=>jr.background="dodgerblue",mouseLeave:(Ti,jr)=>jr.background="transparent",click:si("dir",tn),contextClick:si("dir",tn)})}function oo(tn){var Vr=(Ti,jr)=>{Ti.handled=!0,Ti.diagram.model.commit(Fo=>{var Oi=jr.part.adornedPart;Fo.set(Oi.data,tn?"toSpot":"fromSpot",yt.z6.stringify(yt.z6.AllSides)),(tn?Oi.toNode:Oi.fromNode).invalidateConnectedLinks()})};return _n(yt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ti,jr)=>jr.background="dodgerblue",mouseLeave:(Ti,jr)=>jr.background="transparent",click:Vr,contextClick:Vr})}function Xn(tn,Vr){var Ti=0,jr=yt.z6.RightSide;tn.equals(yt.z6.Top)?(Ti=270,jr=yt.z6.TopSide):tn.equals(yt.z6.Left)?(Ti=180,jr=yt.z6.LeftSide):tn.equals(yt.z6.Bottom)&&(Ti=90,jr=yt.z6.BottomSide),Vr||(Ti-=180);var Fo=(Oi,Ri)=>{Oi.handled=!0,Oi.diagram.model.commit(Li=>{var bi=Ri.part.adornedPart;Li.set(bi.data,Vr?"toSpot":"fromSpot",yt.z6.stringify(jr)),(Vr?bi.toNode:bi.fromNode).invalidateConnectedLinks()})};return _n(yt.bn,{alignment:tn,alignmentFocus:tn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ti,background:"transparent",mouseEnter:(Oi,Ri)=>Ri.background="dodgerblue",mouseLeave:(Oi,Ri)=>Ri.background="transparent",click:Fo,contextClick:Fo})}Kt.current.linkTemplate.contextMenu=_n("ContextMenu",yi(),xr(),_n("ContextMenuButton",_n(yt.s_,"Horizontal",_i(0),_i(1),_i(2))),_n("ContextMenuButton",_n(yt.s_,"Horizontal",_n(yt.s_,"Spot",oo(!1),Xn(yt.z6.Top,!1),Xn(yt.z6.Left,!1),Xn(yt.z6.Right,!1),Xn(yt.z6.Bottom,!1)),_n(yt.s_,"Spot",{margin:new yt.Zt(0,0,0,2)},oo(!0),Xn(yt.z6.Top,!0),Xn(yt.z6.Left,!0),Xn(yt.z6.Right,!0),Xn(yt.z6.Bottom,!0)))));const Ir=`{ "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 _s=["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 Aa(tn){return console.log("shapeName:",tn),_s.indexOf(tn)>=0}var ga=new yt.YI(qn.current,{maxSelectionCount:1,linkTemplate:_n(yt.rU,{locationSpot:yt.z6.Center,selectionAdornmentTemplate:_n(yt.uz,"Link",{locationSpot:yt.z6.Center},_n(yt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),_n(yt.bn,{toArrow:"Standard",stroke:null}))},{routing:yt.rU.AvoidsNodes,curve:yt.rU.JumpOver,corner:5,toShortLength:4},new yt.KX("points"),_n(yt.bn,{isPanelMain:!0,strokeWidth:2}),_n(yt.bn,{toArrow:"Standard",stroke:null})),model:new yt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...yt.bn.getFigureGenerators().toArray().map(tn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:tn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Kt.current.addDiagramListener("TextEdited",function(tn){var Vr;const Ti=tn.subject.part;var jr=(Vr=document.activeElement)==null?void 0:Vr.value;typeof jr=="string"&&jr.trim()===""&&Kt.current.model.commit(function(Fo){Fo.set(Ti.data,"text","\u672A\u547D\u540D"),Kt.current.commandHandler.stopCommand()},"increment")}),ga.nodeTemplate=_n(yt.NB,"Auto",{locationSpot:yt.z6.Center},new yt.KX("location","location",yt.E9.parse).makeTwoWay(yt.E9.stringify),_n(yt.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 yt.KX("stroke").makeTwoWay(),new yt.KX("fill").makeTwoWay(),new yt.KX("figure")),_n(yt.al,{margin:new yt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new yt.$u(16,16),maxSize:new yt.$u(10,NaN),textAlign:"center",editable:!0},new yt.KX("key").makeTwoWay())),setTimeout(()=>{Kt.current.grid=_n(yt.s_,"Grid",_n(yt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),_n(yt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Kt.current.grid.visible=!0,Kt.current.grid.gridCellStroke="darkgray",Kt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Kt.current,Kt.current}const Ar=()=>Be(this,null,function*(){var _n,Zt=Kt.current.makeImage();const ir=yield(0,Ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Zt.src,file_data:JSON.stringify({login:(_n=(0,Je.eY)())==null?void 0:_n.login,data:JSON.parse(Kt.current.model.toJson())})}});on({src:ir.url})});return(0,ot.useEffect)(()=>(setTimeout(()=>{dr()},500),Cn(Qt+1),()=>{Kt.current=null}),[]),rt.createElement("div",{ref:ur,className:"body-overflow-initial"},rt.createElement(ht.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Qt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:rt.createElement(pt.Z,null,rt.createElement(Qe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),rt.createElement(Qe.Z,{onClick:()=>{var _n,Zt,ir=Kt.current.selection.first();if(tr.current=!tr.current,document.activeElement&&ir){let Nr=(Zt=(_n=document.activeElement)==null?void 0:_n.value)==null?void 0:Zt.trim();typeof Nr=="string"&&Kt.current.model.commit(function(si){si.set(ir.data,"text",Nr||"\u672A\u547D\u540D"),Kt.current.commandHandler.stopCommand()},"increment")}Cn(Qt+1)}},rt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:nn},rt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:tr.current?"none":"block"},className:Ne.flowChartWrp},rt.createElement("div",{style:{display:"flex",height:"100%"}},rt.createElement("div",{style:{width:"300px",height:"100%"}},rt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),rt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ne.myPaletteDiv,ref:qn})),rt.createElement("div",{style:{flex:1,position:"relative"}},rt.createElement("div",{ref:hn,style:{height:"80vh"}}))),rt.createElement("div",{className:"tr"},rt.createElement(ze.ZP,{size:"large",onClick:Ar,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Xe=_e,lt=at(98813),Pt=at(37720);const kt=lt.ZP.Group,zt={margin:"0 8px"};var jt=({callback:nn,onCancel:on})=>{function Kt(hn){nn(hn)}return ot.createElement(Ae.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Kt},ot.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ot.createElement("span",{style:zt},"\u5355\u5143\u683C\u6570\uFF1A"),ot.createElement("span",{style:zt},"\u884C\u6570"),ot.createElement(Ae.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ot.createElement(Pt.Z,null)),ot.createElement("span",{style:zt},"\u5217\u6570"),ot.createElement(Ae.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ot.createElement(Pt.Z,null))),ot.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ot.createElement("span",{style:zt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ot.createElement(Ae.default.Item,{name:"align"},ot.createElement(kt,null,ot.createElement(lt.ZP,{value:"default"},ot.createElement("i",{className:"fa fa-align-justify"})),ot.createElement(lt.ZP,{value:"left"},ot.createElement("i",{className:"fa fa-align-left"})),ot.createElement(lt.ZP,{value:"center"},ot.createElement("i",{className:"fa fa-align-center"})),ot.createElement(lt.ZP,{value:"right"},ot.createElement("i",{className:"fa fa-align-right"}))))),ot.createElement("div",{className:"flex-container flex-end"},ot.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ot.createElement(ze.ZP,{type:"ghost",onClick:on},"\u53D6\u6D88")))},Ht=at(59637),ln=at(61016),an=at.n(ln),$t=(0,ot.forwardRef)(({use3d:nn,width:on,height:Kt,callback:hn,showSaveButton:qn},tr)=>{const ur=(0,ot.useRef)(),Qt=(0,ot.useRef)(),[Cn,dr]=(0,ot.useState)(!1),Ar=(0,ot.useRef)({id:ur,appName:"graphing",width:on||1e3,height:Kt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ot.useEffect)(()=>{Qt.current=new(an())(Ar.current,!0),window.onload=function(){Qt.current.inject("applet_container")}},[]);const _n=()=>{var Zt=window.ggbApplet.getPNGBase64(1,!0,72);return hn&&hn(Zt),Zt};return(0,ot.useEffect)(()=>{Ar.current.appName=Cn?"3D":"graphing",Qt.current.inject("applet_container")},[Cn]),(0,ot.useEffect)(()=>{dr(nn)},[nn]),(0,ot.useImperativeHandle)(tr,()=>({getImgData:_n})),ot.createElement(ot.Fragment,null,ot.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ur}),ot.createElement(pt.Z,{align:"middle"},ot.createElement(Qe.Z,{flex:1},ot.createElement(Ht.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cn,onChange:Zt=>dr(Zt)})),ot.createElement(Qe.Z,null,ot.createElement(ze.ZP,{size:"large",onClick:_n,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),On=at(36527),un=at(2453);const mn="link",In="upload-image",Sn="add-flowchart",Dn="draw-image",fr="add-flowchart",_r="code-block",mr="add-table",wi="------------",no={default:wi,left:`:${wi}`,center:`:${wi}:`,right:`${wi}:`};var ro=at(99914);function io(){}let Ji=0;const lo=1e4,Fi="\u2581",Jr="@\u2581\u2581@",bn="@\u2581@",Ze=` **\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`,vn=["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 Mn(nn){return/^\d+$/.test(nn)?`${nn}px`:nn}const zn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Un={[zn+"-B"]:"bold",[zn+"-I"]:"italic"},$n={[mn]:"\u6DFB\u52A0\u94FE\u63A5",[_r]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[In]:"\u6DFB\u52A0\u56FE\u7247",[Dn]:"\u6DFB\u52A0\u753B\u56FE",[Sn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[mr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Mr=({defaultValue:nn="",onChange:on,width:Kt="100%",height:hn=400,miniToolbar:qn=!1,isFocus:tr=!1,watch:ur,insertTemp:Qt,mode:Cn="markdown",id:dr="markdown-editor-id",showResizeBar:Ar=!1,noStorage:_n=!1,showNullButton:Zt=!1,showNullProgramButton:ir=!1,hidetoolBar:Nr=!1,fullScreen:si=!1,onBlur:Tn,onCMBeforeChange:vr,onFullScreen:yi,className:ko="",disablePaste:zi=!1,disabled:xr=!1,disabledFill:gr=!1,placeholder:Lr="",values:_i="",extraUse:oo})=>{const[Xn,Ir]=(0,ot.useState)(null),[_s,Aa]=(0,ot.useState)(nn),[ga,tn]=(0,ot.useState)(ur),[Vr,Ti]=(0,ot.useState)(si),[jr,Fo]=(0,ot.useState)(""),[Oi,Ri]=(0,ot.useState)(0),[Li,bi]=(0,ot.useState)(hn),[uo,Ln]=(0,ot.useState)(!1),[la,Nn]=(0,ot.useState)(0),[vo,bs]=(0,ot.useState)(0),Xt=(0,ot.useRef)(),Jt=(0,ot.useRef)(),cn=(0,ot.useRef)(),Fn=(0,ot.useRef)();(0,ot.useEffect)(()=>{const zr=window.scrollY||window.pageYOffset;Aa(_i),Xn==null||Xn.setValue(_i),window.scrollTo(0,zr)},[_i]),(0,ot.useEffect)(()=>{yi==null||yi(Vr)},[Vr]),(0,ot.useEffect)(()=>{if(Xt.current){let zr=function(ti,jn){var Gi;if(zi){jn.preventDefault();return}const So=jn.clipboardData;if(So){const ta=So.types.toString(),Oo=So.items;if(ta==="Files"||So.types.indexOf("Files")>-1){if(jn.preventDefault(),Cn=="stex")return;try{let Wo=Oo[1];((Gi=Oo[0])==null?void 0:Gi.kind)==="file"&&(Wo=Oo[0]);const na=Wo.getAsFile(),Ya=na.name.split(".").pop();(0,wt.I)(na,Ia=>{var Ol,Hl,rn;Ia.id?((Ol=na==null?void 0:na.type)==null?void 0:Ol.indexOf("image"))>-1?Tr.replaceSelection(``):((Hl=na==null?void 0:na.type)==null?void 0:Hl.indexOf("video"))>-1?Tr.replaceSelection(``):((rn=na==null?void 0:na.type)==null?void 0:rn.indexOf("pdf"))>-1?Tr.replaceSelection(`${na.name}`):vn.includes(Ya)?Tr.replaceSelection(`${na.name}`):Tr.replaceSelection(`[${na.name}](/api/attachments/${Ia.id}?type=${Ia.content_type})`):(Ia==null?void 0:Ia.status)===401&&(document.location.href="/user/login")})}catch(Wo){un.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Tr=ae().fromTextArea(Xt.current,{mode:Cn,lineNumbers:!qn,lineWrapping:!0,value:nn,autoCloseTags:!0,autoCloseBrackets:!0});return Tr.on("keyup",function(ti,jn){jn.keyCode===8&&(ti.getValue()==""?Tr.setOption("placeholder",Lr):Tr.setOption("placeholder",null))}),Tr.on("keydown",function(ti,jn){if(jn.keyCode===8){var Gi=li(ti);Gi&&jn.preventDefault()}}),tr&&Tr.focus(),Tr.on("paste",zr),xr&&Tr.on("beforeChange",function(ti,jn){(jn.origin==="paste"||jn.origin==="+input")&&jn.cancel()}),Ir(Tr),()=>{Tr.off("paste",zr)}}},[]);const pr=(0,ot.useCallback)(()=>{if(Jt.current)try{}catch(zr){console.log(zr,"---- to set md editor body height")}},[Li,Jt,Vr]);(0,ot.useEffect)(()=>{function zr(){let Tr=new Ge.Z(ti=>{for(let jn of ti)(jn.target.offsetHeight>0||jn.target.offsetWidth>0)&&(pr(),Xn.setSize("100%","100%"),Xn.refresh())});return Tr.observe(Xt.current.parentElement),Tr}if(Xn){const Tr=zr();return()=>{var ti,jn;(ti=Xt.current)!=null&&ti.parentElement&&Tr.unobserve((jn=Xt.current)==null?void 0:jn.parentElement)}}},[Xn,pr]),(0,ot.useEffect)(()=>{if(Xn){let zr=[];for(const[Tr,ti]of Object.entries(Un)){let jn={[Tr]:()=>{Zr(ti)}};zr.push(jn),Xn.addKeyMap(jn)}return()=>{for(let Tr of zr)Xn.removeKeyMap(Tr)}}},[Xn]),(0,ot.useEffect)(()=>{si!==Vr&&Ti(si)},[si]),(0,ro.Z)(()=>{if(!_n&&Oi>0){let zr=new Date().getTime(),Tr=window.sessionStorage.getItem(dr);zr>=Oi+lo&&(!Tr||Tr!==_s)&&(window.sessionStorage.setItem(dr,_s),Ln(!0))}},lo),(0,ot.useEffect)(()=>{tn(ur)},[Xn,ur]),(0,ot.useEffect)(()=>{Xn&&tr&&Xn.focus()},[Xn,tr]),(0,ot.useEffect)(()=>{if(ga&&Xn){let zr=function(ti){let jn=ti.target;if(Fn.current){let Gi=jn.scrollTop/jn.scrollHeight;Fn.current.scrollTop=Fn.current.scrollHeight*Gi}};const Tr=Xn.getScrollerElement();return Tr.addEventListener("scroll",zr),()=>{Tr.removeEventListener("scroll",zr)}}},[Xn,ga]),(0,ot.useEffect)(()=>{if(Xn&&vr){let zr=function(Tr,ti){vr(Tr,ti)};return Xn.on("beforeChange",zr),()=>{Xn.off("beforeChange",zr)}}},[Xn,vr]),(0,ot.useEffect)(()=>{if(Xn&&Tn){let zr=function(){Tn(Xn.getValue())};return Xn.on("blur",zr),()=>{Xn.off("blur",zr)}}},[Xn,Tn]);function li(zr,Tr){var ti=zr.getDoc(),jn=ti.getCursor(),Gi=ti.getLine(jn.line),So=Gi.charAt(jn.ch-1),ta=Gi.lastIndexOf("@\u2581@",jn.ch),Oo=Gi.lastIndexOf("@\u2581\u2581@",jn.ch),Wo=ta>Oo?ta:Oo,na=ta>Oo?3:4;if(Jr.indexOf(So)===-1)return null;if(console.log("change1:",Tr,zr,Gi,jn,Wo,ta,Oo,So),Wo>=0&&jn.ch-Wo<5){var Ya=Wo+na;return ti.replaceRange("",{line:jn.line,ch:Wo},{line:jn.line,ch:Ya}),{line:jn.line,ch:Ya}}return null}(0,ot.useEffect)(()=>{if(Xn){let zr=function(Tr,ti){const jn=Tr.getValue();Aa(jn),Ri(new Date().getTime()),Tr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),on&&(ir?on(jn,Da(jn)):on(jn))};return Xn.on("change",zr),()=>{Xn.off("change",zr)}}},[Xn,on]),(0,ot.useEffect)(()=>{if(Xn)if(nn==null)Xn.setValue(""),Aa("");else{const zr=window.scrollY||window.pageYOffset;nn!==Xn.getValue()&&(Xn.setValue(nn),Aa(nn),Xn.setCursor(xr?1:Xn.lineCount(),0),window.scrollTo(0,zr))}},[Xn,nn]);const Zr=(0,ot.useCallback)(zr=>{const Tr=Xn.getCursor(),ti=Xn.getSelection();let jn=ti.split(` `);switch(zr){case"bold":return Xn.replaceSelection("**"+ti+"**"),ti===""&&Xn.setCursor(Tr.line,Tr.ch+2),Xn.focus();case"italic":return Xn.replaceSelection("*"+ti+"*"),ti===""&&Xn.setCursor(Tr.line,Tr.ch+1),Xn.focus();case"code":return Xn.replaceSelection("`"+ti+"`"),ti===""&&Xn.setCursor(Tr.line,Tr.ch+1),Xn.focus();case"inline-latex":return Fo("inline-latex"),Xn.focus();case"latex":return Xn.replaceSelection("```latex\n"+ti+"\n```"),Xn.setCursor(Tr.line+1,ti.length+1),Xn.focus();case"line-break":return Xn.replaceSelection(`
`),Xn.focus();case"list-ul":return ti===""?Xn.replaceSelection("- "+ti):Xn.replaceSelection(jn.map(Gi=>Gi===""?"":`- ${Gi}`).join(` `)),Xn.focus();case"list-ol":return ti===""?Xn.replaceSelection("1. "+ti):Xn.replaceSelection(jn.map((Gi,So)=>Gi===""?"":`${So+1}. ${Gi}`).join(` `)),Xn.focus();case"add-null-ch":return ti===""&&Xn.setCursor(Tr.line,Tr.ch),Xn.replaceSelection(Fi),Xn.focus();case"add-signal":return ti===""&&Xn.setCursor(Tr.line,Tr.ch),Xn.replaceSelection(bn),Xn.focus();case"add-multiple":return ti===""&&Xn.setCursor(Tr.line,Tr.ch),Xn.replaceSelection(Jr),Xn.focus();case"inster-template-1":return ti===""&&Xn.setCursor(Tr.line,Tr.ch),Xn.replaceSelection(Ze),Xn.focus();case"eraser":return Xn.setValue(""),Xn.focus();case"trigger-watch":return tn(!ga),Xn.focus();case"trigger-full-screen":return Ti(!Vr),Xn.focus();case mn:Fo(mn);return;case _r:Fo(_r);return;case In:Fo(In);return;case Dn:Fo(Dn);return;case"maths-latex":Fo("maths-latex");return;case Sn:Fo(Sn);return;case mr:Fo(mr);return;default:throw new Error}},[Xn,ga,Vr]),Vn=(0,ot.useCallback)((zr,Tr)=>{var ti,jn,Gi,So,ta,Oo;switch(Fo(""),jr){case mn:const{title:Ol,link:Hl}=zr;return Xn.replaceSelection(`[${Ol}](${Hl})`),Xn.focus();case _r:const{language:rn,content:us}=zr;return Xn.replaceSelection(["```"+rn,us,"```"].join(` `)),Xn.focus();case"maths-latex":for(var Wo=atob(zr),na=new Uint8Array(Wo.length),Ya=0;Ya{mi.id?Xn.replaceSelection(`![,](/api/attachments/${mi.id}?type=${mi.content_type})`):(mi==null?void 0:mi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Xn.replaceSelection("`$$"+zr+"$$`");break;case In:case Dn:case fr:const{src:ol,alt:au}=zr,co=Tr,Sl=(Gi=(jn=(ti=co==null?void 0:co.name)==null?void 0:ti.split("."))==null?void 0:jn.pop)==null?void 0:Gi.call(jn);return((So=co==null?void 0:co.type)==null?void 0:So.indexOf("image"))>-1||!(co!=null&&co.type)?co!=null&&co.align||co!=null&&co.width?Xn.replaceSelection(`

${au||

`):Xn.replaceSelection(`${au||`):((ta=co==null?void 0:co.type)==null?void 0:ta.indexOf("video"))>-1?Xn.replaceSelection(``):((Oo=co==null?void 0:co.type)==null?void 0:Oo.indexOf("pdf"))>-1?Xn.replaceSelection(`${co.name}`):vn.includes(Sl)?Xn.replaceSelection(`${co.name}`):Xn.replaceSelection(`[${co.name}](${ol})`),Xn.focus();case mr:const{row:jl,col:Kl,align:xo}=zr;let ma=` `;for(let mi=0;mi{switch(jr){case mn:return ot.createElement($e,{callback:Vn,onCancel:yo});case _r:return ot.createElement(vt.Z,{callback:Vn,onCancel:yo});case In:return ot.createElement(wt.Z,{callback:Vn,onCancel:yo});case Sn:return ot.createElement(Xe,{callback:Vn,onCancel:yo});case mr:return ot.createElement(jt,{callback:Vn,onCancel:yo});case"maths-latex":return ot.createElement($t,{showSaveButton:!0,callback:Vn});case"inline-latex":return ot.createElement(On.Z,{showSaveButton:!0,callback:Vn});default:return null}},[jr]);function yo(){Fo("")}(0,ot.useEffect)(()=>{if(cn.current){let zr=function(ta){Gi=!0,So=ta.pageY},Tr=function(){Gi=!1},ti=function(ta){if(Gi){let Oo=ta.pageY-So;Oo<0&&(Oo=0),Oo>300&&(Oo=300);let Wo=hn+Oo+"px";bi(Wo)}},jn=cn.current,Gi=!1,So=0;return jn.addEventListener("mousedown",zr),document.addEventListener("mousemove",ti),document.addEventListener("mouseup",Tr),()=>{jn.removeEventListener("mousedown",zr),document.removeEventListener("mousemove",ti),document.removeEventListener("mouseup",Tr)}}},[Xn,cn]),(0,ot.useEffect)(()=>{bi(hn)},[hn]);const za=Mn(Kt),Gs=Mn(Li),Ua={width:za,height:Gs},Fa=(0,ot.useMemo)(()=>{if(Oi){let zr=new Date(Oi),Tr=zr.getHours(),ti=zr.getMinutes(),jn=zr.getSeconds();return Tr=Tr<10?"0"+Tr:Tr,ti=ti<10?"0"+ti:ti,jn=jn<10?"0"+jn:jn,`${Tr}:${ti}:${jn}`}return 0},[Oi]),Da=zr=>{const Tr=[];if(ir){let ti=-1;zr=zr.replace(/(@▁▁@|@▁@)/g,function(jn,Gi,So){Tr.push({multiLine:jn!==bn})})}return Tr};function yl(){window.sessionStorage.removeItem(dr),Ln(!1),Ri(0)}function fs(){Ln(!1),Ri(0),Xn.setValue(window.sessionStorage.getItem(dr))}(0,ot.useEffect)(()=>{$n[jr]&&jr!==Dn&&jr!==Sn&&setTimeout(()=>{const zr=document.getElementsByClassName("markdown-popup-form")[0],Tr=window.innerWidth/2-zr.offsetWidth/2,ti=window.innerHeight/2-zr.offsetHeight/2;Nn(Tr),bs(ti)},0)},[jr]);const No=zr=>{zr.preventDefault();const Tr=zr.clientX-la,ti=zr.clientY-vo;document.body.onmousemove=jn=>{let Gi=jn.clientX-Tr,So=jn.clientY-ti;const ta=document.getElementsByClassName("markdown-popup-form")[0],Oo=window.innerWidth-ta.offsetWidth,Wo=window.innerHeight-ta.offsetHeight;Gi=Math.max(0,Math.min(Gi,Oo)),So=Math.max(0,Math.min(So,Wo)),ea(jn.clientX,jn.clientY,Tr,ti)&&(Nn(Gi),bs(So))},document.body.onmouseup=function(){document.body.onmousemove=null}},ea=(zr,Tr,ti,jn)=>{const Gi=document.body.clientHeight,So=document.body.clientWidth;return zr<20&&ti>zr||zr>So-20&&tiTr||Tr>Gi-20&&jnOe in Ae?Te(Ae,Oe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Ae[Oe]=ze,ie=(Ae,Oe)=>{for(var ze in Oe||(Oe={}))z.call(Oe,ze)&&oe(Ae,ze,Oe[ze]);if(fe)for(var ze of fe(Oe))ee.call(Oe,ze)&&oe(Ae,ze,Oe[ze]);return Ae},le=(Ae,Oe)=>ve(Ae,xe(Oe));const{useForm:ue}=ot.default,pe={width:280,marginRight:10},Se={labelCol:{span:5},wrapperCol:{span:19}};var Le=({callback:Ae,onCancel:Oe})=>{const[ze]=ue();let He=(0,we.useRef)();function Ye(st){He.current.width=ze.getFieldValue("width"),He.current.align=ze.getFieldValue("align"),Ae(st,He.current)}function We(st,dt){if(st.status===-1){_t.ZP.error(st.message);return}ze.setFieldsValue({src:`/api/attachments/${st.id}`,type:dt.type})}function Ue(st){let dt=st.target.files[0];He.current=dt,Fe(dt,We)}return be.createElement(ot.default,le(ie({form:ze},Se),{className:"upload-image-panel",onFinish:Ye,style:{width:470,overflow:"hidden"}}),be.createElement(ot.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},be.createElement("div",{className:"flex-container"},be.createElement(ot.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},be.createElement(ae.default,{style:pe})),be.createElement(De,{onFileChange:Ue}))),be.createElement(ot.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},be.createElement(ae.default,{style:{width:264}})),be.createElement(ot.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},be.createElement(Ge.Z,null,be.createElement(ot.default.Item,{name:"width",style:{margin:0}},be.createElement(Ie.Z,{style:{width:264}})),be.createElement("span",{className:"ml8"},"%"))),be.createElement(ot.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},be.createElement(me.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"}]})),be.createElement("aside",null,be.createElement(ot.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},be.createElement(de.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),be.createElement(de.ZP,{type:"default",onClick:Oe},"\u53D6\u6D88"))))};function De({onFileChange:Ae}){return be.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",be.createElement("input",{type:"file",onChange:Ae}))}function Fe(Ae,Oe){if(!Ae)throw new String("\u6CA1\u6709\u6587\u4EF6");let ze=new FormData;ze.append("editormd-image-file",Ae),ze.append("file_param_name","editormd-image-file"),ze.append("byxhr","true");var He=new window.XMLHttpRequest;He.withCredentials=!0,He.addEventListener("load",function(Ye){Oe(JSON.parse(Ye.target.responseText),Ae)},!1),He.addEventListener("error",function(Ye){console.error(Ye)},!1),He.open("POST",`${Ee.KI}/api/attachments.json`),He.send(ze)}},76621:function(dn,pn,at){"use strict";at.d(pn,{Z:function(){return ae}});var ot=at(67294),_t=at(73935);class ae extends ot.Component{constructor(Ie){super(Ie);const me=window.document;this.node=me.createElement("div"),me.body.appendChild(this.node)}render(){const{children:Ie}=this.props;return(0,_t.createPortal)(Ie,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},36295:function(dn,pn,at){"use strict";at.d(pn,{SV:function(){return yt},ZP:function(){return xt}});var ot=at(67294),_t=at(91033);const ae={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Ge={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Ie={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std;",content:["using namespace std;"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},me={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},de={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var Ee=at(84204),we=at.n(Ee),be=(Tt,St,nt)=>new Promise((Qe,Ce)=>{var Ne=Be=>{try{rt(nt.next(Be))}catch(_e){Ce(_e)}},Je=Be=>{try{rt(nt.throw(Be))}catch(_e){Ce(_e)}},rt=Be=>Be.done?Qe(Be.value):Promise.resolve(Be.value).then(Ne,Je);rt((nt=nt.apply(Tt,St)).next())});const Te={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},ve=(Tt,St,nt,Qe)=>{const Ce=St.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:nt.lineNumber,endColumn:nt.column});return Array.from(new Set(Ce.match(/\b\w{2,}\b/g)||[])).map(Je=>({label:Je,kind:Tt.languages.CompletionItemKind.Text,insertText:Je,range:Qe}))},xe=(Tt,St,nt,Qe)=>{Tt.languages.registerCompletionItemProvider(St,{provideCompletionItems(Ce,Ne){const Je=Ce.getWordUntilPosition(Ne),rt={startLineNumber:Ne.lineNumber,endLineNumber:Ne.lineNumber,startColumn:Je.startColumn,endColumn:Je.endColumn},Be=Ce.getLineContent(Ne.lineNumber).substring(Je.startColumn-2,Je.endColumn);return{suggestions:[...ve(Tt,Ce,Ne,rt),...nt.map(Xe=>({label:Xe,kind:Tt.languages.CompletionItemKind.Keyword,documentation:Xe,insertText:Xe,insertTextRules:Tt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt})),...Qe.map(Xe=>({label:Xe.label,kind:Tt.languages.CompletionItemKind.Snippet,documentation:Xe.content,insertText:Be.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:Tt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rt}))]}}})};var fe=Tt=>{Te.languages.forEach(St=>{Tt.languages.registerDocumentFormattingEditProvider(St,{provideDocumentFormattingEdits(nt){return be(this,null,function*(){const Qe=we()(nt.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:nt.getFullModelRange(),text:Qe}]})}})}),xe(Tt,"java",Ge.keywords,Ge.quickKey),xe(Tt,"cpp",Ie.keywords,Ie.quickKey),xe(Tt,"c",ae.keywords,[]),xe(Tt,"python",me.keywords,me.quickKey),xe(Tt,"scala",de.keywords,de.quickKey)};const z="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ee=Object.defineProperty,oe=(Tt,St,nt)=>St in Tt?ee(Tt,St,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Tt[St]=nt,ie=(Tt,St,nt)=>oe(Tt,typeof St!="symbol"?St+"":St,nt);const le=class mx{constructor(St,nt,Qe){this.placeholder=St,this.editor=nt,this.monaco=Qe,nt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};ie(le,"ID","editor.widget.placeholderHint");var pe=le,Se=at(84144),Le=at(2453),De=at(83062),Fe=at(96486),Ae=at(33054),Oe=at(74855),ze=Object.defineProperty,He=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,dt=(Tt,St,nt)=>St in Tt?ze(Tt,St,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Tt[St]=nt,gt=(Tt,St)=>{for(var nt in St||(St={}))Ue.call(St,nt)&&dt(Tt,nt,St[nt]);if(We)for(var nt of We(St))st.call(St,nt)&&dt(Tt,nt,St[nt]);return Tt},Et=(Tt,St)=>He(Tt,Ye(St)),Ke=(Tt,St)=>{var nt={};for(var Qe in Tt)Ue.call(Tt,Qe)&&St.indexOf(Qe)<0&&(nt[Qe]=Tt[Qe]);if(Tt!=null&&We)for(var Qe of We(Tt))St.indexOf(Qe)<0&&st.call(Tt,Qe)&&(nt[Qe]=Tt[Qe]);return nt},et=(Tt,St,nt)=>new Promise((Qe,Ce)=>{var Ne=Be=>{try{rt(nt.next(Be))}catch(_e){Ce(_e)}},Je=Be=>{try{rt(nt.throw(Be))}catch(_e){Ce(_e)}},rt=Be=>Be.done?Qe(Be.value):Promise.resolve(Be.value).then(Ne,Je);rt((nt=nt.apply(Tt,St)).next())});function $e(Tt){return/^\d+$/.test(Tt)?`${Tt}px`:Tt}function vt(){}let wt=!1;const ht={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function pt(Tt=[]){let St=Tt;if(Array.isArray(Tt)){for(let nt=0;ntet(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Tt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Tt)}});var xt=Tt=>{var St=Tt,{width:nt="100%",height:Qe="100%",value:Ce,language:Ne="javascript",style:Je={},options:rt={},overrideServices:Be={},theme:_e="vs-dark",onEditBlur:Xe,isCopy:lt=!1,onSave:Pt,autoHeight:kt=!1,forbidCopy:zt=!1,onChange:jt=vt,editorDidMount:Ht=vt,onFocus:ln=vt,onBreakPoint:an=vt,breakPointValue:sn=[],filename:$t="educoder.txt",errorLine:On,errorContent:un="",highlightLine:mn,openBreakPoint:In=!1,placeholder:Sn="",showMiniMap:Dn=!0}=St,fr=Ke(St,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const _r=(0,ot.useRef)(),mr=(0,ot.useRef)({}),wi=(0,ot.useRef)(),no=(0,ot.useRef)(),ro=(0,ot.useRef)([]),io=(0,ot.useRef)(!1),Ji=(0,ot.useRef)(),lo=(0,ot.useRef)(),Fi=(0,ot.useRef)(!1),[Jr,bn]=(0,ot.useState)(!1);function Ze(){let Qt;return _r.current&&(Qt=new _t.Z(Cn=>{for(let dr of Cn)(dr.target.offsetHeight>0||dr.target.offsetWidth>0)&&mr.current.instance.layout()}),Qt.observe(_r.current)),Qt}function vn(){Le.ZP.warning({content:decodeURIComponent(z),key:"monaco-editor-tip"})}const Mn=()=>{let Qt=mr.current.instance;if(Ce!=null&&Qt&&Jr){const Cn=Qt.getModel();Cn&&Ce!==Cn.getValue()&&(wt=!0,Cn.setValue(Ce),Qt.layout(),wt=!1)}};(0,ot.useEffect)(()=>{const Qt=Ae.Z.subscribe("formatDocument",Cn=>{var dr;let Ar=mr.current.instance;(dr=Ar==null?void 0:Ar.getAction)==null||dr.call(Ar,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cn=>{jt(Cn)},Qt},[]),(0,ot.useEffect)(()=>{var Qt;let Cn=mr.current.instance;no.current&&clearTimeout(no.current),no.current=setTimeout(()=>{Mn()},500),Ce&&(Ce!=null&&Ce.length)&&((Qt=Cn==null?void 0:Cn.updateOptions)==null||Qt.call(Cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ce.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ce,Jr,mr.current]),(0,ot.useEffect)(()=>{if(On&&mr.current&&mr.current.instance){let Cn=mr.current.instance;Cn.changeViewZones(function(dr){var Ar=document.createElement("div");Ar.style.padding="10px 20px",Ar.style.width="calc(100% - 20px)",Ar.className="my-error-line-wrp",Ar.innerHTML=un,dr.addZone({afterLineNumber:On||11,heightInLines:3,domNode:Ar})});var Qt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Cn.addOverlayWidget(Qt),Cn.revealPositionInCenter({lineNumber:20,column:1})}},[On,mr.current,Jr]);const Rn=(Qt="",Cn)=>{if(!Qt||Qt.trim()==="")return!0;const Ar=mr.current.instance.getModel().getLineTokens(Cn);let _n=!1;for(let Zt=0;Zt<2;Zt++)Ar.getStandardTokenType(Zt)===1&&(_n=!0);return _n};(0,ot.useEffect)(()=>{var Qt;const Cn=(Qt=mr.current)==null?void 0:Qt.instance;if(Cn&&Jr&&zt){const dr=Cn.onDidBlurEditorWidget(()=>{Fi.current=!1}),Ar=Cn.onDidFocusEditorText(()=>{Fi.current=!0});return()=>{dr.dispose(),Ar.dispose()}}},[mr.current,Jr,zt]),(0,ot.useEffect)(()=>{var Qt;if((Qt=mr.current)!=null&&Qt.instance&&Jr&&In){let Cn=mr.current.instance,dr=Cn.getModel();if(!dr)return;(()=>{var xr;let gr=[],Lr=[];const _i=dr.getAllDecorations();for(let Xn of _i)Xn.options.className==="highlighted-line"&&(gr.push((xr=Xn==null?void 0:Xn.range)==null?void 0:xr.startLineNumber),Lr.push(Xn==null?void 0:Xn.id));if(mn===gr[0])return;dr.deltaDecorations(Lr,[]);const oo=dr.getLineCount();mn&&mn<=oo&&(Cn.deltaDecorations([],[{range:new ct.Range(mn,1,mn,dr.getLineMaxColumn(mn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cn.revealLineInCenter(mn))})();const _n=(xr=!1)=>{var gr;let Lr=[],_i=[];const oo=dr.getAllDecorations();for(let Xn of oo)Xn.options.linesDecorationsClassName==="breakpoints-select"&&(Lr.push((gr=Xn==null?void 0:Xn.range)==null?void 0:gr.startLineNumber),_i.push(Xn==null?void 0:Xn.id));if(xr)return{lines:Lr,ids:_i};an(Lr)},Zt=xr=>et(void 0,null,function*(){let gr={range:new ct.Range(xr,1,xr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield dr.deltaDecorations([],[gr]),_n()}),ir=xr=>et(void 0,null,function*(){let gr=[];const Lr=Cn.getLineDecorations(xr);for(let _i of Lr)_i.options.linesDecorationsClassName==="breakpoints-select"&&gr.push(_i.id);yield dr.deltaDecorations(gr,[]),_n()}),Nr=xr=>{let gr=Cn.getLineDecorations(xr);for(let Lr of gr)if(Lr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Fe.isEqual)(sn,_n(!0).lines)){dr.deltaDecorations(_n(!0).ids,[]);const xr=sn.map(gr=>({range:new ct.Range(gr,1,gr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));dr.deltaDecorations([],xr)}const si=Cn.onDidChangeModelContent(xr=>{let gr=Cn.getPosition();if(gr){let Lr=gr.lineNumber;clearTimeout(lo.current),lo.current=setTimeout(()=>{Rn(dr.getLineContent(Lr),Lr)?ir(Lr):Nr(Lr)?(ir(Lr),Zt(Lr)):_n()},100)}}),Tn=Cn.onMouseDown(xr=>{var gr,Lr,_i;if(xr.target.detail&&((_i=(Lr=(gr=xr.target)==null?void 0:gr.element)==null?void 0:Lr.className)!=null&&_i.includes("line-numbers"))){let oo=xr.target.position.lineNumber;if(Rn(dr.getLineContent(oo),oo))return;Nr(oo)?ir(oo):Zt(oo)}}),vr=xr=>{let gr={range:new ct.Range(xr,1,xr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ro.current=Cn.deltaDecorations(ro.current,[gr])},yi=()=>{ro.current=Cn.deltaDecorations(ro.current,[])},ko=Cn.onMouseMove(xr=>{var gr,Lr,_i;if(yi(),xr.target.detail&&((_i=(Lr=(gr=xr.target)==null?void 0:gr.element)==null?void 0:Lr.className)!=null&&_i.includes("line-numbers"))){let oo=xr.target.position.lineNumber;if(Rn(dr.getLineContent(oo),oo))return;vr(oo)}}),zi=Cn.onMouseLeave(()=>{yi()});return()=>{si.dispose(),Tn.dispose(),ko.dispose(),zi.dispose()}}},[mr.current,Jr,sn,mn,In,Ne]),(0,ot.useEffect)(()=>{var Qt;(Qt=mr.current)!=null&&Qt.instance&&In&&mr.current.instance.setPosition({lineNumber:0,column:0})},[mn]);function zn(){let Qt=mr.current.instance;if(Qt){const Cn=Qt.getSelection(),dr=mr.current.pastePos||{},Ar=new ct.Range(dr.startLineNumber||Cn.endLineNumber,dr.startColumn||Cn.endColumn,dr.endLineNumber||Cn.endLineNumber,dr.endColumn||Cn.endColumn);setTimeout(()=>{Qt.executeEdits("",[{range:Ar,text:""}])},300)}}function Un(Qt){(window.navigator.platform.match("Mac")?Qt.metaKey:Qt.ctrlKey)&&Qt.keyCode==83&&(Qt.preventDefault(),Pt())}const $n=()=>{if(kt&&mr.current.instance){const Qt=mr.current.instance.getContentHeight();tr(Qt{if(!Fi.current)return;const{keyCode:Cn,ctrlKey:dr,metaKey:Ar,target:_n,type:Zt}=Qt;return(Zt==="paste"||(Cn===67||Cn===86)&&(Ar||dr))&&_n.nodeName==="TEXTAREA"&&(vn(),Qt.preventDefault()),!1};function on(Qt,Cn){var dr=window.URL||window.webkitURL||window,Ar=new Blob([Cn]),_n=document.createElementNS("http://www.w3.org/1999/xhtml","a");_n.href=dr.createObjectURL(Ar),_n.download=Qt,Mr(_n)}(0,ot.useEffect)(()=>{$n()},[$n]),(0,ot.useEffect)(()=>{_r.current&&!Jr&&Promise.all([at.e(5552),at.e(9651)]).then(at.bind(at,55826)).then(Qt=>{try{ct=Qt,mr.current.instance=ct.editor.create(_r.current,{value:Ce,language:pt(Ne),theme:_e,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Dn||!1}},Be);const Cn=mr.current.instance;let _n=[...Se.BH._menuItems].find(si=>si[0]._debugName=="EditorContext")[1],Zt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ir=(si,Tn)=>{var vr,yi;let ko=si._first;do Tn.includes((yi=(vr=ko.element)==null?void 0:vr.command)==null?void 0:yi.id)&&si._remove(ko);while(ko=ko.next)};if(Ht(Cn,ct),setTimeout(()=>{$n(),mr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{on($t||"educoder.txt",Cn.getValue())}})},500),mr.current.subscription=Cn.onDidChangeModelContent(si=>{io.current?clearTimeout(Ji.current):($n(),jt(Cn.getValue(),si)),Ji.current=setTimeout(()=>{io.current=!1},500)}),window.Monaco||fe(ct,pt(Ne)),zt&&(ir(_n,Zt),_r.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",nn),window.removeEventListener("paste",nn),window.addEventListener("keydown",nn),window.addEventListener("paste",nn)),window.Monaco=ct,Xe&&Cn.onDidBlurEditorWidget(()=>{Xe(Cn.getValue())}),ln&&Cn.onDidFocusEditorText(()=>{zt&&Ct(),ln(Cn.getValue())}),zt){Ct();try{Cn.onDidPaste(si=>{const Tn=Cn.getSelection(),vr=mr.current.pastePos||{},yi=new ct.Range(vr.startLineNumber||Tn.endLineNumber,vr.startColumn||Tn.endColumn,vr.endLineNumber||Tn.endLineNumber,vr.endColumn||Tn.endColumn);Cn.executeEdits("",[{range:si.range,text:""}])})}catch(si){}}let Nr=Ze();return Sn&&typeof Sn=="string"&&new pe(Sn,Cn,ct),bn(!0),()=>{const si=mr.current.instance;si.dispose();const Tn=si.getModel();Tn&&Tn.dispose(),mr.current.subscription&&mr.current.subscription.dispose(),Nr.unobserve(_r.current)}}catch(Cn){}})},[]),(0,ot.useEffect)(()=>{if(mr.current.instance&&Jr)return document.addEventListener("keydown",Un,!1),()=>{document.removeEventListener("keydown",Un)}},[Pt,Jr]),(0,ot.useEffect)(()=>{let Qt=mr.current.instance;if(Qt&&Jr){let Cn=pt(Ne);ct.editor.setModelLanguage(Qt.getModel(),Cn)}},[Ne,Jr]),(0,ot.useEffect)(()=>{mr.current.instance&&Jr&&ct.editor.setTheme(_e)},[_e,Jr]),(0,ot.useEffect)(()=>{let Qt=mr.current.instance;wi.current=rt,Qt&&Jr&&(Qt.updateOptions(gt({},rt)),setTimeout(()=>{Qt.getModel().updateOptions(gt({},rt))},200))},[JSON.stringify(rt),Jr]),(0,ot.useEffect)(()=>{let Qt=mr.current.instance;Qt&&Jr&&Qt.layout()},[nt,Qe,Jr]);const[Kt,hn]=(0,ot.useState)($e(nt)),[qn,tr]=(0,ot.useState)($e(Qe)),ur=Et(gt({},Je),{width:Kt,height:qn,position:"relative"});return ot.createElement("div",{className:"my-monaco-editor",ref:_r,style:ur},lt&&ot.createElement(Oe.CopyToClipboard,{text:Ce,onCopy:()=>Le.ZP.success("\u590D\u5236\u6210\u529F")},ot.createElement(De.Z,{title:"\u590D\u5236\u4EE3\u7801"},ot.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ot.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function yt({width:Tt="100%",height:St="100%",original:nt,modified:Qe,language:Ce,options:Ne={}}){const Je=(0,ot.useRef)(),[rt,Be]=(0,ot.useState)(null);function _e(kt){let zt;return Je.current&&(zt=new _t.Z(jt=>{for(let Ht of jt)(Ht.target.offsetHeight>0||Ht.target.offsetWidth>0)&&kt.layout()}),zt.observe(Je.current)),zt}(0,ot.useEffect)(()=>(Je.current&&Promise.all([at.e(5552),at.e(9404)]).then(at.bind(at,50048)).then(kt=>{ct=kt;const zt=ct.editor.createDiffEditor(Je.current,Et(gt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Ne),{wordWrap:!0}));Be(zt);let jt=_e(zt);return()=>{zt.dispose();const Ht=zt.getModel();Ht&&Ht.dispose(),jt.unobserve(Je.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ot.useEffect)(()=>{rt&&rt.setModel({original:ct.editor.createModel(nt,Ce),modified:ct.editor.createModel(Qe,Ce)})},[nt,Qe,Ce,rt]);const Xe=$e(Tt),lt=$e(St),Pt={width:Xe,height:lt};return ot.createElement("div",{className:"my-diff-editor",ref:Je,style:Pt})}},21434:function(dn,pn,at){"use strict";var ot=at(12867),_t=at(88044),ae=at(59637),Ge=at(67294);const Ie=_t.default.Option;pn.Z=({isTheoretical:me,onFontSizeChange:de,cmFontSize:Ee,cmCodeMode:we,autoFormat:be,onCodeModeChange:Te,onTabToSpace:ve,onAutoFormat:xe,formatDocument:fe,className:z="",tabToSpace:ee,children:oe,code_editor:ie,challenge:le,shixun_environment_id:ue,shixun_environments:pe})=>{var Se;const Le={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},De=(Se=pe==null?void 0:pe.find(Fe=>Fe.shixun_environment_id===ue))==null?void 0:Se.program_language;return console.log("----",De,pe,ue,ie),Ge.createElement("div",{className:`tpi-code-setting ${z}`},Ge.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),Ge.createElement("section",null,Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),Ge.createElement(_t.default,{bordered:!1,size:"small",value:we,onChange:Te},Ge.createElement(Ie,{value:"vs"},"\u767D\u8272\u80CC\u666F"),Ge.createElement(Ie,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!me&&Ge.createElement(Ge.Fragment,null,Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),Ge.createElement(_t.default,{bordered:!1,size:"small",value:Ee,onChange:de},Ge.createElement(Ie,{value:12},"12px"),Ge.createElement(Ie,{value:14},"14px"),Ge.createElement(Ie,{value:16},"16px"),Ge.createElement(Ie,{value:18},"18px"),Ge.createElement(Ie,{value:20},"20px"),Ge.createElement(Ie,{value:22},"22px"))),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"Tab\u8F6C\u6362"),Ge.createElement(ae.Z,{checked:ee,onChange:ve})),Ge.createElement("div",{className:"file-item",onClick:fe},Ge.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!me&&Ge.createElement(Ge.Fragment,null,Ge.createElement("h3",null,"\u5FEB\u6377\u952E"),Ge.createElement("section",null,Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),Ge.createElement("span",null,"Ctrl + S")),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),Ge.createElement("span",null,"F1 / Alt + F1")),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),Ge.createElement("span",null,"Ctrl + ]/[")),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),Ge.createElement("span",null,"Ctrl + Shift + \\")),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),Ge.createElement("span",null,"Home")),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),Ge.createElement("span",null,"End"))),oe),!me&&Ge.createElement(Ge.Fragment,null,Ge.createElement("h3",null,"\u5FEB\u6377\u952E"),Ge.createElement("section",null,De&&Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),Ge.createElement("span",null,De)),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),Ge.createElement("span",null,Le[le==null?void 0:le.difficulty])),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Ge.createElement("span",null,ie==null?void 0:ie.name)),Ge.createElement("div",{className:"file-item"},Ge.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),Ge.createElement("span",null,ie!=null&&ie.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},5476:function(dn,pn,at){"use strict";at.d(pn,{Z:function(){return Te}});var ot={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},_t=at(74330),ae=at(83062),Ge=at(94184),Ie=at.n(Ge),me=at(28706),de=at(26194),Ee=at(52262),we=at(67294),Te=({className:ve,dataSource:xe=[],col:fe=4,right:z,bottom:ee=23,precision:oe=0,wrapWidth:ie=1200,trackEventItems:le,loading:ue,onRemove:pe=()=>{},isCurrent:Se=!0,showAlias:Le=!1})=>{const De=Math.floor((ie-(fe-1)*z)/fe),Fe=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return we.createElement(_t.Z,{spinning:ue},we.createElement("div",{className:Ie()(ot.list,ve)},!!(xe!=null&&xe.length)&&(xe==null?void 0:xe.map((Ae,Oe)=>{var ze;const{name:He,id:Ye,identifier:We,featured:Ue,school_name:st,image_url:dt,excellent:gt,is_plan:Et}=Ae;return we.createElement("div",{key:Ye,className:ot.wrap,style:{width:De,marginRight:(1+Oe)%fe===0?0:z+oe,marginBottom:ee}},we.createElement("a",{className:ot.li,onClick:Ke=>{Ke.preventDefault(),Ke.stopPropagation(),le&&(0,me.L9)([le]),(0,me.xg)(`/paths/${We}`)}},we.createElement("div",{className:ot.img},we.createElement("img",{className:ot.cover,src:`${dt}`}),Se&&(0,Ee.bg)()&&(Ae==null?void 0:Ae.studying)&&we.createElement("div",{className:`${ot.movebq} user-path-items`,onClick:Ke=>{Ke.stopPropagation(),pe(Ae)}},we.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),we.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ze=Ae==null?void 0:Ae.subject_tags)==null?void 0:ze.map((Ke,et)=>{var $e,vt;if(et===0){const ht=($e=Fe.find(pt=>pt.name==Ke))==null?void 0:$e.swimg;return we.createElement("img",{className:ot.sign,src:ht,style:{left:"-4px"}})}const wt=(vt=Fe.find(ht=>ht.name==Ke))==null?void 0:vt.ptimg;return we.createElement("img",{className:ot.sign,src:wt,style:{left:`${48+52*(et-1)+2*et}px`}})}),we.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ae==null?void 0:Ae.excellent)&&we.createElement("div",{className:ot.bq},"\u5F00\u653E\u8BFE\u7A0B"))),we.createElement("div",{className:ot.name},we.createElement(ae.Z,{title:Le&&(Ae!=null&&Ae.excellent_alias_name)?we.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${He}`,we.createElement("br",null),we.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ae==null?void 0:Ae.excellent_alias_name}`)):He},we.createElement("span",{className:ot.e},Le&&(Ae==null?void 0:Ae.excellent_alias_name)||He))),we.createElement(ae.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${st}`},we.createElement("div",{className:ot.unit},we.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),st)),we.createElement("div",{className:ot.tags},we.createElement("div",null,we.createElement(ae.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),we.createElement("span",null,Ae.stages_count))),we.createElement(ae.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),we.createElement("span",null,Ae.members_count)))))))})),!xe.length&&we.createElement(de.Z,null)))}},30001:function(dn,pn,at){"use strict";at.d(pn,{jL:function(){return Ie},w9:function(){return $e},QD:function(){return On},cQ:function(){return dt.Z},op:function(){return jt},O5:function(){return Mn},_b:function(){return fr},t7:function(){return ie},Gi:function(){return Ct},YG:function(){return pt},qp:function(){return Te},vr:function(){return In},qE:function(){return an},Je:function(){return pe},wb:function(){return st},cq:function(){return Qe},tp:function(){return fe}});var ot=at(67294),_t={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},ae="data:image/png;base64,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",Ie=({dataSource:Rn=[],img:zn,imgWidth:Un=346,title:$n,sunTitle:Mr,bannerExtraContent:nn})=>ot.createElement("div",{className:_t.banner},ot.createElement("div",{className:_t.content},ot.createElement("aside",null,ot.createElement("p",null,ot.createElement("b",null,$n),ot.createElement("span",null,Mr)),Rn.length>0&&ot.createElement("div",{className:_t.btns},Rn.map((on,Kt)=>ot.createElement("div",{key:Kt,onClick:on.click},on.name,on.sign?ot.createElement("img",{src:ae,width:39}):null))),nn),zn&&ot.createElement("img",{style:{marginTop:33,marginRight:38},src:zn,width:Un}))),me={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},de=at(94184),Ee=at.n(de),we=at(96486),Te=({dataSource:Rn=[],value:zn,onChange:Un,onTitleChange:$n,className:Mr,title:nn,titleWidth:on=41,style:Kt={},fontColor:hn="#6A7283",showCount:qn})=>{const[tr,ur]=(0,ot.useState)(0),[Qt,Cn]=(0,ot.useState)(!1),dr=(0,ot.useRef)(null),Ar=(0,ot.useRef)(null);return(0,ot.useEffect)(()=>{var _n;Rn.length!==0&&(((_n=dr==null?void 0:dr.current)==null?void 0:_n.clientHeight)>97?ur(1):ur(0)),Rn.length===0&&ur(0),Cn(!1)},[Rn]),ot.createElement("div",{className:Ee()(me.row,Mr),style:Kt},ot.createElement("div",{onClick:(0,we.throttle)(()=>$n==null?void 0:$n(),2e3),style:{width:on,marginTop:Qt?12:4},className:`${me.title} ${$n?"current":""}`},nn),ot.createElement("div",{className:Qt?`${me.tagsWrap} ${me.tagsBorderWrap}`:me.tagsWrap},ot.createElement("div",{className:me.bar,ref:Ar,style:tr>0?{height:tr===1?97:"auto",overflow:tr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ot.createElement("div",{className:me.tag,ref:dr},Rn==null?void 0:Rn.map(_n=>ot.createElement("span",{onClick:()=>Un(_n.id),key:_n.id,style:{color:hn},className:zn===_n.id?me.active:""},ot.createElement("span",{title:_n.name,className:me.name},_n.name),!!qn&&ot.createElement("span",{className:me.num},_n.count))))),!!tr&&ot.createElement(ot.Fragment,null,tr===1?ot.createElement("div",{onClick:()=>{var _n;ur(2),((_n=dr==null?void 0:dr.current)==null?void 0:_n.clientHeight)>245?Cn(!0):Cn(!1)},className:me.action},"\u5C55\u5F00",ot.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ot.createElement("div",{onClick:()=>{Ar.current.scrollTop=0,ur(1),Cn(!1)},className:me.action},"\u6536\u8D77",ot.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ve={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},fe=({dataSource:Rn=[],value:zn,onChange:Un,className:$n,style:Mr={}})=>ot.createElement("div",{style:Mr,className:Ee()(ve.tabs,$n)},Rn.map(nn=>ot.createElement("span",{onClick:()=>Un(nn.id),className:zn===nn.id?ve.active:"",key:nn.id},nn.name))),z={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ee=at(28802),ie=({dataSource:Rn=[],value:zn="",onChange:Un,onInputChange:$n=()=>{},className:Mr,style:nn={},placeholder:on,allowClear:Kt=!1})=>{var hn;const[qn,tr]=(0,ot.useState)(""),[ur,Qt]=(0,ot.useState)("");(0,ot.useEffect)(()=>{var Ar;let _n=zn;(Ar=JSON.stringify(zn))!=null&&Ar.includes("{")&&(tr(zn.id),_n=zn.value||"");try{Qt(decodeURIComponent(_n||""))}catch(Zt){Qt(decodeURIComponent(_n||""))}},[zn]);const Cn=()=>{Un(encodeURIComponent(ur),qn||null)},dr=Ar=>{Ar!==qn&&(tr(Ar),Un(encodeURIComponent(ur),Ar))};return ot.createElement("div",{className:Ee()(z.input,Mr),style:nn},!!Rn.length&&ot.createElement("div",{className:z.dropdown},ot.createElement("div",{className:z.text},(hn=Rn.find(Ar=>Ar.id===qn))==null?void 0:hn.name,ot.createElement("i",{className:"iconfont icon-zhankai4"}),ot.createElement("b",{className:z.b1}),ot.createElement("b",{className:z.b2})),ot.createElement("div",{className:z.menu},Rn.map((Ar,_n)=>ot.createElement("div",{key:_n,onClick:()=>dr(Ar.id)},Ar.name)))),ot.createElement(ee.default,{onPressEnter:Cn,value:ur,onChange:Ar=>{Qt(Ar.target.value),$n(encodeURIComponent(Ar.target.value),qn||null)},bordered:!1,placeholder:on}),ot.createElement("i",{onClick:Cn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},le={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},pe=({value:Rn,onChange:zn,className:Un,total:$n,pageSize:Mr,style:nn={}})=>{const on=Rn<2,Kt=Rn>=Math.ceil($n/Mr);return $n<=Mr?ot.createElement(ot.Fragment,null):ot.createElement("div",{className:Ee()(le.quickPager,Un),style:nn},ot.createElement("div",{onClick:()=>{on||zn(Rn-1,"prev")},className:on?le.disabled:""},"\u4E0A\u4E00\u9875"),ot.createElement("div",{onClick:()=>{Kt||zn(Rn+1,"next")},className:Kt?le.disabled:""},"\u4E0B\u4E00\u9875"))},Se={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Le=at(74330),De=at(83062),Fe=at(57097),Ae=at(11320),Oe=at(28706),ze=at(96908),He=at(57177),Ye=at(81378),We=at(26194),st=({className:Rn,dataSource:zn=[],col:Un=4,right:$n,bottom:Mr=23,precision:nn=0,wrapWidth:on=1200,trackEventItems:Kt,loading:hn})=>{const qn=Math.floor((on-(Un-1)*$n)/Un);return ot.createElement(Le.Z,{spinning:hn},ot.createElement("div",{className:Ee()(Se.list,Rn)},!!zn.length&&zn.map((tr,ur)=>{const{name:Qt,id:Cn,identifier:dr,power:Ar,cover_image_id:_n,pic:Zt}=tr;return ot.createElement("div",{className:Se.wrap,key:Cn,style:{width:qn,marginRight:(1+ur)%Un===0?0:$n+nn,marginBottom:Mr}},ot.createElement("a",{target:"_blank",href:`/shixuns/${dr}/challenges`,className:Se.li,onClick:ir=>{ir.preventDefault(),Kt&&(0,Oe.L9)([Kt]),Ar&&(0,Oe.xg)(`/shixuns/${dr}/challenges`)}},ot.createElement("div",{className:Se.img},ot.createElement("img",{className:Se.cover,src:`${Zt}`}),tr.is_jupyter&&ot.createElement("img",{className:Se.sign,src:ze}),tr.is_jupyter_lab&&ot.createElement("img",{className:Se.sign,src:He}),tr.is_unity_3d&&ot.createElement("img",{className:Se.sign,src:Ye})),ot.createElement("div",{className:Se.name},ot.createElement(De.Z,{title:Qt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ot.createElement("span",{className:Se.e},Qt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ot.createElement("div",{className:Se.tags},ot.createElement(De.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ot.createElement("span",null,tr.challenges_count))),!!tr.myshixuns_count&&ot.createElement(De.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ot.createElement("span",null,ot.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ot.createElement("span",null,tr.myshixuns_count))),ot.createElement(De.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ot.createElement("span",null,ot.createElement("span",null,tr.level))),ot.createElement("div",{className:Se.rate},ot.createElement(Fe.Z,{allowHalf:!0,disabled:!0,defaultValue:tr.score_info}),ot.createElement("span",null,"\xA0",tr.score_info?`${tr.score_info}\u5206`:"5\u5206")))),!Ar&&ot.createElement("div",{className:Se.lockWrap},ot.createElement("img",{src:`${Ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ot.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!zn.length&&ot.createElement(We.Z,null)))},dt=at(5476),gt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Et="data:image/png;base64,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",Ke=at(67294),$e=({className:Rn,dataSource:zn=[],col:Un=4,right:$n,bottom:Mr=23,precision:nn=0,wrapWidth:on=1200,trackEventItems:Kt,loading:hn,handleVery:qn=()=>!0})=>{const tr=Math.floor((on-(Un-1)*$n)/Un);return Ke.createElement(Le.Z,{spinning:hn},Ke.createElement("div",{className:Ee()(gt.list,Rn)},!!zn.length&&zn.map((ur,Qt)=>{const{subject_identifier:Cn,id:dr,identifier:Ar,power:_n}=ur,Zt=ur.is_public!=0&&ur.is_public;return Ke.createElement("div",{className:gt.wrap,key:dr,style:{width:tr,marginRight:(1+Qt)%Un===0?0:$n+nn,marginBottom:Mr}},Ke.createElement("a",{className:gt.li,onClick:ir=>{ir.preventDefault(),qn(ur==null?void 0:ur.first_category_url)&&(Kt&&(0,Oe.L9)([Kt]),(0,Oe.xg)(ur.first_category_url))}},Ke.createElement("div",{className:gt.top},Ke.createElement(De.Z,{title:ur.name},Ke.createElement("div",{className:gt.name},ur.name)),Ke.createElement("img",{className:gt.img,src:Ae.Z.IMG_SERVER+"/images/"+ur.avatar_url}),Ke.createElement("div",{className:gt.text,title:ur.creator},ur.creator),Cn&&Ke.createElement("div",{className:gt.btns},Ke.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ke.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Zt&&Ke.createElement("div",{className:gt.sign},"\u516C\u5F00")),Ke.createElement("div",{className:gt.bottom},ur.visits>0&&Ke.createElement(De.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ke.createElement("span",null,Ke.createElement("i",{className:"iconfont icon-liulanyan"}),Ke.createElement("span",null,ur.visits))),ur.course_members_count>0&&Ke.createElement(De.Z,{title:"\u6210\u5458",placement:"bottom"},Ke.createElement("span",null,Ke.createElement("i",{className:"iconfont icon-chengyuan"}),ur.course_members_count)),ur.tasks_count>0&&Ke.createElement(De.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ke.createElement("span",null,Ke.createElement("i",{className:"iconfont icon-zuoye"}),ur.tasks_count)),ur.is_end?Ke.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ke.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ur.is_accessible&&Ke.createElement("div",{className:gt.lockWrap},Ke.createElement("img",{src:`${Ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ke.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!zn.length&&Ke.createElement(We.Z,null)))},vt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},wt=at(35973),pt=({dataSource:Rn=[],value:zn,onChange:Un,className:$n,style:Mr={},tabBarExtraContent:nn})=>ot.createElement("div",{className:Ee()(vt.tabs,$n),style:Mr},ot.createElement("div",{className:vt.tabsWrap},Rn.map((on,Kt)=>!(on!=null&&on.hide)&&ot.createElement("aside",{className:vt.tab,onClick:()=>{Un(on.id),on.link&&wt.history.push(on.link)},key:Kt},ot.createElement("div",{className:zn===on.id?vt.active:""},on.name),(on==null?void 0:on.resetCount)==null&&(on==null?void 0:on.total)!==void 0&&ot.createElement("span",null,"\uFF08",on==null?void 0:on.total,"\uFF09"),(on==null?void 0:on.resetCount)!==void 0&&(on==null?void 0:on.total)!==void 0&&ot.createElement(De.Z,{title:(on==null?void 0:on.tip)!=null?on==null?void 0:on.tip:""},ot.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ot.createElement("span",{style:{color:"#000"}},on==null?void 0:on.resetCount),"/",ot.createElement("span",null,on==null?void 0:on.total),"\uFF09"))))),ot.createElement("div",{className:vt.tabBar},nn)),Ct=({className:Rn,style:zn={},children:Un})=>ot.createElement("div",{className:Ee()(Rn),style:zn},Un),xt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},yt=at(85418),Tt=at(50136);const St=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Qe=({sortValue:Rn,dropValue:zn,className:Un,onSort:$n,onDrop:Mr,dataSource:nn=St})=>{var on;return ot.createElement("div",{className:Ee()(xt.orderWrap,Un)},ot.createElement(yt.Z,{dropdownRender:()=>ot.createElement(Tt.default,null,nn.map((Kt,hn)=>ot.createElement(Tt.default.Item,{key:hn,onClick:()=>Mr(Kt.id)},Kt.name)))},ot.createElement("span",{className:xt.orderTextWrap},(on=nn.find(Kt=>zn===Kt.id))==null?void 0:on.name)),ot.createElement("span",{className:xt.orderIconWrap},ot.createElement("span",{className:xt.orderAsc},ot.createElement("i",{className:Rn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${xt.cursorPointer} ${xt.active}`:`iconfont icon-sanjiaoxing-up font12 ${xt.cursorPointer}`,onClick:()=>$n(Rn==="asc"?"desc":"asc")})),ot.createElement("span",{className:xt.orderDesc},ot.createElement("i",{className:Rn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${xt.cursorPointer} ${xt.active}`:`iconfont icon-sanjiaoxing-down font12 ${xt.cursorPointer}`,onClick:()=>$n(Rn==="asc"?"desc":"asc")}))))},Ce={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ne=at(85804),Je=Object.defineProperty,rt=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Xe=(Rn,zn,Un)=>zn in Rn?Je(Rn,zn,{enumerable:!0,configurable:!0,writable:!0,value:Un}):Rn[zn]=Un,lt=(Rn,zn)=>{for(var Un in zn||(zn={}))Be.call(zn,Un)&&Xe(Rn,Un,zn[Un]);if(rt)for(var Un of rt(zn))_e.call(zn,Un)&&Xe(Rn,Un,zn[Un]);return Rn},Pt=(Rn,zn)=>{var Un={};for(var $n in Rn)Be.call(Rn,$n)&&zn.indexOf($n)<0&&(Un[$n]=Rn[$n]);if(Rn!=null&&rt)for(var $n of rt(Rn))zn.indexOf($n)<0&&_e.call(Rn,$n)&&(Un[$n]=Rn[$n]);return Un},kt=(Rn,zn,Un)=>new Promise(($n,Mr)=>{var nn=hn=>{try{Kt(Un.next(hn))}catch(qn){Mr(qn)}},on=hn=>{try{Kt(Un.throw(hn))}catch(qn){Mr(qn)}},Kt=hn=>hn.done?$n(hn.value):Promise.resolve(hn.value).then(nn,on);Kt((Un=Un.apply(Rn,zn)).next())}),jt=Rn=>{var zn=Rn,{className:Un,style:$n,children:Mr,loading:nn=!1,openLoading:on,onClick:Kt=()=>{},size:hn="middle",shape:qn="round"}=zn,tr=Pt(zn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ur,Qt]=(0,ot.useState)(!1);return ot.createElement(Ne.ZP,lt({onClick:(0,we.throttle)(Cn=>kt(void 0,null,function*(){on&&Qt(!0);try{yield Kt(Cn)}catch(dr){console.log("error",dr)}on&&Qt(!1)}),2e3,{leading:!0,trailing:!1}),className:Ee()(Ce.btn,Ce[`${hn}-${qn}`],Un),style:$n,size:hn,shape:qn,loading:ur||nn},tr),Mr)},Ht={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},an=({className:Rn,style:zn,children:Un=null,onClick:$n,title:Mr})=>ot.createElement("div",{className:Ee()(Ht.head,Rn),style:zn},ot.createElement("span",{className:"primary-hover",onClick:$n},ot.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ot.createElement("b",{title:Mr},Mr),ot.createElement("div",{className:Ht.node},Un)),sn={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},On=({confirmShow:Rn=!0,confirmTitle:zn,confirmClick:Un,cancelShow:$n=!0,cancelTitle:Mr,cancelClick:nn,className:on,style:Kt,confirmLoading:hn=!1})=>ot.createElement("div",{className:Ee()(sn.btns,on),style:Kt},Rn&&ot.createElement(Ne.ZP,{loading:hn,onClick:Un,type:"primary",className:sn.confirm},zn),$n&&ot.createElement(Ne.ZP,{onClick:nn,className:sn.cancel},Mr)),un={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},In=({className:Rn,style:zn={},LeftContent:Un,children:$n,RightContent:Mr})=>ot.createElement("div",{className:Ee()(un.fixedBottom,Rn),style:zn},ot.createElement("div",{className:un.wrap},ot.createElement("div",{className:un.left},Un),ot.createElement("div",{className:un.center},$n),ot.createElement("div",{className:un.right},Mr))),Sn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},fr=({className:Rn,style:zn={},dataSource:Un=[]})=>ot.createElement("div",{className:Ee()(Sn.crumbs,Rn),style:zn},Un.map(($n,Mr)=>Mrwt.history.push($n.path)},$n.name):ot.createElement("span",null,$n.name),ot.createElement("span",null,"\xA0",">","\xA0")):ot.createElement("span",{key:Mr,style:{color:"#5F6368"}},$n.name))),_r=at(55054),mr=Object.defineProperty,wi=Object.defineProperties,no=Object.getOwnPropertyDescriptors,ro=Object.getOwnPropertySymbols,io=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable,lo=(Rn,zn,Un)=>zn in Rn?mr(Rn,zn,{enumerable:!0,configurable:!0,writable:!0,value:Un}):Rn[zn]=Un,Fi=(Rn,zn)=>{for(var Un in zn||(zn={}))io.call(zn,Un)&&lo(Rn,Un,zn[Un]);if(ro)for(var Un of ro(zn))Ji.call(zn,Un)&&lo(Rn,Un,zn[Un]);return Rn},Jr=(Rn,zn)=>wi(Rn,no(zn)),bn=(Rn,zn)=>{var Un={};for(var $n in Rn)io.call(Rn,$n)&&zn.indexOf($n)<0&&(Un[$n]=Rn[$n]);if(Rn!=null&&ro)for(var $n of ro(Rn))zn.indexOf($n)<0&&Ji.call(Rn,$n)&&(Un[$n]=Rn[$n]);return Un};const{Countdown:Ze}=_r.default;var Mn=Rn=>{var zn=Rn,{onChange:Un}=zn,$n=bn(zn,["onChange"]);const[Mr,nn]=(0,ot.useState)(null);(0,ot.useEffect)(()=>{typeof Mr=="number"&&Mr>=0&&Un(Mr)},[Mr]);const on=Kt=>{const hn=Math.floor(Kt/1e3);nn(hn)};return ot.createElement(Ze,Jr(Fi({},$n),{onChange:on}))}},99914:function(dn,pn,at){"use strict";at.d(pn,{Z:function(){return _t}});var ot=at(67294);function _t(ae,Ge){const Ie=(0,ot.useRef)();(0,ot.useEffect)(()=>{Ie.current=ae}),(0,ot.useEffect)(()=>{function me(){Ie.current()}if(Ge!==null){let de=setInterval(me,Ge);return()=>clearInterval(de)}},[Ge])}},69223:function(dn,pn,at){"use strict";at.d(pn,{Z:function(){return ze}});var ot=at(67294),_t=at(91773),ae=at(95012),Ge=at(62844),Ie=at(2453),me=at(84567),de=at(36295),Ee=at(21434),we=at(76621),be=at(40471),Te={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",xe=at(96486),fe=at(30001),z=at(67294),ee=Object.defineProperty,oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Se=(Ye,We,Ue)=>We in Ye?ee(Ye,We,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):Ye[We]=Ue,Le=(Ye,We)=>{for(var Ue in We||(We={}))ue.call(We,Ue)&&Se(Ye,Ue,We[Ue]);if(le)for(var Ue of le(We))pe.call(We,Ue)&&Se(Ye,Ue,We[Ue]);return Ye},De=(Ye,We)=>oe(Ye,ie(We));const Fe={theme:(0,be.G)("cmCodeMode","vs-dark"),fontSize:(0,be.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,be.G)("cmTabToSpace",!0)};var Ae=(Ye=>(Ye[Ye.set_font_size=0]="set_font_size",Ye[Ye.set_theme=1]="set_theme",Ye[Ye.on_tab_to_space=2]="on_tab_to_space",Ye[Ye.set_show_editor_setting=3]="set_show_editor_setting",Ye))(Ae||{});function Oe(Ye,We){switch(We.type){case 3:return De(Le({},Ye),{showEditorSetting:We.payload});case 1:return De(Le({},Ye),{theme:We.payload});case 0:return De(Le({},Ye),{fontSize:We.payload});case 2:return De(Le({},Ye),{tabToSpace:We.payload});default:throw new Error}}var ze=({isLoading:Ye,value:We=[],onChange:Ue,form:st})=>{var dt;const[gt,Et]=(0,ot.useReducer)(Oe,Fe),{theme:Ke,fontSize:et,showEditorSetting:$e,tabToSpace:vt}=gt,[wt,ht]=(0,ot.useState)("C"),[pt,ct]=(0,ot.useState)(!1),[Ct,xt]=(0,ot.useState)([]),yt=(0,ot.useRef)([]),Tt=_t.default.useWatch(["hack","languages"],st);(0,ot.useEffect)(()=>{We!=null&&We.length&&(yt.current=(0,xe.cloneDeep)(We))},[We]),(0,ot.useEffect)(()=>{pt&&xt(Tt)},[pt]),(0,ot.useEffect)(()=>{ht(Tt==null?void 0:Tt[0])},[Tt]);const St={onFontSizeChange:rt=>{Et({type:0,payload:rt}),(0,be.t)("cmFontSize",rt)},tabToSpace:vt,cmFontSize:et,className:"oj",cmCodeMode:Ke,onTabToSpace:rt=>{Et({type:2,payload:rt}),(0,be.t)("cmTabToSpace",rt)},onCodeModeChange:rt=>{Et({type:1,payload:rt}),(0,be.t)("cmCodeMode",rt)}};function nt(){Et({type:3,payload:!1})}function Qe(){Et({type:3,payload:!0})}function Ce(rt){var Be;const _e=(Be=yt.current)==null?void 0:Be.map(Xe=>(Xe.language===wt&&(Xe.code=rt),Xe));yt.current=(0,xe.cloneDeep)(_e),Ue(_e)}const Ne={key:wt,value:(dt=We==null?void 0:We.find(rt=>rt.language===wt))==null?void 0:dt.code,language:wt,onChange:Ce,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:et,insertSpaces:vt}};console.log(888,We,Tt);const Je=We.filter(rt=>Tt==null?void 0:Tt.includes(rt.language));return z.createElement(ot.Fragment,null,z.createElement("div",{className:Te["code-panel-container"]},z.createElement(He,{setVisible:ct,languageItems:Je,onLanguage:rt=>ht(rt),language:wt,onShowCodeSetting:Qe}),!Ye&&z.createElement(de.ZP,Le({},Ne))),z.createElement(we.Z,null,z.createElement(ae.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:$e,onClose:nt},z.createElement(Ee.Z,Le({},St)))),z.createElement(Ge.default,{centered:!0,open:pt,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!Ct.length){Ie.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}st.setFieldValue(["hack","languages"],Ct),ct(!1)},onCancel:()=>ct(!1)},z.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},z.createElement(me.default.Group,{value:Ct,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:rt=>{xt(rt)}}))))};function He({languageItems:Ye,language:We,onShowCodeSetting:Ue,onLanguage:st,setVisible:dt}){return z.createElement("div",{className:Te["action-oj-bar"]},Ye==null?void 0:Ye.map(gt=>z.createElement("aside",{className:We===(gt==null?void 0:gt.language)?Te.active:"",onClick:()=>st(gt==null?void 0:gt.language),key:gt==null?void 0:gt.language},z.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),z.createElement("span",null,gt==null?void 0:gt.language))),z.createElement("div",{className:Te.tip},z.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),z.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),z.createElement(fe.op,{onClick:()=>dt(!0),shape:"default"},z.createElement("img",{src:ve,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},55834:function(dn,pn,at){"use strict";at.d(pn,{GM:function(){return Ee},MK:function(){return de},PR:function(){return _t},ZS:function(){return be},d1:function(){return ae},fu:function(){return Ge},j2:function(){return we},l_:function(){return Ie},uE:function(){return Te},zQ:function(){return me}});var ot=at(33170);function _t(){return(0,ot.U2)("problems/new.json")}function ae(xe="question"){return(0,ot.U2)("disciplines.json",{source:xe})}function Ge(xe){return(0,ot.U2)(`problems/${xe}/edit.json`)}function Ie(xe,fe){return(0,ot.gz)(`problems/${xe}.json`,fe)}function me(xe){return(0,ot.v_)("problems.json",xe)}function de(xe,fe){return(0,ot.v_)(`exercises/${xe}/exercise_questions.json`,fe)}function Ee(xe,fe){return(0,ot.gz)(`exercise_questions/${xe}.json`,fe)}function we(xe){return(0,ot.v_)(`problems/${xe}/publish.json`)}function be(xe){return(0,ot.v_)(`problems/${xe}/cancel_publish.json`)}function Te(xe){return(0,ot.U2)(`problems/${xe}/start.json`)}function ve(xe,fe){return post("tag_disciplines.json",{name:fe,sub_discipline_id:xe})}},44048:function(dn,pn,at){"use strict";at.d(pn,{D0:function(){return de},R8:function(){return Ge},jw:function(){return me},y3:function(){return Ee}});var ot=at(88044),_t=at(67294);const{Option:ae}=ot.default;var Ge=(we=>(we[we.language=0]="language",we[we.difficult=1]="difficult",we[we.category=2]="category",we[we.openOrNot=3]="openOrNot",we))(Ge||{});const Ie={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function me(we){return Ie[we].map(be=>_t.createElement(ae,{key:be.title,value:be.key}," ",be.title," "))}function de(we,be){we.map(Te=>{const{id:ve,name:xe,sub_disciplines:fe}=Te;let z={value:ve,label:xe};be.push(z),fe&&fe.length>0&&(z.children=[],de(fe,z.children))})}function Ee(we,be){var Te;let ve=[];for(let xe=0;xe0){ve[0]=fe.id;for(let z=0;zKe in Et?pe(Et,Ke,{enumerable:!0,configurable:!0,writable:!0,value:et}):Et[Ke]=et,ze=(Et,Ke)=>{for(var et in Ke||(Ke={}))Fe.call(Ke,et)&&Oe(Et,et,Ke[et]);if(De)for(var et of De(Ke))Ae.call(Ke,et)&&Oe(Et,et,Ke[et]);return Et},He=(Et,Ke)=>Se(Et,Le(Ke)),Ye=(Et,Ke,et)=>new Promise(($e,vt)=>{var wt=ct=>{try{pt(et.next(ct))}catch(Ct){vt(Ct)}},ht=ct=>{try{pt(et.throw(ct))}catch(Ct){vt(Ct)}},pt=ct=>ct.done?$e(ct.value):Promise.resolve(ct.value).then(wt,ht);pt((et=et.apply(Et,Ke)).next())});const{Dragger:We}=_t.default,Ue=Et=>{const Ke=Ct=>Ct&&Ct.substring(0,Ct.lastIndexOf("."));for(var et=[...Et],$e=0,vt=[],wt=0;wt{if(Ct.forEach(xt=>{let yt=xt.name.split(/\.(?=[^\.]+$)/);xt.name=`${yt[0]}.${yt[1].toLowerCase()}`}),Ct[0].name.includes(".in"))return Ct.length===2?Ct:[Ct[0],{}];if(Ct[0].name.includes(".out"))return Ct.length===2?Ct.reverse():[{},Ct[0]]})},st=({onClose:Et,onOK:Ke,visible:et,wrapClassName:$e,rootIdentifier:vt,multiple:wt=!1,defaultMultipleValue:ht=!0})=>{const[pt,ct]=(0,ot.useState)([]),[Ct,xt]=(0,ot.useState)({}),[yt,Tt]=(0,ot.useState)(!1),[St,nt]=(0,ot.useState)(!0),Qe=(0,ot.useRef)([]),Ce=(0,ot.useRef)(0),Ne=()=>{Et()};(0,ot.useEffect)(()=>{Je()},[]),(0,ot.useEffect)(()=>{et&&(Qe.current=[],Ce.current=0,ct([]),nt(ht))},[et]);const Je=()=>Ye(void 0,null,function*(){try{const zt=yield(0,ee.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),jt=JSON.parse((0,z.pe)(zt.data));xt(jt)}catch(zt){}}),rt=zt=>zt&&zt.substring(0,zt.lastIndexOf(".")),Be=zt=>{var jt,Ht;const ln=rt((jt=zt[0])==null?void 0:jt.name)||rt((Ht=zt[1])==null?void 0:Ht.name),an=pt.filter(sn=>rt(sn.name)!==ln);Qe.current=[...an],ct([...an])},_e=zt=>{if(!St){const $t=new FormData;$t.append("file",zt.file),(0,ee.ZP)("/api/attachments/get_file_content.json",{method:"post",body:$t},!0).then(un=>{if(un.status===0){Ce.current=Ce.current+1;const mn=Qe.current.map(In=>{var Sn;if(In.name===zt.name){const Dn=ze({},In);return(Sn=zt==null?void 0:zt.name)!=null&&Sn.includes(".in")?Dn.input=un==null?void 0:un.content:Dn.output=un==null?void 0:un.content,Dn}return In});if(Qe.current=[...mn],ct([...mn]),Ce.current>0&&Ce.current===pt.length){Tt(!1);let In=Ue(mn);In=In.filter(Sn=>{var Dn,fr;return!!((Dn=Sn[0])!=null&&Dn.name&&((fr=Sn[1])!=null&&fr.name))}),In=In.map(Sn=>He(ze(ze({},Sn[0]),Sn[1]),{is_file:!1})),Ke(In),Et()}}else Tt(!1),Et()});return}const jt=new(fe())({endpoint:Ct.end_point,region:Ct.region,accessKeyId:Ct.access_key_id,accessKeySecret:Ct.access_key_secret,bucket:Ct.bucket,stsToken:Ct.security_token}),Ht=zt.name,ln={container_type:"TestSet",file_name:Ht},an=(0,oe.Z)();let sn=`testsets/${vt}/${an}${Ht.indexOf(".")>-1?"."+Ht.split(".").pop():""}`;vt===null&&(sn=`testsets/${an}${Ht.indexOf(".")>-1?"."+Ht.split(".").pop():""}`),jt.multipartUpload(sn,new Blob([zt.file],{type:zt.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Ht+""},url:Ct==null?void 0:Ct.callback_url,host:Ct==null?void 0:Ct.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ee.rz)(ln)}}).then(function($t){if($t.data.status===0){Ce.current=Ce.current+1;const On=Qe.current.map(un=>{var mn,In,Sn,Dn,fr,_r,mr,wi,no,ro,io,Ji,lo,Fi,Jr,bn,Ze;if(un.name===((In=(mn=$t.data)==null?void 0:mn.data)==null?void 0:In.file_name)){const vn=ze({},un);return(fr=(Dn=(Sn=$t.data)==null?void 0:Sn.data)==null?void 0:Dn.file_name)!=null&&fr.includes(".in")?(vn.in_object_key=(mr=(_r=$t.data)==null?void 0:_r.data)==null?void 0:mr.object,vn.in_object_size=(no=(wi=$t.data)==null?void 0:wi.data)==null?void 0:no.size,vn.input=(io=(ro=$t.data)==null?void 0:ro.data)==null?void 0:io.file_name,vn.in_file=zt):(vn.out_object_key=(lo=(Ji=$t.data)==null?void 0:Ji.data)==null?void 0:lo.object,vn.out_object_size=(Jr=(Fi=$t.data)==null?void 0:Fi.data)==null?void 0:Jr.size,vn.output=(Ze=(bn=$t.data)==null?void 0:bn.data)==null?void 0:Ze.file_name,vn.out_file=zt),vn}return un});if(Qe.current=[...On],ct([...On]),Ce.current>0&&Ce.current===pt.length){Tt(!1);let un=Ue(On);un=un.filter(mn=>{var In,Sn;return!!((In=mn[0])!=null&&In.name&&((Sn=mn[1])!=null&&Sn.name))}),un=un.map(mn=>He(ze(ze({},mn[0]),mn[1]),{is_file:!0})),Ke(un),Et()}}})},Xe=zt=>new Promise((jt,Ht)=>{let ln=0,an=[];for(let sn=0;sn{ln++,ln===zt.length&&(an.length?(ae.ZP.warning(`${an.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Ht()):jt(zt))}).catch($t=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",$t),ln++,an.push(zt[sn].name),ln===zt.length&&(an.length?(ae.ZP.warning(`${an.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Ht()):jt(zt))})}),lt=()=>Ye(void 0,null,function*(){if(pt.length===0){ae.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Xe(pt),Tt(!0),Ue(pt).some(jt=>{var Ht,ln;return!((Ht=jt[0])!=null&&Ht.name&&((ln=jt[1])!=null&&ln.name))})){Ge.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Ye(void 0,null,function*(){pt.map(jt=>Ye(void 0,null,function*(){_e(jt)}))}),onCancel:()=>{Tt(!1)}});return}pt.map(jt=>Ye(void 0,null,function*(){_e(jt)}))}),Pt={name:"file",fileList:pt,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:zt=>{if(pt!=null&&pt.some(Ht=>Ht.name===zt.name))return ae.ZP.info(`${zt.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(zt.size/1024/1024>100)return ae.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(zt.name))return ae.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const jt={name:zt.name,uid:zt.uid,file:zt,percent:0};return pt.push(jt),Qe.current=[...pt],ct([...pt]),!1}},kt=Ue(pt);return console.log(pt,kt,"fileList"),ue.createElement(Ge.default,{open:et,wrapClassName:$e,onOk:lt,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:yt},onCancel:Ne,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},ue.createElement("div",{className:Te.wrap},pt.length?ue.createElement("div",null,ue.createElement(Ie.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},ue.createElement("div",{style:{visibility:wt?"visible":"hidden"}},ue.createElement("span",{className:Te.greyText},"\u7528\u4F8B\u7C7B\u578B"),ue.createElement(me.ZP.Group,{className:`ml20 ${Te.testCaseRadio}`,optionType:"button",value:St,onChange:zt=>nt(zt.target.value)},ue.createElement(me.ZP,{value:!1},"\u6587\u672C"),ue.createElement(me.ZP,{value:!0},"\u6587\u4EF6"))),ue.createElement(_t.default,ze({},Pt),ue.createElement(de.ZP,{type:"primary",className:Te.btnS},ue.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),ue.createElement(dt,{data:kt,onRemove:Be})):ue.createElement("div",{className:`${Te.noData} mb30`},ue.createElement(_t.default.Dragger,He(ze({},Pt),{className:Te.dragger}),ue.createElement("img",{src:ve,alt:"",className:"mb20"}),ue.createElement("div",null,ue.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),ue.createElement("span",{className:Te.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ue.createElement("div",{className:Te.text},ue.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),ue.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",ue.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",ue.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",ue.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",ue.createElement("br",null))))},dt=({data:Et=[],onRemove:Ke,width:et="auto",showScore:$e=!1,disabled:vt=!1,inputChange:wt,onEvaluatingChange:ht,onSelectAll:pt,checkAll1:ct,checkAll2:Ct,checkAll3:xt,checkAll4:yt,checkAll5:Tt,showEvaluatingSetting:St=!1,className:nt="",isProgramHomework:Qe=!1})=>{const Ce={value:"",filename:"",dataUrl:""},[Ne,Je]=(0,ot.useState)(ze({},Ce)),rt=Xe=>{let lt=document.createElement("a");document.body.appendChild(lt);let Pt=URL.createObjectURL(Xe.file);lt.href=Pt,lt.download=Xe.name,lt.click(),URL.revokeObjectURL(Pt),document.body.removeChild(lt)},Be=(Xe,lt)=>{(0,ie.LR)(Xe,lt)},_e=(Xe,lt)=>{Ge.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ue.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Ke(Xe,lt)},onCancel:()=>{}})};return Et.length?ue.createElement("div",{className:nt,style:{width:et}},ue.createElement("div",{className:`${Qe?Te.headProgram:Te.head}`},St&&ue.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},ue.createElement(Ee.default,{checked:ct,onChange:Xe=>{pt(Xe.target.checked,"hidden")}}),ue.createElement(we.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},ue.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ue.createElement("div",{style:{width:Qe?"25%":"15%"}},"\u7528\u4F8B"),ue.createElement("div",{style:{width:$e?Qe?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),ue.createElement("div",{style:{width:$e?Qe?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),$e&&ue.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),St&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Ee.default,{checked:yt,onChange:Xe=>{pt(Xe.target.checked,"input_visible")}}),ue.createElement(we.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),St&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Ee.default,{checked:Ct,onChange:Xe=>{pt(Xe.target.checked,"is_invisible")}}),ue.createElement(we.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),St&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Ee.default,{checked:Tt,onChange:Xe=>{pt(Xe.target.checked,"actual_output_visible")}}),ue.createElement(we.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),St&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Ee.default,{checked:xt,onChange:Xe=>{pt(Xe.target.checked,"last_match_rule")}}),ue.createElement(we.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ue.createElement("div",{className:Te.operation,style:Qe?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),ue.createElement("div",{className:Te.listWrapper,style:{boxShadow:Qe?"0px 2px 4px 0px #EAEEF4":"unset"}},Et.map((Xe,lt)=>{var Pt,kt,zt,jt;return ue.createElement("div",{key:lt,className:Te.list,style:Qe?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},St&&ue.createElement("div",{style:{width:"15%"}},ue.createElement(Ee.default,{checked:!!Xe.hidden,onChange:Ht=>{ht(Ht.target.checked,lt,"hidden")}})),ue.createElement("div",{style:{width:Qe?"25%":"15%",paddingLeft:Qe?"5px":"0px",paddingRight:Qe?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",lt+1),ue.createElement("div",{className:Te.info,style:{width:$e?Qe?"20%":"15%":"25%"}},ue.createElement("span",{title:Xe.input||((Pt=Xe[0])==null?void 0:Pt.name),onClick:()=>Ye(void 0,null,function*(){let Ht;Xe.input?Xe.input_file_url?Ht=Xe.input_file_url:Ht=Xe.in_file:Ht=Xe[0];let ln;typeof Ht=="string"?(ln=yield fetch(Ht,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Je({value:yield ln.text(),filename:"",dataUrl:Ht})):(ln=yield(0,ie.db)(Ht.file),Je({value:ln.text,filename:Ht.name,dataUrl:ln.link}))})},Xe.input||((kt=Xe[0])==null?void 0:kt.name))),ue.createElement("div",{className:Te.info,style:{width:$e?Qe?"20%":"15%":"25%"}},ue.createElement("span",{title:Xe.output||((zt=Xe[1])==null?void 0:zt.name),onClick:()=>Ye(void 0,null,function*(){let Ht;Xe.input?Xe.output_file_url?Ht=Xe.output_file_url:Ht=Xe.out_file:Ht=Xe[1];let ln;typeof Ht=="string"?(ln=yield fetch(Ht,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Je({value:yield ln.text(),filename:"",dataUrl:Ht})):(ln=yield(0,ie.db)(Ht.file),Je({value:ln.text,filename:Ht.name,dataUrl:ln.link}))})},Xe.output||((jt=Xe[1])==null?void 0:jt.name))),$e&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(be.default,{size:"large",addonAfter:Qe?"%":null,disabled:vt,style:{width:"80%"},onChange:Ht=>wt(Ht,lt),value:Xe.score}),!Qe&&ue.createElement("span",null,"\xA0%")),St&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Ee.default,{checked:Xe.input_visible||!1,onChange:Ht=>{ht(Ht.target.checked,lt,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),St&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Ee.default,{checked:Xe.is_invisible||!1,onChange:Ht=>{ht(Ht.target.checked,lt,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),St&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Ee.default,{checked:Xe.actual_output_visible||!1,onChange:Ht=>{ht(Ht.target.checked,lt,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),St&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Ee.default,{checked:Xe.last_match_rule||!1,onChange:Ht=>{ht(Ht.target.checked,lt,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),ue.createElement("div",{onClick:()=>_e(Xe,lt),style:Qe?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},ue.createElement("span",{className:Te.del},"\u5220\u9664")))})),ue.createElement(le.Z,{close:!0,data:Ne.dataUrl,filename:Ne.filename,type:Ne.dataUrl.length?"txt":"",onClose:()=>Je(ze({},Ce)),monacoEditor:{value:Ne.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):ue.createElement(ue.Fragment,null)};var gt=st},71573:function(dn,pn,at){"use strict";at.d(pn,{c:function(){return _t}});var ot=(ae=>(ae.FirstPage="firstPage",ae.PrevPage="prevPage",ae.NextPage="nextPage",ae))(ot||{}),_t=(ae=>(ae[ae.Single=0]="Single",ae[ae.Multiple=1]="Multiple",ae[ae.Judge=2]="Judge",ae[ae.Fill=3]="Fill",ae[ae.Subjective=4]="Subjective",ae[ae.Shixun=5]="Shixun",ae[ae.Program=6]="Program",ae[ae.Combine=7]="Combine",ae))(_t||{})},51161:function(dn,pn,at){"use strict";at.d(pn,{AL:function(){return pe},Iy:function(){return Te},Qv:function(){return fe},ez:function(){return ue},jb:function(){return ve}});var ot=at(47084),_t=at.n(ot),ae=at(90621),Ge=at.n(ae);let Ie=1;function me(Ae,Oe){const ze=Ae.match(/^(\s+)(?:```)/);if(ze===null)return Oe;const He=ze[1];return Oe.split(` `).map(Ye=>{const We=Ye.match(/^\s+/);if(We===null)return Ye;const[Ue]=We;return Ue.length>=He.length?Ye.slice(He.length):Ye}).join(` `)}let de=[],Ee=["