(self.webpackChunk=self.webpackChunk||[]).push([[1199],{10906:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Mt}});var ee=ce(71409),wt=ce(59301),Qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},Zt=Qt,Ot=ce(7657),jt=function(St,kt){return wt.createElement(Ot.Z,(0,ee.Z)({},St,{ref:kt,icon:Zt}))},Ct=wt.forwardRef(jt),Mt=Ct},8336:function(){"use strict"},12469:function(){"use strict"},99587:function(Cn,Gn){"use strict";Gn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63720:function(){"use strict";function Cn(yt,et,tt,lt){tt===void 0&&(tt=0),lt===void 0&&(lt=1/0),this._name=yt,this._defaultValue=et,this._minimum=tt,this._maximum=lt}Object.defineProperty(Cn.prototype,"name",{get:function(){return this._name},set:function(yt){if(typeof yt!="string"||yt==="")throw new Error("Shape name must be a valid string.");this._name=yt}}),Object.defineProperty(Cn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(yt){if(typeof yt!="number"||isNaN(yt))throw new Error("The default value must be a real number, not: "+yt);this._defaultValue=yt}}),Object.defineProperty(Cn.prototype,"minimum",{get:function(){return this._minimum},set:function(yt){if(typeof yt!="number"||isNaN(yt))throw new Error("Minimum must be a real number, not: "+yt);this._minimum=yt}}),Object.defineProperty(Cn.prototype,"maximum",{get:function(){return this._maximum},set:function(yt){if(typeof yt!="number"||isNaN(yt))throw new Error("Maximum must be a real number, not: "+yt);this._maximum=yt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(yt,et){var tt=go.Shape._FigureParameters[yt];return tt?tt[et]:null},go.Shape.setFigureParameter=function(yt,et,tt){if(!(tt instanceof Cn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValuett.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var lt=go.Shape._FigureParameters[yt];lt||(lt=[],go.Shape._FigureParameters[yt]=lt),lt[et]=tt};var Gn=[];function ce(yt,et){var tt=Gn.pop();return tt===void 0?new go.Point(yt,et):(tt.x=yt,tt.y=et,tt)}function ee(){var yt=Gn.pop();return yt===void 0?new go.Point:yt}function wt(yt){Gn.push(yt)}function Qt(yt,et,tt,lt,ot,ut,ct,ft,gt){gt||(gt=new go.Point);var Lt=yt-tt,Rt=ot-ct,Ut=NaN,Nt=NaN;if(Lt===0)if(Rt===0)yt===tt&&(Ut=yt,Nt=et);else{var qt=(ut-ft)/Rt,te=ut-qt*ot;Ut=yt,Nt=qt*Ut+te}else if(Rt===0){var Vt=(et-lt)/Lt,de=et-Vt*yt;Ut=ot,Nt=Vt*Ut+de}else{var Vt=(et-lt)/Lt,qt=(ut-ft)/Rt,de=et-Vt*yt,te=ut-qt*ot;Ut=(te-de)/(Vt-qt),Nt=Vt*Ut+de}return gt.x=Ut,gt.y=Nt,gt}function Zt(yt,et,tt,lt,ot,ut,ct,ft,gt,Lt,Rt,Ut,Nt,qt){var te=1-gt,Vt=gt,de=yt*te+tt*Vt,ge=et*te+lt*Vt,be=tt*te+ot*Vt,Ne=lt*te+ut*Vt,Ge=ot*te+ct*Vt,Pe=ut*te+ft*Vt,ze=de*te+be*Vt,he=ge*te+Ne*Vt,Jt=be*te+Ge*Vt,re=Ne*te+Pe*Vt,se=ze*te+Jt*Vt,pe=he*te+re*Vt;Lt.x=de,Lt.y=ge,Rt.x=ze,Rt.y=he,Ut.x=se,Ut.y=pe,Nt.x=Jt,Nt.y=re,qt.x=Ge,qt.y=Pe}var Ot=new go.Spot(.156,.156),jt=new go.Spot(.844,.844),Ct=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Cn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=5),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var ot=lt*Ct,ut=new go.Geometry().add(new go.PathFigure(lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-ot,0,et,ot)).add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)).add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,tt-ot,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,lt,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,ot,tt,0,tt-ot)).add(new go.PathSegment(go.PathSegment.Line,0,lt)).add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,ot,ot,0).close()));return ot>1&&(ut.spot1=new go.Spot(0,0,ot,ot),ut.spot2=new go.Spot(1,1,-ot,-ot)),ut}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(yt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=0,lt.startY=tt/2,lt.endX=et,lt.endY=tt/2,lt}),go.Shape.defineFigureGenerator("LineV",function(yt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=et/2,lt.startY=0,lt.endX=et/2,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("XLine",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LineRight",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)))}),go.Shape.defineFigureGenerator("LineDown",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.25*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)))}),go.Shape.defineFigureGenerator("LineLeft",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)))}),go.Shape.defineFigureGenerator("LineUp",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.75*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(yt,et,tt){var lt=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(lt*et,(1-lt)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt/2)).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("CircleLine",function(yt,et,tt){var lt=et/2,ot=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close()));return ot.spot1=Ot,ot.spot2=jt,ot.defaultStretch=go.GraphObject.Uniform,ot}),go.Shape.defineFigureGenerator("Line1",function(yt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=0,lt.startY=0,lt.endX=et,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("Line2",function(yt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=et,lt.startY=0,lt.endX=0,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("Curve1",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Ct*et,0,et,(1-Ct)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,Ct*tt,(1-Ct)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,Ct*tt,Ct*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-Ct)*et,0,0,(1-Ct)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Cn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)?lt=.1:lt<-1?lt=-1:lt>1&&(lt=1);var ot=Math.abs(lt)*et;if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(ot,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-ot,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,tt).close())),otet&&(lt=et);var ot=Math.abs(lt);if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(ot,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-ot,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,tt).close())),ot.5&&(lt=.5);var ot=Math.abs(lt)*et;if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(ot,0).add(new go.PathSegment(go.PathSegment.Line,et-ot,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,tt).close())),otet&&(lt=et/2);var ot=Math.abs(lt);if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(ot,0).add(new go.PathSegment(go.PathSegment.Line,et-ot,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,tt).close())),otet&&(lt=et/2);var ot=Math.abs(lt);if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,tt).close())):ut.add(new go.PathFigure(ot,0).add(new go.PathSegment(go.PathSegment.Line,et-ot,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),ot0&&(ct.add(new go.PathSegment(go.PathSegment.Move,et/2+ft,et/2)),ct.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ot,ot,ft,ft).close())),ut.spot1=Ot,ut.spot2=jt,ut.defaultStretch=go.GraphObject.Uniform,ut}),go.Shape.defineFigureGenerator("Cloud",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*tt,-.09239631*et,.07836421*tt,.1406031*et,-.0542823*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*tt,.2450511*et,-.00697547*tt,.3776197*et,-.01112067*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*tt,.4539471*et,0,.6066018*et,-.02526587*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*tt,.6914277*et,-.01904177*tt,.8921095*et,-.01220843*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*tt,1.036446*et,.04105738*tt,1.020377*et,.3022052*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*tt,1.04448*et,.360238*tt,.992256*et,.5219009*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*tt,1.032337*et,.5771781*tt,1.018411*et,.8120651*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*tt,1.028411*et,.9571472*tt,.8556702*et,1.052487*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*tt,.7431877*et,1.009325*tt,.5624123*et,1.021761*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*tt,.4820677*et,1.031761*tt,.3030112*et,1.002796*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*tt,.2329994*et,1.01518*tt,.03213784*et,1.01518*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*tt,-.02812061*et,.9032597*tt,-.01205169*et,.6835638*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*tt,-.01812061*et,.6089503*tt,-.00606892*et,.4555777*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*tt,-.01606892*et,.3892545*tt,-.01205169*et,.1944299*tt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(yt,et,tt){var lt=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(lt*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close())).setSpots(lt/2,lt/2,1-lt/2,1-lt/2)}),go.Shape.setFigureParameter("Pie",0,new Cn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Cn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(yt,et,tt){var lt=yt?yt.parameter1:NaN,ot=yt?yt.parameter2:NaN;isNaN(lt)&&(lt=0),isNaN(ot)&&(ot=315);var ut=lt%360;ut<0&&(ut+=360);var ct=ot%360,ft=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(ft,ft).add(new go.PathSegment(go.PathSegment.Arc,ut,ct,ft,ft,ft,ft).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(yt,et,tt){var lt=Ct/Math.SQRT2*.5,ot=Math.SQRT2/2,ut=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,ot*et,ut*tt,et,(1-lt)*tt,(ot+lt)*et,(ut+lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30);var ot=Math.min(lt,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-ot,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+ot,0)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,et,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,et,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,0,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,0,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,ct-ot).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var ot=Math.min(lt,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-ot,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+ot,0)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,et,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,et,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,ut+ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,0,ct+ot)).add(new go.PathSegment(go.PathSegment.Line,0,ct-ot)).add(new go.PathSegment(go.PathSegment.Line,ut-ot,ct-ot).close()))}),go.Shape.setFigureParameter("ThickX",0,new Cn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;if((isNaN(lt)||lt<0)&&(lt=30),et===0||tt===0){var ot=new go.Geometry(go.Geometry.Rectangle);return ot.startX=0,ot.startY=0,ot.endX=et,ot.endY=tt,ot}else{var ut=et/2,ct=tt/2,ft=Math.atan2(tt,et),gt=lt-Math.min(Math.cos(ft)*lt/2,ut),Lt=lt-Math.min(Math.sin(ft)*lt/2,ct),ot=new go.Geometry,Rt=new go.PathFigure(gt,0,!0);return ot.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,ut,.2*tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,et-gt,0)),Rt.add(new go.PathSegment(go.PathSegment.Line,et,Lt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,et,tt-Lt)),Rt.add(new go.PathSegment(go.PathSegment.Line,et-gt,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,ut,.8*tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,gt,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,tt-Lt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,Lt).close()),ot}}),go.Shape.setFigureParameter("ThinX",0,new Cn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var ot=new go.Geometry,ut=new go.PathFigure(.1*et,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),ot}),go.Shape.setFigureParameter("SquareIBeam",0,new Cn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.2);var ot=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close()),ot}),go.Shape.setFigureParameter("RoundedIBeam",0,new Cn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.5);var ot=new go.Geometry,ut=new go.PathFigure(0,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-lt)*et,.25*tt,Math.abs(1-lt)*et,.75*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),ot}),go.Shape.defineFigureGenerator("HalfEllipse",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,Ct*et,0,et,(.5-Ct/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+Ct/2)*tt,Ct*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,0,et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*tt,.5*et,.25*tt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,.1*et,.8*tt,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.5*tt,.9*et,.8*tt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*tt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.6*et,.2*tt,et,.25*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*tt,et,.8*tt,.6*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,.5*et,.75*tt,.55*et,.95*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*tt,.45*et,.95*tt,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.4*et,.8*tt,0,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*tt,0,.25*tt,.4*et,.2*tt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.4*et,.6*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,tt,.5*et,.75*tt,.45*et,.95*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*tt,.55*et,.95*tt,.5*et,.75*tt));var ut=.2,ct=.3,ft=0,gt=ut*Ct;return ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+gt+ft)*tt,(.5-gt+ct)*et,(.5+ut+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+ft)*tt,(.5+gt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+gt+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct)*et,(.5-gt+ft)*tt,(.5+gt+ct)*et,(.5-ut+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-gt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct+.05)*et,(.5-gt+ft-.02)*tt)),ut=.2,ct=0,ft=-.3,gt=ut*Ct,ot.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+ft)*tt,(.5+gt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+gt+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct)*et,(.5-gt+ft)*tt,(.5+gt+ct)*et,(.5-ut+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+ft)*tt,(.5-gt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct)*et,(.5-gt+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+gt+ft)*tt,(.5-gt+ct)*et,(.5+ut+ft)*tt)),ut=.2,ct=-.3,ft=0,gt=ut*Ct,ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct-.05)*et,(.5-gt+ft-.02)*tt,(.5+gt+ct)*et,(.5-ut+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+ft)*tt,(.5-gt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct)*et,(.5-gt+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+gt+ft)*tt,(.5-gt+ct)*et,(.5+ut+ft)*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+gt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+gt+ft)*tt).close()),lt.setSpots(.06,.33,.93,.68),lt}),go.Shape.defineFigureGenerator("YinYang",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*.5,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),ot.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),ot.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var ut=.1,ct=.5,ft=.25;return ot.add(new go.PathSegment(go.PathSegment.Move,(ct+ut)*et,ft*tt)),ot.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*ct,tt*ft,ut*et,ut*et).close()),ot=new go.PathFigure(et*.5,0,!1),lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),ft=.75,ot=new go.PathFigure((ct+ut)*et,ft*tt,!0),lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*ct,tt*ft,ut*et,ut*et).close()),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Peace",function(yt,et,tt){var lt=.8535533905932737,ot=.5*et,ut=.5*tt;return new go.Geometry().add(new go.PathFigure(ot,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,ot,ut,ot,ut)).add(new go.PathSegment(go.PathSegment.Line,ot,tt)).add(new go.PathSegment(go.PathSegment.Move,ot,ut)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,ot,ut)).add(new go.PathSegment(go.PathSegment.Line,lt*et,lt*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=.5,ct=.5,ft=.5,gt=new go.PathFigure(ct*et,(ft-ut)*tt);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),ut=.4,ot=Ct*.4;var Lt=ee(),Rt=ee(),Ut=ee(),Nt=ee();Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.42,Lt,Rt,Ut,Nt,Nt);var qt=ee(),te=ee(),Vt=ee();Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.58,Nt,Nt,Vt,qt,te);var de=ee(),ge=ee(),be=ee();Zt(ct,ft+ut,ct-ot,ft+ut,ct-ut,ft+ot,ct-ut,ft,.42,de,ge,be,Nt,Nt);var Ne=ee(),Ge=ee(),Pe=ee();return Zt(ct,ft+ut,ct-ot,ft+ut,ct-ut,ft+ot,ct-ut,ft,.58,Nt,Nt,Pe,Ne,Ge),gt.add(new go.PathSegment(go.PathSegment.Move,Pe.x*et,Pe.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,Ne.x*et,Ne.y*tt,Ge.x*et,Ge.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,Lt.x*et,Lt.y*tt,Rt.x*et,Rt.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,Pe.x*et,Pe.y*tt).close()),gt.add(new go.PathSegment(go.PathSegment.Move,be.x*et,be.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,Vt.x*et,Vt.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,qt.x*et,qt.y*tt,te.x*et,te.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,be.x*et,be.y*tt,de.x*et,de.y*tt,ge.x*et,ge.y*tt).close()),wt(Lt),wt(Rt),wt(Ut),wt(Nt),wt(qt),wt(te),wt(Vt),wt(de),wt(ge),wt(be),wt(Ne),wt(Ge),wt(Pe),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Fragile",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*tt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*tt,et,.25*tt,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*tt,0,.25*tt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Cn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30),lt>et&&(lt=et);var ot=(et-lt)/2,ut=ot+lt;return new go.Geometry().add(new go.PathFigure(ut,.5*tt).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,ot,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.55*tt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*tt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.4,ut=.4,ct=.5,ft=.5,gt=ee(),Lt=ee(),Rt=ee(),Ut=ee(),Nt=new go.PathFigure((ct-ut)*et,ft*tt,!1);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt)),Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.44,Rt,Ut,Lt,gt,gt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Lt.x*et,Lt.y*tt,Rt.x*et,Rt.y*tt,Ut.x*et,Ut.y*tt));var qt=ce(Lt.x,Lt.y);Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.56,gt,gt,Lt,Rt,Ut);var te=ce(Lt.x,Lt.y);Nt.add(new go.PathSegment(go.PathSegment.Line,(qt.x*.1+.95*.9)*et,qt.y*.1*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.85*et,qt.y*.1*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,et,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,(te.x*.1+.9)*et,.15*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,(te.x*.1+.9)*et,(te.y*.1+.05*.9)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,te.x*et,te.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,Rt.x*et,Rt.y*tt,Ut.x*et,Ut.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt)),ut=.35,ot=Ct*.35;var Vt=new go.PathFigure(ct*et,(ft-ut)*tt,!1);lt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt));var de=new go.PathFigure((ct-ut)*et,ft*tt,!1);return lt.add(de),wt(gt),wt(Lt),wt(Rt),wt(Ut),wt(qt),wt(te),lt.spot1=new go.Spot(.202,.257),lt.spot2=new go.Spot(.792,.739),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("GenderFemale",function(yt,et,tt){var lt=new go.Geometry,ot=.375,ut=0,ct=-.125,ft=ot*Ct,gt=new go.PathFigure((.525+ut)*et,(.5+ot+ct)*tt,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ot+ut)*et,(.5+ct)*tt,(.5+ft+ut)*et,(.5+ot+ct)*tt,(.5+ot+ut)*et,(.5+ft+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-ot+ct)*tt,(1-.5+ot+ut)*et,(.5-ft+ct)*tt,(.5+ft+ut)*et,(.5-ot+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ot+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5-ot+ct)*tt,(.5-ot+ut)*et,(.5-ft+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ut)*et,(.5+ot+ct)*tt,(.5-ot+ut)*et,(.5+ft+ct)*tt,(.5-ft+ut)*et,(.5+ot+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),ot=.325,ut=0,ct=-.125,ft=ot*Ct;var gt=new go.PathFigure((1-.5+ot+ut)*et,(.5+ct)*tt,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5+ot+ct)*tt,(.5+ot+ut)*et,(.5+ft+ct)*tt,(.5+ft+ut)*et,(.5+ot+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ot+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5+ot+ct)*tt,(.5-ot+ut)*et,(.5+ft+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-ot+ct)*tt,(.5-ot+ut)*et,(.5-ft+ct)*tt,(.5-ft+ut)*et,(.5-ot+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ot+ut)*et,(.5+ct)*tt,(.5+ft+ut)*et,(.5-ot+ct)*tt,(1-.5+ot+ut)*et,(.5-ft+ct)*tt));var gt=new go.PathFigure((.525+ut)*et,(.5+ot+ct)*tt,!1);return lt.add(gt),lt.spot1=new go.Spot(.232,.136),lt.spot2=new go.Spot(.682,.611),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("LogicImplies",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;return isNaN(lt)&&(lt=.2),new go.Geometry().add(new go.PathFigure((1-lt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;return isNaN(lt)&&(lt=.2),new go.Geometry().add(new go.PathFigure((1-lt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,lt*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,lt*et,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(yt,et,tt){var lt=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*tt,.5*et,.5*tt)));return lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("LogicTruth",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(yt,et,tt){var lt=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,lt*et,lt*tt,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(yt,et,tt){var lt=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,lt*et,lt*tt,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Cn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Cn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.3);var ot=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=.3);var ut=(1-lt)*et,ct=(.5-ot/2)*tt,ft=(.5+ot/2)*tt,gt=new go.Geometry,Lt=new go.PathFigure(0,ct,!0);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,ft)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,ft).close()),gt.spot1=new go.Spot(0,ct/tt);var Rt=Qt(0,ft/tt,1,ft/tt,ut/et,1,1,.5,ee());return gt.spot2=new go.Spot(Rt.x,Rt.y),wt(Rt),gt}),go.Shape.setFigureParameter("Arrow2",0,new Cn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Cn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=30),lt>et&&(lt=et);var ot=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=30),ot=Math.min(ot,tt/2);var ut=et-lt,ct=(tt-ot)/2,ft=ct+ot,gt=new go.Geometry,Lt=new go.PathFigure(0,ct,!0);gt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,ut,ft)),Lt.add(new go.PathSegment(go.PathSegment.Line,0,ft).close()),gt.spot1=new go.Spot(0,ct/tt);var Rt=Qt(0,ft/tt,1,ft/tt,ut/et,1,1,.5,ee());return gt.spot2=new go.Spot(Rt.x,Rt.y),wt(Rt),gt}),go.Shape.defineFigureGenerator("Chevron",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("DoubleArrow",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,1*tt).close()),lt}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Cn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.3);var ot=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var gt=Qt(0,.5,.3,0,0,ot/tt,.1,ot/tt,ee());return ct.spot1=new go.Spot(gt.x,gt.y),gt=Qt(.7,1,1,.5,0,ut/tt,1,ut/tt,gt),ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Cn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Cn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=40);var ot=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=100);var ut=(tt-lt)/2,ct=ut+lt,ft=(tt-ot)/2,gt=ft+ot;(lt>tt||ot>tt)&&(ot>lt?(lt=lt*tt/ot,ut=(tt-lt)/2,ct=ut+lt,ft=0,gt=tt):(ut=0,ct=tt,ft=0,gt=tt));var Lt=new go.Geometry,Rt=new go.PathFigure(et,.5*tt,!0);Lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ft)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft).close());var Ut=Qt(0,.5,.3,ft/tt,0,ut/tt,1,ut/tt,ee());return Lt.spot1=new go.Spot(Ut.x,Ut.y),Ut=Qt(.7,gt/tt,1,.5,0,ct/tt,1,ct/tt,Ut),Lt.spot2=new go.Spot(Ut.x,Ut.y),wt(Ut),Lt}),go.Shape.setFigureParameter("IBeamArrow",0,new Cn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.3);var ot=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(0,ot/tt);var gt=Qt(.7,1,1,.5,0,ut/tt,1,ut/tt,ee());return ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("IBeamArrow2",0,new Cn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Cn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=40);var ot=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=100);var ut=(tt-lt)/2,ct=ut+lt,ft=(tt-ot)/2,gt=ft+ot;(lt>tt||ot>tt)&&(ot>lt?(lt=lt*tt/ot,ut=(tt-lt)/2,ct=ut+lt,ft=0,gt=tt):(ut=0,ct=tt,ft=0,gt=tt));var Lt=new go.Geometry,Rt=new go.PathFigure(et,.5*tt,!0);Lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ft)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft).close()),Lt.spot1=new go.Spot(0,ut/tt);var Ut=Qt(.7,gt/tt,1,.5,0,ct/tt,1,ct/tt,ee());return Lt.spot2=new go.Spot(Ut.x,Ut.y),wt(Ut),Lt}),go.Shape.setFigureParameter("Pointer",0,new Cn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.1);var ot=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),ot.spot1=new go.Spot(lt,.35);var ct=Qt(.2,.65,1,.65,0,1,1,.5,ee());return ot.spot2=new go.Spot(ct.x,ct.y),wt(ct),ot}),go.Shape.setFigureParameter("RoundedPointer",0,new Cn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.3);var ot=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),ot.spot1=new go.Spot(lt,.35);var ct=Qt(0,.65,1,.65,0,1,1,.5,ee());return ot.spot2=new go.Spot(ct.x,ct.y),wt(ct),ot}),go.Shape.setFigureParameter("SplitEndArrow",0,new Cn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.4);var ot=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,.3);var gt=Qt(.7,1,1,.5,0,ut/tt,1,ut/tt,ee());return ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Cn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=50);var ot=(tt-lt)/2,ut=ot+lt;lt>tt&&(ot=0,ut=tt);var ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,ot/tt);var gt=Qt(.7,1,1,.5,0,ut/tt,1,ut/tt,ee());return ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("SquareArrow",0,new Cn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.7);var ot=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),ot.spot1=go.Spot.TopLeft,ot.spot2=new go.Spot(lt,1),ot}),go.Shape.defineFigureGenerator("Cone1",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=Ct*.1,ct=new go.PathFigure(0,.9*tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-ot)*et,tt,0,(.9+ut)*tt).close()),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.97),lt}),go.Shape.defineFigureGenerator("Cone2",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.9*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,tt,.85/.9*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt).close());var ut=new go.PathFigure(0,.9*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,.8*tt,.85/.9*et,.8*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.82),lt}),go.Shape.defineFigureGenerator("Cube1",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.5,.85),lt}),go.Shape.defineFigureGenerator("Cube2",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.3*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var ut=new go.PathFigure(0,.3*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.7,1),lt}),go.Shape.defineFigureGenerator("Cylinder1",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var ot=new go.Geometry,ut=Ct*.5,ct=new go.PathFigure(0,lt,!0);ot.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Ct*lt,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,1*et,lt,(.5+ut)*et,0,1*et,Ct*lt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-Ct*lt,(.5+ut)*et,1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ut)*et,1*tt,0,tt-Ct*lt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,lt));var ft=new go.PathFigure(et,lt,!1);return ot.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*lt,1*et,2*lt-Ct*lt,(.5+ut)*et,2*lt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,lt,(.5-ut)*et,2*lt,0,2*lt-Ct*lt)),ot.spot1=new go.Spot(0,0,0,2*lt),ot.spot2=new go.Spot(1,1),ot}),go.Shape.defineFigureGenerator("Cylinder2",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var ot=new go.Geometry,ut=Ct*.5,ct=new go.PathFigure(0,tt-lt,!0);ot.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,lt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Ct*lt,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,(.5+ut)*et,0,et,Ct*lt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-Ct*lt,(.5+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ut)*et,tt,0,tt-Ct*lt));var ft=new go.PathFigure(0,tt-lt,!1);return ot.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*lt,0,tt-lt-Ct*lt,(.5-ut)*et,tt-2*lt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-lt,(.5+ut)*et,tt-2*lt,et,tt-lt-Ct*lt)),ot.spot1=new go.Spot(0,0),ot.spot2=new go.Spot(1,1,0,-2*lt),ot}),go.Shape.defineFigureGenerator("Cylinder3",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var ot=new go.Geometry,ut=Ct*.5,ct=new go.PathFigure(lt,0,!0);ot.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Ct*lt,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ut)*tt,et-Ct*lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Ct*lt,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ut)*tt,Ct*lt,0));var ft=new go.PathFigure(lt,0,!1);return ot.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,2*lt,.5*tt,lt+Ct*lt,0,2*lt,(.5-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,lt,tt,2*lt,(.5+ut)*tt,lt+Ct*lt,tt)),ot.spot1=new go.Spot(0,0,2*lt,0),ot.spot2=new go.Spot(1,1),ot}),go.Shape.defineFigureGenerator("Cylinder4",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var ot=new go.Geometry,ut=Ct*.5,ct=new go.PathFigure(et-lt,0,!0);ot.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Ct*lt,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ut)*tt,et-Ct*lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Ct*lt,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ut)*tt,Ct*lt,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et-lt,0));var ft=new go.PathFigure(et-lt,0,!1);return ot.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-2*lt,.5*tt,et-lt-Ct*lt,0,et-2*lt,(.5-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et-2*lt,(.5+ut)*tt,et-lt-Ct*lt,tt)),ot.spot1=new go.Spot(0,0),ot.spot2=new go.Spot(1,1,-2*lt,0),ot}),go.Shape.defineFigureGenerator("Prism1",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.25*et,.25*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.25*et,.25*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.408,.172),lt.spot2=new go.Spot(.833,.662),lt}),go.Shape.defineFigureGenerator("Prism2",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.25*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("Pyramid1",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Pyramid2",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Actor",function(yt,et,tt){var lt=new go.Geometry,ot=.2,ut=.1,ct=Ct*ot,ft=Ct*ut,gt=.5,Lt=.1,Rt=new go.PathFigure(gt*et,(Lt+ut)*tt,!0);lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ot)*et,Lt*tt,(gt-ct)*et,(Lt+ut)*tt,(gt-ot)*et,(Lt+ft)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-ut)*tt,(gt-ot)*et,(Lt-ft)*tt,(gt-ct)*et,(Lt-ut)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ot)*et,Lt*tt,(gt+ct)*et,(Lt-ut)*tt,(gt+ot)*et,(Lt-ft)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt+ut)*tt,(gt+ot)*et,(Lt+ft)*tt,(gt+ct)*et,(Lt+ut)*tt));var Ut=.05,Nt=Ct*Ut;gt=.05,Lt=.25;var qt=new go.PathFigure(.5*et,.2*tt,!0);return lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),gt=.95,Lt=.25,qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+Ut)*et,Lt*tt,(gt+Nt)*et,(Lt-Ut)*tt,(gt+Ut)*et,(Lt-Nt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),Ut=.025,Nt=Ct*Ut,gt=.825,Lt=.35,qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-Ut)*tt,(gt+Ut)*et,(Lt-Nt)*tt,(gt+Nt)*et,(Lt-Ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-Ut)*et,Lt*tt,(gt-Nt)*et,(Lt-Ut)*tt,(gt-Ut)*et,(Lt-Nt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),Ut=.05,Nt=Ct*Ut,gt=.5,Lt=.7,qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-Ut)*tt,(gt+Ut)*et,(Lt-Nt)*tt,(gt+Nt)*et,(Lt-Ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-Ut)*et,Lt*tt,(gt-Nt)*et,(Lt-Ut)*tt,(gt-Ut)*et,(Lt-Nt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),Ut=.025,Nt=Ct*Ut,gt=.175,Lt=.35,qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-Ut)*tt,(gt+Ut)*et,(Lt-Nt)*tt,(gt+Nt)*et,(Lt-Ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-Ut)*et,Lt*tt,(gt-Nt)*et,(Lt-Ut)*tt,(gt-Ut)*et,(Lt-Nt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),Ut=.05,Nt=Ct*Ut,gt=.05,Lt=.25,qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-Ut)*tt,(gt-Ut)*et,(Lt-Nt)*tt,(gt-Nt)*et,(Lt-Ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),lt.spot1=new go.Spot(.2,.2),lt.spot2=new go.Spot(.8,.65),lt}),go.Shape.setFigureParameter("Card",0,new Cn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;isNaN(lt)&&(lt=.2);var ot=new go.Geometry,ut=new go.PathFigure(et,0,!0);return ot.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),ot.spot1=new go.Spot(0,lt),ot.spot2=go.Spot.BottomRight,ot}),go.Shape.defineFigureGenerator("Collate",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,.5*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt));var ut=new go.PathFigure(.5*et,.5*tt,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,.25),lt}),go.Shape.defineFigureGenerator("CreateRequest",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,ot*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,ot*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-ot)*tt)),lt}),go.Shape.defineFigureGenerator("Database",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=Ct*.1,ct=new go.PathFigure(et,.1*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-ot)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+ot)*et,0,et,(.1-ut)*tt));var ft=new go.PathFigure(et,.1*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+ot)*et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-ot)*et,.2*tt,0,(.1+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+ot)*et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-ot)*et,.3*tt,0,(.2+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ut)*tt,(.5+ot)*et,.4*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-ot)*et,.4*tt,0,(.3+ut)*tt)),lt.spot1=new go.Spot(0,.4),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("DataStorage",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*tt,.25*et,.1*tt).close()),lt.spot1=new go.Spot(.226,0),lt.spot2=new go.Spot(.81,1),lt}),go.Shape.defineFigureGenerator("DiskStorage",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=Ct*.1,ct=new go.PathFigure(et,.1*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-ot)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+ot)*et,0,et,(.1-ut)*tt));var ft=new go.PathFigure(et,.1*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+ot)*et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-ot)*et,.2*tt,0,(.1+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+ot)*et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-ot)*et,.3*tt,0,(.2+ut)*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("Display",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.25*et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close()),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,1),lt}),go.Shape.defineFigureGenerator("DividedEvent",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)?ot=.2:ot<.15&&(ot=.15);var ut=Ct*.2,ct=new go.PathFigure(0,.2*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ut)*tt,(.2-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ut)*et,0,et,(.2-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ut)*tt,(.8+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ut)*et,tt,0,(.8+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var ft=new go.PathFigure(0,ot*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,ot*tt)),lt}),go.Shape.defineFigureGenerator("DividedProcess",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;(isNaN(ot)||ot<.1)&&(ot=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,ot*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,ot*tt)),lt}),go.Shape.defineFigureGenerator("Document",function(yt,et,tt){var lt=new go.Geometry;tt=tt/.8;var ot=new go.PathFigure(0,.7*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("ExternalOrganization",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;(isNaN(ot)||ot<.2)&&(ot=.2);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(ot*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,ot*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,et,ot*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,ot*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-ot)*tt)),lt}),go.Shape.defineFigureGenerator("ExternalProcess",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(.1*et,.4*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("File",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.75*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Interrupt",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,.5*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt));var ut=new go.PathFigure(et,.5*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt));var ct=new go.PathFigure(et,.5*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("InternalStorage",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN,ut=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=.1),isNaN(ut)&&(ut=.1);var ct=new go.PathFigure(0,0,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ft=new go.PathFigure(ot*et,0,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,ot*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Move,0,ut*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt)),lt}),go.Shape.defineFigureGenerator("Junction",function(yt,et,tt){var lt=new go.Geometry,ot=1/Math.SQRT2,ut=(1-1/Math.SQRT2)/2,ct=Ct*.5,ft=.5,gt=new go.PathFigure(et,ft*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,tt,et,(ft+ct)*tt,(ft+ct)*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft*tt,(ft-ct)*et,tt,0,(ft+ct)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,0,0,(ft-ct)*tt,(ft-ct)*et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,ft*tt,(ft+ct)*et,0,et,(ft-ct)*tt));var Lt=new go.PathFigure((ut+ot)*et,(ut+ot)*tt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,ut*et,ut*tt)),Lt.add(new go.PathSegment(go.PathSegment.Move,ut*et,(ut+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,(ut+ot)*et,ut*tt)),lt}),go.Shape.defineFigureGenerator("LinedDocument",function(yt,et,tt){var lt=new go.Geometry;tt=tt/.8;var ot=new go.PathFigure(0,.7*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close());var ut=new go.PathFigure(.1*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*tt)),lt.spot1=new go.Spot(.1,0),lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("LoopLimit",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("MagneticTape",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=.5,ct=new go.PathFigure(.5*et,tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-ot)*et,tt,0,(ut+ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-ot)*tt,(ut-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+ot)*et,0,et,(ut-ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ut+.1)*et,.9*tt,et,(ut+ot)*tt,(ut+ot)*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.8),lt}),go.Shape.defineFigureGenerator("ManualInput",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("MessageFromUser",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.7);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,ot*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.25);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,ot*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-ot)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("MicroformRecording",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(1,.75),lt}),go.Shape.defineFigureGenerator("MultiDocument",function(yt,et,tt){var lt=new go.Geometry;tt=tt/.8;var ot=new go.PathFigure(et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*tt,.96*et,.47*tt,.93*et,.45*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*tt,.86*et,.57*tt,.83*et,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.4*et,.4*tt,.4*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var ut=new go.PathFigure(.1*et,.2*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.8,.77),lt}),go.Shape.defineFigureGenerator("MultiProcess",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.1*et,.1*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close());var ut=new go.PathFigure(.2*et,.1*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),lt.spot1=new go.Spot(0,.2),lt.spot2=new go.Spot(.8,1),lt}),go.Shape.defineFigureGenerator("OfflineStorage",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.1);var ut=1-ot,ct=new go.PathFigure(0,0,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var ft=new go.PathFigure(.5*ot*et,ot*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.5*ot)*et,ot*tt)),lt}),go.Shape.defineFigureGenerator("OffPageConnector",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.75,1),lt}),go.Shape.defineFigureGenerator("Or",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+ot)*tt,(ut+ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-ot)*et,tt,0,(ut+ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-ot)*tt,(ut-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+ot)*et,0,et,(ut-ot)*tt));var ft=new go.PathFigure(et,.5*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt}),go.Shape.defineFigureGenerator("PaperTape",function(yt,et,tt){var lt=new go.Geometry;tt=tt/.8;var ot=new go.PathFigure(0,.7*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.3*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.5*et,.6*tt,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),lt.spot1=new go.Spot(0,.49),lt.spot2=new go.Spot(1,.75),lt}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN,ut=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN,ut=yt?yt.parameter2:NaN;isNaN(ot)&&(ot=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Procedure",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure((1-ot)*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,ot*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,ot*et,tt)),lt}),go.Shape.defineFigureGenerator("Process",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(ot*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,ot*et,tt)),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Sort",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(0,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.5),lt}),go.Shape.defineFigureGenerator("Start",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.25);var ut=new go.PathFigure(ot*et,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var ct=new go.PathFigure(ot*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,ot*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ot)*et,tt)),lt.spot1=new go.Spot(ot,0),lt.spot2=new go.Spot(1-ot,1),lt}),go.Shape.defineFigureGenerator("Terminator",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.25*et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt)),lt.spot1=new go.Spot(.23,0),lt.spot2=new go.Spot(.77,1),lt}),go.Shape.defineFigureGenerator("TransmittalTape",function(yt,et,tt){var lt=new go.Geometry,ot=yt?yt.parameter1:NaN;isNaN(ot)&&(ot=.1);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-ot)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-ot)*tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("AndGate",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+ot)*et,0,et,(.5-ot)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+ot)*tt,(.5+ot)*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.55,1),lt}),go.Shape.defineFigureGenerator("Buffer",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("Clock",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+ot)*tt,(ut+ot)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-ot)*et,tt,0,(ut+ot)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-ot)*tt,(ut-ot)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+ot)*et,0,et,(ut-ot)*tt));var ft=new go.PathFigure(et,ut*tt,!1);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt));var gt=new go.PathFigure(.8*et,.75*tt,!1);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),lt}),go.Shape.defineFigureGenerator("Ground",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.4*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),lt}),go.Shape.defineFigureGenerator("Inverter",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.1,ut=.1,ct=.9,ft=.5,gt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var Lt=new go.PathFigure((ct+ut)*et,ft*tt,!0);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft-ut)*tt,(ct+ut)*et,(ft-ot)*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.4,.75),lt}),go.Shape.defineFigureGenerator("NandGate",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=Ct*.4,ct=Ct*.1,ft=.1,gt=.9,Lt=.5,Rt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ut)*tt,(.4+ot)*et,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+ot)*et,0,.8*et,(.5-ut)*tt));var Ut=new go.PathFigure((gt+ft)*et,Lt*tt,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt+ft)*tt,(gt+ft)*et,(Lt+ct)*tt,(gt+ct)*et,(Lt+ft)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft)*et,Lt*tt,(gt-ct)*et,(Lt+ft)*tt,(gt-ft)*et,(Lt+ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-ft)*tt,(gt-ft)*et,(Lt-ct)*tt,(gt-ct)*et,(Lt-ft)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft)*et,Lt*tt,(gt+ct)*et,(Lt-ft)*tt,(gt+ft)*et,(Lt-ct)*tt)),lt.spot1=new go.Spot(0,.05),lt.spot2=new go.Spot(.55,.95),lt}),go.Shape.defineFigureGenerator("NorGate",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*ot,ct=0,ft=.5,gt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(ft-ot)*tt,.7*et,(ft-ut)*tt)),ot=.1,ut=Ct*.1,ct=.9,ft=.5;var Lt=new go.PathFigure((ct-ot)*et,ft*tt,!0);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.6,.75),lt}),go.Shape.defineFigureGenerator("OrGate",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*ot,ct=0,ft=.5,gt=new go.PathFigure(0,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut+ut)*et,(ft-ot)*tt,.8*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(ft+ut)*tt,(ct+ut+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt).close()),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("XnorGate",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*ot,ct=.2,ft=.5,gt=new go.PathFigure(.1*et,0,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Lt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(ft-ot)*tt,.7*et,(ft-ut)*tt)),ot=.1,ut=Ct*.1,ct=.9,ft=.5;var Rt=new go.PathFigure((ct-ot)*et,ft*tt,!0);return lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.65,.75),lt}),go.Shape.defineFigureGenerator("XorGate",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*ot,ct=.2,ft=.5,gt=new go.PathFigure(.1*et,0,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Lt=new go.PathFigure(.2*et,0,!0);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut)*et,(ft-ot)*tt,.9*et,(ft-ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt).close()),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.8,.75),lt}),go.Shape.defineFigureGenerator("Capacitor",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("Resistor",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.5*tt,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Inductor",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.1,ut=.1,ct=.1,ft=.5,gt=new go.PathFigure((ct-ot*.5)*et,tt,!1);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-ot)*et,tt,(ct-ut)*et,0)),ct=.3,gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+ot)*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-ot)*et,tt,(ct-ut)*et,0)),ct=.5,gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+ot)*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-ot)*et,tt,(ct-ut)*et,0)),ct=.7,gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+ot)*et,tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-ot)*et,tt,(ct-ut)*et,0)),ct=.9,gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot*.5)*et,tt,(ct+ut)*et,0,(ct+ot)*et,tt)),lt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.5,ut=.5,ct=.5,ft=.5,gt=new go.PathFigure((ct-ut)*et,ft*tt,!1);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft-ut)*tt,(ct+ut)*et,(ft-ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Move,(ct-ut+.1)*et,ft*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut-.1)*et,ft*tt,ct*et,(ft-ut)*tt,ct*et,(ft+ut)*tt)),lt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.75*tt,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("Diode",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("Wifi",function(yt,et,tt){var lt=new go.Geometry,ot=et,ut=tt;et=et*.38,tt=tt*.6;var ct=Ct*.8,ft=.8,gt=0,Lt=.5,Rt=(ot-et)/2,Ut=(ut-tt)/2,Nt=new go.PathFigure(gt*et+Rt,(Lt+ft)*tt+Ut,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft)*et+Rt,Lt*tt+Ut,(gt-ct)*et+Rt,(Lt+ft)*tt+Ut,(gt-ft)*et+Rt,(Lt+ct)*tt+Ut)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt-ft)*tt+Ut,(gt-ft)*et+Rt,(Lt-ct)*tt+Ut,(gt-ct)*et+Rt,(Lt-ft)*tt+Ut)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft+ct*.5)*et+Rt,Lt*tt+Ut,gt*et+Rt,(Lt-ft)*tt+Ut,(gt-ft+ct*.5)*et+Rt,(Lt-ct)*tt+Ut)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt+ft)*tt+Ut,(gt-ft+ct*.5)*et+Rt,(Lt+ct)*tt+Ut,gt*et+Rt,(Lt+ft)*tt+Ut).close()),ct=Ct*.4,ft=.4,gt=.2,Lt=.5;var qt=new go.PathFigure(gt*et+Rt,(Lt+ft)*tt+Ut,!0);lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft)*et+Rt,Lt*tt+Ut,(gt-ct)*et+Rt,(Lt+ft)*tt+Ut,(gt-ft)*et+Rt,(Lt+ct)*tt+Ut)),qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt-ft)*tt+Ut,(gt-ft)*et+Rt,(Lt-ct)*tt+Ut,(gt-ct)*et+Rt,(Lt-ft)*tt+Ut)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft+ct*.5)*et+Rt,Lt*tt+Ut,gt*et+Rt,(Lt-ft)*tt+Ut,(gt-ft+ct*.5)*et+Rt,(Lt-ct)*tt+Ut)),qt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt+ft)*tt+Ut,(gt-ft+ct*.5)*et+Rt,(Lt+ct)*tt+Ut,gt*et+Rt,(Lt+ft)*tt+Ut).close()),ct=Ct*.2,ft=.2,gt=.5,Lt=.5;var te=new go.PathFigure((gt-ft)*et+Rt,Lt*tt+Ut,!0);lt.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt-ft)*tt+Ut,(gt-ft)*et+Rt,(Lt-ct)*tt+Ut,(gt-ct)*et+Rt,(Lt-ft)*tt+Ut)),te.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft)*et+Rt,Lt*tt+Ut,(gt+ct)*et+Rt,(Lt-ft)*tt+Ut,(gt+ft)*et+Rt,(Lt-ct)*tt+Ut)),te.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt+ft)*tt+Ut,(gt+ft)*et+Rt,(Lt+ct)*tt+Ut,(gt+ct)*et+Rt,(Lt+ft)*tt+Ut)),te.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ft)*et+Rt,Lt*tt+Ut,(gt-ct)*et+Rt,(Lt+ft)*tt+Ut,(gt-ft)*et+Rt,(Lt+ct)*tt+Ut)),ct=Ct*.4,ft=.4,gt=.8,Lt=.5;var Vt=new go.PathFigure(gt*et+Rt,(Lt-ft)*tt+Ut,!0);lt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft)*et+Rt,Lt*tt+Ut,(gt+ct)*et+Rt,(Lt-ft)*tt+Ut,(gt+ft)*et+Rt,(Lt-ct)*tt+Ut)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt+ft)*tt+Ut,(gt+ft)*et+Rt,(Lt+ct)*tt+Ut,(gt+ct)*et+Rt,(Lt+ft)*tt+Ut)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft-ct*.5)*et+Rt,Lt*tt+Ut,gt*et+Rt,(Lt+ft)*tt+Ut,(gt+ft-ct*.5)*et+Rt,(Lt+ct)*tt+Ut)),Vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt-ft)*tt+Ut,(gt+ft-ct*.5)*et+Rt,(Lt-ct)*tt+Ut,gt*et+Rt,(Lt-ft)*tt+Ut).close()),ct=Ct*.8,ft=.8,gt=1,Lt=.5;var de=new go.PathFigure(gt*et+Rt,(Lt-ft)*tt+Ut,!0);return lt.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft)*et+Rt,Lt*tt+Ut,(gt+ct)*et+Rt,(Lt-ft)*tt+Ut,(gt+ft)*et+Rt,(Lt-ct)*tt+Ut)),de.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt+ft)*tt+Ut,(gt+ft)*et+Rt,(Lt+ct)*tt+Ut,(gt+ct)*et+Rt,(Lt+ft)*tt+Ut)),de.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ft-ct*.5)*et+Rt,Lt*tt+Ut,gt*et+Rt,(Lt+ft)*tt+Ut,(gt+ft-ct*.5)*et+Rt,(Lt+ct)*tt+Ut)),de.add(new go.PathSegment(go.PathSegment.Bezier,gt*et+Rt,(Lt-ft)*tt+Ut,(gt+ft-ct*.5)*et+Rt,(Lt-ct)*tt+Ut,gt*et+Rt,(Lt-ft)*tt+Ut).close()),lt}),go.Shape.defineFigureGenerator("Email",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Ethernet",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.35*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var ut=new go.PathFigure(.1*et,tt,!0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ct=new go.PathFigure(.6*et,tt,!0,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var ft=new go.PathFigure(0,.5*tt,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Power",function(yt,et,tt){var lt=new go.Geometry,ot=Ct*.4,ut=.4,ct=.5,ft=.5,gt=ee(),Lt=ee(),Rt=ee(),Ut=ee();Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.5,gt,gt,Lt,Rt,Ut);var Nt=ce(Lt.x,Lt.y),qt=new go.PathFigure(Lt.x*et,Lt.y*tt,!0);lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,Rt.x*et,Rt.y*tt,Ut.x*et,Ut.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt)),Zt(ct-ut,ft,ct-ut,ft-ot,ct-ot,ft-ut,ct,ft-ut,.5,Rt,Ut,Lt,gt,gt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Lt.x*et,Lt.y*tt,Rt.x*et,Rt.y*tt,Ut.x*et,Ut.y*tt)),ot=Ct*.3,ut=.3,Zt(ct-ut,ft,ct-ut,ft-ot,ct-ot,ft-ut,ct,ft-ut,.5,Rt,Ut,Lt,gt,gt),qt.add(new go.PathSegment(go.PathSegment.Line,Lt.x*et,Lt.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,Ut.x*et,Ut.y*tt,Rt.x*et,Rt.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.5,gt,gt,Lt,Rt,Ut),qt.add(new go.PathSegment(go.PathSegment.Bezier,Lt.x*et,Lt.y*tt,Ut.x*et,Ut.y*tt,Rt.x*et,Rt.y*tt).close());var qt=new go.PathFigure(.45*et,0,!0);return lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),wt(gt),wt(Lt),wt(Rt),wt(Ut),wt(Nt),lt.spot1=new go.Spot(.25,.45),lt.spot2=new go.Spot(.75,.8),lt}),go.Shape.defineFigureGenerator("Fallout",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt/2,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,tt/2,et/2,tt/2));function ut(ct,ft,gt){ct.add(new go.PathSegment(go.PathSegment.Move,(.3+ft)*et,(.8+gt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.5+ft)*et,(.5+gt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.1+ft)*et,(.5+gt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.3+ft)*et,(.8+gt)*tt).close())}return ut(ot,0,0),ut(ot,.4,0),ut(ot,.2,-.3),lt}),go.Shape.defineFigureGenerator("IrritationHazard",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.2*et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close()),lt.spot1=new go.Spot(.3,.3),lt.spot2=new go.Spot(.7,.7),lt}),go.Shape.defineFigureGenerator("ElectricalHazard",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.37*et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.37*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.34*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt).close()),lt}),go.Shape.defineFigureGenerator("FireHazard",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.1*et,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*tt,.45*et,.44*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*tt,.48*et,.17*tt,.54*et,.35*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*tt,.59*et,.29*tt,.58*et,.28*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*tt,.8*et,.34*tt,.88*et,.43*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*tt,.87*et,.48*tt,.88*et,.43*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,1.17*et,.76*tt,.82*et,.8*tt).close()),lt.spot1=new go.Spot(.07,.445),lt.spot2=new go.Spot(.884,.958),lt}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=0,ct=0,ft=ot*Ct,gt=.4*Math.SQRT2/2+.5,Lt=.5-.5*Math.SQRT2/2,Rt=1,Ut=.5,Nt=.5,qt=0,te=new go.PathFigure(gt*et,(1-Lt)*tt,!1);return lt.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,Ut*tt,Rt*et,.7*tt,Rt*et,Ut*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+ut)*et,(qt+ut)*tt,(.5+ot+ut)*et,(.5-ft+ut)*tt,(.5+ft+ut)*et,(.5-ot+ut)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ot+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5-ot+ct)*tt,(.5-ot+ut)*et,(.5-ft+ct)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ut)*et,.9*tt,(.5-ot+ut)*et,(.5+ft+ct)*tt,(.5-ft+ut)*et,.9*tt)),te.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),te.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),te.add(new go.PathSegment(go.PathSegment.Line,(.2+ut)*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);lt.add(ot);var ut=new go.PathFigure(et,tt,!1);lt.add(ut);var ct=new go.PathFigure(0,.5*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.5*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close()),lt}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.2*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt).close());var ot=new go.PathFigure(0,.2*tt,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.7*et,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*tt,0,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,tt,.4*et,.5*tt,et,.5*tt).close());var ut=new go.PathFigure(.45*et,.73*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);lt.add(ot);var ut=new go.PathFigure(.335*et,(1-.555)*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var ct=.5-.285,ft=.5,gt=ct,Lt=Math.PI/4,Rt=4*(1-Math.cos(Lt))/(3*Math.sin(Lt)),Ut=Rt*.5,Nt=ct,qt=ct,te=Rt*Nt,Vt=Rt*qt;ut.add(new go.PathSegment(go.PathSegment.Bezier,(ft-Nt)*et,gt*tt,(ft-(te+Nt)/2)*et,(gt+(qt+Vt)/2)*tt,(ft-Nt)*et,(gt+Vt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(gt-qt)*tt,(ft-Nt)*et,(gt-Vt)*tt,(ft-te)*et,(gt-qt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ft+Nt)*et,gt*tt,(ft+te)*et,(gt-qt)*tt,(ft+Nt)*et,(gt-Vt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(ft+Nt)*et,(gt+Vt)*tt,(ft+(te+Nt)/2)*et,(gt+(qt+Vt)/2)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var de=new go.PathFigure(.2*et,tt,!1);lt.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var ge=new go.PathFigure(.8*et,tt,!1);return lt.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.1*et,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ut=new go.PathFigure(.2*et,.2*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventError",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.66*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);lt.add(ot);var ut=new go.PathFigure(et,tt,!1);lt.add(ut);var ct=new go.PathFigure(.1*et,tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Caution",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.05*et,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*tt,0,tt,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*tt,.5*et,0,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,et,tt,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.05*et,tt));var ut=.05;return ot.add(new go.PathSegment(go.PathSegment.Move,(.5-ut)*et,.875*tt)),ot.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ut*et,ut*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*tt,.575*et,.725*tt,.625*et,.375*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*tt,.375*et,.375*tt,.425*et,.725*tt)),lt}),go.Shape.defineFigureGenerator("Recycle",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.45*et,.95*tt,!1);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*tt,.17*et,.95*tt,.15*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*tt,0,.675*tt,0,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*tt));var ut=new go.PathFigure(.475*et,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var ct=new go.PathFigure(.675*et,.575*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*.5,ct=new go.PathFigure(et,ot*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ot*et,tt,et,(ot+ut)*tt,(ot+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ot*tt,(ot-ut)*et,tt,0,(ot+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ot*et,0,0,(ot-ut)*tt,(ot-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ot*tt,(ot+ut)*et,0,et,(ot-ut)*tt));var ft=new go.PathFigure(ot*et,0,!1);return lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,ot*et,.15*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,ot*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,ot*et,.85*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,0,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.15*et,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,ot*et,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,ot*et,ot*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Package",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.15*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,.15*tt,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*tt).close()),lt.spot1=new go.Spot(0,.1),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Class",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(0,.5*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Component",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt).close());var ut=new go.PathFigure(0,.2*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var ct=new go.PathFigure(0,.6*tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),lt}),go.Shape.defineFigureGenerator("Boat Shipment",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.15*et,.6*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt));var ut=new go.PathFigure(.15*et,.6*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Workcell",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.35*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Supermarket",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,et,.33*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.66*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.66*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,et,.66*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt}),go.Shape.defineFigureGenerator("TruckShipment",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(et,.8*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var ct=.1,ft=Ct*.1,gt=.2,Lt=.9,Rt=new go.PathFigure((gt-ct)*et,Lt*tt,!0);lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-ct)*tt,(gt-ct)*et,(Lt-ft)*tt,(gt-ft)*et,(Lt-ct)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ct)*et,Lt*tt,(gt+ft)*et,(Lt-ct)*tt,(gt+ct)*et,(Lt-ft)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt+ct)*tt,(gt+ct)*et,(Lt+ft)*tt,(gt+ft)*et,(Lt+ct)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ct)*et,Lt*tt,(gt-ft)*et,(Lt+ct)*tt,(gt-ct)*et,(Lt+ft)*tt).close()),ct=.1,ft=Ct*.1,gt=.8,Lt=.9;var Ut=new go.PathFigure((gt-ct)*et,Lt*tt,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt-ct)*tt,(gt-ct)*et,(Lt-ft)*tt,(gt-ft)*et,(Lt-ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(gt+ct)*et,Lt*tt,(gt+ft)*et,(Lt-ct)*tt,(gt+ct)*et,(Lt-ft)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,(Lt+ct)*tt,(gt+ct)*et,(Lt+ft)*tt,(gt+ft)*et,(Lt+ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(gt-ct)*et,Lt*tt,(gt-ft)*et,(Lt+ct)*tt,(gt-ct)*et,(Lt+ft)*tt).close()),lt}),go.Shape.defineFigureGenerator("KanbanPost",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.2*et,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),lt}),go.Shape.defineFigureGenerator("Forklift",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0));var ut=new go.PathFigure(0,.5*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ct=new go.PathFigure(.5*et,.8*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var ft=new go.PathFigure(.5*et,.7*tt,!1);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var gt=.1,Lt=Ct*.1,Rt=.1,Ut=.9,Nt=new go.PathFigure((Rt-gt)*et,Ut*tt,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Ut-gt)*tt,(Rt-gt)*et,(Ut-Lt)*tt,(Rt-Lt)*et,(Ut-gt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+gt)*et,Ut*tt,(Rt+Lt)*et,(Ut-gt)*tt,(Rt+gt)*et,(Ut-Lt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Ut+gt)*tt,(Rt+gt)*et,(Ut+Lt)*tt,(Rt+Lt)*et,(Ut+gt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-gt)*et,Ut*tt,(Rt-Lt)*et,(Ut+gt)*tt,(Rt-gt)*et,(Ut+Lt)*tt)),gt=.1,Lt=Ct*.1,Rt=.4,Ut=.9;var qt=new go.PathFigure((Rt-gt)*et,Ut*tt,!0);return lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Ut-gt)*tt,(Rt-gt)*et,(Ut-Lt)*tt,(Rt-Lt)*et,(Ut-gt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+gt)*et,Ut*tt,(Rt+Lt)*et,(Ut-gt)*tt,(Rt+gt)*et,(Ut-Lt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(Ut+gt)*tt,(Rt+gt)*et,(Ut+Lt)*tt,(Rt+Lt)*et,(Ut+gt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-gt)*et,Ut*tt,(Rt-Lt)*et,(Ut+gt)*tt,(Rt-gt)*et,(Ut+Lt)*tt)),lt}),go.Shape.defineFigureGenerator("RailShipment",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.1*et,.4*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*tt).close());var ut=new go.PathFigure(.45*et,.7*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var ct=new go.PathFigure(.55*et,.4*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var Rt=.05,Ut=Ct*.05,Nt=.175,qt=.95,ft=new go.PathFigure((Nt-Rt)*et,qt*tt,!0);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt-Rt)*tt,(Nt-Rt)*et,(qt-Ut)*tt,(Nt-Ut)*et,(qt-Rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Rt)*et,qt*tt,(Nt+Ut)*et,(qt-Rt)*tt,(Nt+Rt)*et,(qt-Ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt+Rt)*tt,(Nt+Rt)*et,(qt+Ut)*tt,(Nt+Ut)*et,(qt+Rt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Rt)*et,qt*tt,(Nt-Ut)*et,(qt+Rt)*tt,(Nt-Rt)*et,(qt+Ut)*tt));var Rt=.05,Ut=Ct*.05,Nt=.375,qt=.95,gt=new go.PathFigure((Nt-Rt)*et,qt*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt-Rt)*tt,(Nt-Rt)*et,(qt-Ut)*tt,(Nt-Ut)*et,(qt-Rt)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Rt)*et,qt*tt,(Nt+Ut)*et,(qt-Rt)*tt,(Nt+Rt)*et,(qt-Ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt+Rt)*tt,(Nt+Rt)*et,(qt+Ut)*tt,(Nt+Ut)*et,(qt+Rt)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Rt)*et,qt*tt,(Nt-Ut)*et,(qt+Rt)*tt,(Nt-Rt)*et,(qt+Ut)*tt));var Rt=.05,Ut=Ct*.05,Nt=.625,qt=.95,Lt=new go.PathFigure((Nt-Rt)*et,qt*tt,!0);lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt-Rt)*tt,(Nt-Rt)*et,(qt-Ut)*tt,(Nt-Ut)*et,(qt-Rt)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Rt)*et,qt*tt,(Nt+Ut)*et,(qt-Rt)*tt,(Nt+Rt)*et,(qt-Ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt+Rt)*tt,(Nt+Rt)*et,(qt+Ut)*tt,(Nt+Ut)*et,(qt+Rt)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Rt)*et,qt*tt,(Nt-Ut)*et,(qt+Rt)*tt,(Nt-Rt)*et,(qt+Ut)*tt));var Rt=.05,Ut=Ct*.05,Nt=.825,qt=.95,te=new go.PathFigure((Nt-Rt)*et,qt*tt,!0);lt.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt-Rt)*tt,(Nt-Rt)*et,(qt-Ut)*tt,(Nt-Ut)*et,(qt-Rt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Rt)*et,qt*tt,(Nt+Ut)*et,(qt-Rt)*tt,(Nt+Rt)*et,(qt-Ut)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt+Rt)*tt,(Nt+Rt)*et,(qt+Ut)*tt,(Nt+Ut)*et,(qt+Rt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-Rt)*et,qt*tt,(Nt-Ut)*et,(qt+Rt)*tt,(Nt-Rt)*et,(qt+Ut)*tt).close());var Vt=new go.PathFigure(0,tt,!1);return lt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Warehouse",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(.15*et,tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var ft=.05,gt=Ct*.05,Lt=.35,Rt=.775,Ut=new go.PathFigure((Lt-ft)*et,Rt*tt,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Lt*et,(Rt-ft)*tt,(Lt-ft)*et,(Rt-gt)*tt,(Lt-gt)*et,(Rt-ft)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Lt+ft)*et,Rt*tt,(Lt+gt)*et,(Rt-ft)*tt,(Lt+ft)*et,(Rt-gt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Lt*et,(Rt+ft)*tt,(Lt+ft)*et,(Rt+gt)*tt,(Lt+gt)*et,(Rt+ft)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Lt-ft)*et,Rt*tt,(Lt-gt)*et,(Rt+ft)*tt,(Lt-ft)*et,(Rt+gt)*tt).close()),lt}),go.Shape.defineFigureGenerator("ControlCenter",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt).close()),lt}),go.Shape.defineFigureGenerator("Bluetooth",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.75*tt,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),lt}),go.Shape.defineFigureGenerator("Bookmark",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Bookmark",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),ot.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Globe",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.75*et,0,et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.75*tt,.75*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.25*et,tt,0,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*tt,.25*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,.15*et,.25*tt,.15*et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*tt,.85*et,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*tt,.35*et,.3*tt,.65*et,.3*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*tt,.35*et,.7*tt,.65*et,.7*tt)),lt}),go.Shape.defineFigureGenerator("Wave",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.25*tt,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*tt,.1*et,0,.2*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*tt,.425*et,.5*tt,.575*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*tt,.8*et,0,.9*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*tt,.1*et,.5*tt,.2*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*tt,.425*et,tt,.575*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*tt,.8*et,.5*tt,.9*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Operator",function(yt,et,tt){var lt=new go.Geometry,ot=.3,ut=Ct*.3,ct=.5,ft=.7,gt=new go.PathFigure((ct-ot)*et,ft*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt));var Lt=new go.PathFigure(0,.7*tt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),lt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.5*et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.65*et,.3*tt,.65*et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*tt,.35*et,.3*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.3*et,.6*tt,.1*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.2*et,tt,.35*et,.95*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,.7*et,.6*tt,.9*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.8*et,tt,.65*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("CentrifugalPump",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et,0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,0,.075*tt,0,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,0,tt,.4*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*tt,.8*et,tt,.85*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt}),go.Shape.defineFigureGenerator("Battery",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*tt));var ut=new go.PathFigure(0,.6*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Delete",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*.5,ct=.5,ft=.5,gt=new go.PathFigure((ct-ot)*et,ft*tt,!0);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt));var Lt=new go.PathFigure(.15*et,.5*tt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Flag",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.1*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,0,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*tt,.15*et,0,.35*et,0)),ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,.65*et,.2*tt,.85*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.85*et,.6*tt,.65*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.35*et,.4*tt,.15*et,.4*tt).close()),lt}),go.Shape.defineFigureGenerator("Help",function(yt,et,tt){var lt=new go.Geometry,ot=.5,ut=Ct*.5,ct=.5,ft=.5,gt=new go.PathFigure((ct-ot)*et,ft*tt,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt).close()),ot=.05,ut=Ct*.05,ct=.5,ft=.8;var Lt=new go.PathFigure((ct-ot)*et,ft*tt,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ot)*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ot)*et,ft*tt,(ct+ut)*et,(ft-ot)*tt,(ct+ot)*et,(ft-ut)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ot)*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ot)*et,ft*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt).close()),Lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*tt,.4*et,.2*tt,.3*et,.25*tt)),lt}),go.Shape.defineFigureGenerator("Location",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*tt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*tt,.5*et,0,.025*et,.025*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Lock",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.5*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),lt}),go.Shape.defineFigureGenerator("Unlocked",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.5*tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),lt}),go.Shape.defineFigureGenerator("Gear",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*tt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*tt,.79840625*et,.39915625*tt,.7834375*et,.3635*tt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*tt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*tt,.64228125*et,.2188125*tt,.603875*et,.2021875*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*tt,.39759375*et,.20190625*tt,.36053125*et,.2176875*tt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*tt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*tt,.21765625*et,.36059375*tt,.201875*et,.397625*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*tt,.20221875*et,.603875*tt,.21884375*et,.64228125*tt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*tt,.36353125*et,.78340625*tt,.3991875*et,.79840625*tt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*tt,.602375*et,.79809375*tt,.63946875*et,.78234375*tt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*tt,.78234375*et,.63940625*tt,.798125*et,.602375*tt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Hand",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.5*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*tt,0,.375*tt,.05*et,.325*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*tt,.3*et,.225*tt,.4*et,.175*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*tt,.46*et,.05*tt,.525*et,.05*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*tt,.525*et,.275*tt,.475*et,.325*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*tt,et,.4*tt,et,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*tt,.675*et,.55*tt,.675*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*tt,.65*et,.7*tt,.65*et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,tt,.61*et,.85*tt,.61*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,.435*et,tt,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Map",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,.2*tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),ot.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),ot.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),ot.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("Eject",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt*.7)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*.7).close());var ut=new go.PathFigure(0,tt*.6,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),lt}),go.Shape.defineFigureGenerator("Pencil",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close()))}),go.Shape.defineFigureGenerator("Building",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*1,tt*1,!1);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*.85)),ot.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.85)),ot.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*.3)),ot.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.3)),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.3)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt*.3)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.85)),ot.add(new go.PathSegment(go.PathSegment.Line,et,tt*.85).close());var ut=new go.PathFigure(.126*et,.85*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var ct=new go.PathFigure(.402*et,.85*tt,!1);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var ft=new go.PathFigure(.678*et,.85*tt,!1);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var gt=new go.PathFigure(.5*et,.1*tt,!1);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),lt}),go.Shape.defineFigureGenerator("Staircase",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt*1,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.8)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.8)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.6)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.6)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.4)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.4)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.2)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.2)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.15)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.15)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.35)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*.95).close()),lt}),go.Shape.defineFigureGenerator("5Bars",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,tt*1,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*(1-.184)).close());var ut=new go.PathFigure(et*.204,tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var ct=new go.PathFigure(et*.408,tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var ft=new go.PathFigure(et*.612,tt,!0);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var gt=new go.PathFigure(et*.816,tt,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),lt}),go.Shape.defineFigureGenerator("PC",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var ut=new go.PathFigure(et*.055,.07*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var ct=new go.PathFigure(et*.055,.13*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var ft=new go.PathFigure(et*.055,.18*tt,!0);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var gt=new go.PathFigure(et*1,0,!0);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),lt}),go.Shape.defineFigureGenerator("Plane",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(.55*et,tt,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*tt,0,.4*tt,.225*et,.45*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*tt)),ot.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*tt,.975*et,0,et,.08*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt).close()),lt}),go.Shape.defineFigureGenerator("Key",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*1,tt*.5,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.35*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,0,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*tt)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*tt).close()),ot.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*tt)),ot.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*tt,.075*et,.075*tt).close()),lt}),go.Shape.defineFigureGenerator("FilmTape",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(0,0,!1);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*.95)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ut=new go.PathFigure(0,0,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ct=new go.PathFigure(et*.11,tt*.1,!1);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var ft=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var gt=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),gt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),lt}),go.Shape.defineFigureGenerator("FloppyDisk",function(yt,et,tt){var lt=new go.Geometry,ot=8,ut=ot*Ct,ct=new go.PathFigure(ot,0,!1);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-ot)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-ot,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,ot,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-ot,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,0,ot)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ot,0,0,ut,ut,0).close());var ft=new go.PathFigure(et*.83,0,!1);lt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var gt=new go.PathFigure(et*.83,tt*1,!1);lt.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var Lt=new go.PathFigure(et*.78,tt*.05,!1);return lt.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Lt.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("SpeechBubble",function(yt,et,tt){var lt=yt?yt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=15),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var ot=lt*Ct,ut=tt*.8,ct=new go.Geometry,ft=new go.PathFigure(lt,0,!0);return ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-ot,0,et,ot)),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut-lt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,ut,et,ut-ot,et-ot,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.55,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,lt,ut)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,ut-lt,ot,ut,0,ut-ot)),ft.add(new go.PathSegment(go.PathSegment.Line,0,lt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,ot,ot,0).close()),ot>1?(ct.spot1=new go.Spot(0,0,ot,ot),ct.spot2=new go.Spot(1,.8,-ot,-ot)):(ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.8)),ct}),go.Shape.defineFigureGenerator("Repeat",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*0,tt*.45,!0);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.9)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.9)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.45).close());var ut=new go.PathFigure(et*1,tt*.55,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),lt}),go.Shape.defineFigureGenerator("Windows",function(yt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*0,tt*.1,!1);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.9)),ot.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.9).close());var ut=new go.PathFigure(et*.1,tt*.2,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var ct=new go.PathFigure(et*.28,tt*.37,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),lt}),go.Shape.defineFigureGenerator("Beaker",function(yt,et,tt){var lt=new go.Geometry,ot=15,ut=ot*Ct,ct=new go.PathFigure(et*.62,tt*.475,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-ot)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-ot,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,ot,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-ot,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ut>1?(lt.spot1=new go.Spot(0,0,ut,ut),lt.spot2=new go.Spot(1,1,-ut,-ut)):(lt.spot1=go.Spot.TopLeft,lt.spot2=go.Spot.BottomRight),lt}),go.Shape.defineFigureGenerator("Download",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*0,tt*1,!0);lt.add(ot);var ut=.1/.3;ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.4,tt*0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),lt}),go.Shape.defineFigureGenerator("Bin",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*0,tt*1,!0);lt.add(ot);var ut=.1/.3;return ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close()),lt}),go.Shape.defineFigureGenerator("Upload",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*0,tt*1,!0);lt.add(ot);var ut=.1/.3;ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.5,tt*0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("EmptyDrink",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*.15,tt*0,!1);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close()),lt}),go.Shape.defineFigureGenerator("Drink",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*.15,tt*0,!1);lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close());var ut=new go.PathFigure(et*.235,tt*.28,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),lt}),go.Shape.defineFigureGenerator("4Arrows",function(yt,et,tt){var lt=new go.Geometry,ot=new go.PathFigure(et*.5,tt*0,!0);return lt.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.25)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.25)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),ot.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.5)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.65)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*1)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.75)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.55)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.65)),ot.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.5)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.35)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.45)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.25)),ot.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Cn={},Gn="5.0",ce={},ee=null,wt=!1,Qt=!1,Zt=null,Ot=!1,jt=null,Ct=null,Mt=0;Mt4?parseFloat(ue):5};Cn.setHTML5Codebase=function(ue,Re){Ct=ue,re(ue,Re)},Cn.setJavaCodebase=Cn.setJavaCodebaseVersion=Cn.isCompiledInstalled=Cn.setPreCompiledScriptPath=Cn.setPreCompiledResourcePath=function(){},Cn.setHTML5CodebaseVersion=function(ue,Re){var Fe=parseFloat(ue);if(Fe!==NaN&&Fe<5){console.log("The GeoGebra HTML5 codebase version "+Fe+" is deprecated. Using version latest instead.");return}jt=ue,Jt(ue,Re)},Cn.getHTML5CodebaseVersion=function(){return yt},Cn.getParameters=function(){return ce},Cn.setFontsCSSURL=function(ue){ct=ue},Cn.setGiacJSURL=function(ue){},Cn.setJNLPFile=function(ue){St=ue},Cn.setJNLPBaseDir=function(ue){},Cn.inject=function(){function ue(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Re="auto",Fe=ce.id,Qe,Ae=!1,_e=0;_e=5)return!0;var ue=Cn.getAppletObject();return ue&&typeof ue.recalculateEnvironments=="function"?(ue.recalculateEnvironments(),!0):!1},Cn.startAnimation=function(){var ue=Cn.getAppletObject();return ue&&typeof ue.startAnimation=="function"?(ue.startAnimation(),!0):!1},Cn.stopAnimation=function(){var ue=Cn.getAppletObject();return ue&&typeof ue.stopAnimation=="function"?(ue.stopAnimation(),!0):!1},Cn.getAppletObject=function(){var ue=ce.id!==void 0?ce.id:"ggbApplet";return window[ue]},Cn.resize=function(){};var te=function(ue,Re,Fe){var Qe=document.createElement("param");Qe.setAttribute("name",Re),Qe.setAttribute("value",Fe),ue.appendChild(Qe)},Vt=function(ue){return ue&&ue!=="false"},de=function(ue,Re,Fe){gt(yt)<=4.2&&(Fe=!0);var Qe=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==yt||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(Qe=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ae=document.createElement("div");Ae.classList.add("appletParameters","notranslate");var _e=Re.width,Le=Re.height;if(Re.disableAutoScale=Re.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Re.disableAutoScale,Re.width!==void 0)if(gt(yt)<=4.4)Vt(Re.showToolBar)&&(Re.height-=7),Vt(Re.showAlgebraInput)&&(Re.height-=37),Re.width<605&&Vt(Re.showToolBar)&&(Re.width=605,_e=605);else{var Oe=100;(Vt(Re.showToolBar)||Vt(Re.showMenuBar))&&(Re.hasOwnProperty("customToolBar")&&(Re.customToolbar=Re.customToolBar),Oe=Vt(Re.showMenuBar)?245:155),_e=5?(Re.appletOnLoad=function(le){var ye=ue.querySelector(".ggb_preview");ye&&ye.parentNode.removeChild(ye),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Tt),window.GGBT_wsf_view&&$(window).trigger("resize"),ie(le)},At||Tt.appendChild(Yt)):Ae.appendChild(Yt),Tt.appendChild(Ae),At||ue.appendChild(Tt),setTimeout(function(){Cn.resize()},1)}else{var oe=document.createElement("div");oe.className="applet_scaler",oe.style.position="relative",oe.style.display="block",oe.appendChild(Ae),ue.appendChild(oe),Re.appletOnLoad=function(le){Cn.resize(),ie(le)}}function _t(le,ye){ye&&typeof ye.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(le,ye.appletOnLoad):renderGGBElement(le),se("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ye)}function It(le,ye){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:le,params:ye}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ue){_t(Ue.article,Ue.params)}),html5AppletsToProcess=null)},gt(yt)<5&&(le.className+=" geogebraweb")):_t(le,ye)}if(Qe){scriptLoadStarted=!0;for(var Pt=0;Pt0?(He.remove(),Tt.attr("id","fullscreencontent").show(),jQuery(ie).append(Tt),window.dispatchEvent(new Event("resize"))):de(He,Re,!1),window.GGBT_wsf_view.launchFullScreen(ie)}else Dt=Qe,de(ue,Re,!1);if(!window.GGBT_wsf_view)for(Le=0;Leue/4*3&&(He=ue/4*3),ie=He/5.8,Oe.setAttribute("src",ot),Oe.setAttribute("width",He),Oe.setAttribute("height",ie);var Tt=(ue-He)/2,At=(Re-ie)/2;Oe.style.left=Tt+"px",Oe.style.top=At+"px",Ae.appendChild(Oe)}}return Ae.appendChild(Le),Ae},ze=function(ue){return ue=ue.toLowerCase(),ue==="html5"||ue==="screenshot"?ue:"html5"},he=["web","webSimple","web3d","tablet","tablet3d","phone"],Jt=function(ue,Re){if(yt=ue,Re){re(yt,!0);return}var Fe=!wt;if(Fe){var Qe=gt(yt);!isNaN(Qe)&&Qe<4.4&&(Fe=!1)}var Ae,_e;window.location.protocol.substr(0,4)==="http"?Ae=window.location.protocol:Ae="http:";var Le=yt.indexOf("//");Le>0?_e=yt:Le===0?_e=Ae+yt:_e="https://www.geogebra.org/apps/5.2.814.0/";for(var Oe in he)if(yt.slice(he[Oe].length*-1)===he[Oe]||yt.slice((he[Oe].length+1)*-1)===he[Oe]+"/"){re(_e,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Fe&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!Vt(ce.showToolBar)&&!Vt(ce.showMenuBar)&&!Vt(ce.showAlgebraInput)&&!Vt(ce.enableRightClick)&&(!ce.appName||ce.appName=="classic")?_e+="webSimple/":_e+="web3d/",re(_e,!1)},re=function(ue,Re){if(ue.requirejs){kt=ue;return}ue.slice(-1)!=="/"&&(ue+="/"),kt=ue,Re===null&&(Re=ue.indexOf("http")===-1),xt=Re,et="web.nocache.js",tt=!1;var Fe=kt.split("/");Fe.length>1&&(!Re&&Fe[Fe.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):he.indexOf(Fe[Fe.length-2])>=0&&(et=Fe[Fe.length-2]+".nocache.js")),Fe=ue.split("/"),yt=Fe[Fe.length-3],yt.substr(0,4)==="test"?yt=yt.substr(4,1)+"."+yt.substr(5,1):(yt.substr(0,3)==="war"||yt.substr(0,4)==="beta")&&(yt="5.0");var Qe=parseFloat(yt);Qe!==NaN&&Qe<5&&ue.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead."),Jt("5.0",Re))},se=function(ue,Re){window.console&&window.console.log&&(!Re||typeof Re.showLogging=="undefined"||Re.showLogging&&Re.showLogging!=="false")&&console.log(ue)};ce.material_id!==void 0?Ut(pe):pe();function pe(){var ue=Gn;jt!==null?ue=jt:parseFloat(ue)<5&&(ue="5.0"),Jt(ue,!1),Ct!==null&&re(Ct,xt),Ot=!0}return Cn},GGBAppletUtils=function(){"use strict";function Cn(){return window.GGBT_wsf_edit!==void 0}function Gn(Ot,jt){jt!=1?(Ot.style.transformOrigin="0% 0% 0px",Ot.style.webkitTransformOrigin="0% 0% 0px",Ot.style.transform="scale("+jt+","+jt+")",Ot.style.webkitTransform="scale("+jt+","+jt+")",Ot.style.maxWidth="initial",Ot.querySelector(".ggb_preview")!==null&&(Ot.querySelector(".ggb_preview").style.maxWidth="initial"),Ot.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ot.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ot.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ot.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ot.style.transform="none",Ot.style.webkitTransform="none")}function ce(Ot,jt,Ct,Mt,Bt,St){var kt=null;if(St!=null&&St!="")for(var xt=Ot.parentNode;xt!=null;)if((" "+xt.className+" ").indexOf(" "+St+" ")>-1){kt=xt;break}else xt=xt.parentNode;var Dt=0,yt=0,et=0,tt=0,lt=0,ot=0,ut=0;if(kt)Dt=kt.offsetWidth,yt=Math.max(Mt?kt.offsetWidth:0,kt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Dt=Math.min(window.innerWidth,document.documentElement.clientWidth),yt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Dt):(Dt=window.innerWidth,yt=window.innerHeight,et=window.innerWidth),Ot){var ct=Ot.getBoundingClientRect();ct.left>0&&ct.left<=Dt&&(Bt===void 0||!Bt)&&(document.dir==="rtl"?(lt=Dt-ct.width-ct.left,ot=et<=480?10:30):(ot=ct.left,lt=et<=480?10:30),tt=ot+lt)}if(Ot&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ft=Ot.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ut=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ut=40)}}return Ot&&((Ct===void 0||!Ct)&&jt>0&&jt+tt1&&(St=!0)),jt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(St=!0),!(Ot.hasOwnProperty("disableAutoScale")&&Ot.disableAutoScale))Bt=ee(Ot,jt,St,Ct,Ot.scaleContainerClass);else return Mt;return St&&(!Ot.hasOwnProperty("scale")||Mt===1)?Bt:Math.min(Mt,Bt)}function Qt(Ot){var jt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ct=Math.min(window.innerHeight,document.documentElement.clientHeight),Mt=Ot.getBoundingClientRect(),Bt=(jt-Mt.width)/2,St=(Ct-Mt.height)/2;St<0&&(St=0),Ot.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Bt<40?Ot.style.left="40px":Ot.style.left=Bt+"px",Ot.style.top=St+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(St<40?Ot.style.top="40px":Ot.style.top=St+"px",Ot.style.left=Bt+"px")}function Zt(Ot,jt){var Ct=Ot.querySelector(".appletParameters");if(Ct){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(jt.id!==Ct.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ot)}if(Ct.parentElement&&/fullscreen/.test(Ct.parentElement.className))return;var Mt=wt(jt,Ot);Cn()&&Ct.setAttribute("data-param-scale",Mt);for(var Bt=null,St=0;St=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(Cn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Cn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Cn){var Gn=c[Cn];return Gn==null?null:Gn},r=d,webModule.__errFn=e}function B(){function Cn(Ot){var jt=Ot.lastIndexOf(rb);jt==-1&&(jt=Ot.length);var Ct=Ot.indexOf(sb);Ct==-1&&(Ct=Ot.length);var Mt=Ot.lastIndexOf(tb,Math.min(Ct,jt));return Mt>=O?Ot.substring(O,Mt+P):W}function Gn(Ot){if(!Ot.match(/^\w+:\/\//)){var jt=o.createElement(ub);jt.src=Ot+vb,Ot=Cn(jt.src)}return Ot}function ce(){var Ot=__gwt_getMetaProperty(wb);return Ot!=null?Ot:W}function ee(){for(var Ot=o.getElementsByTagName(_),jt=O;jtO?Ot[Ot.length-P].href:W}function Qt(){var Ot=o.location;return Ot.href==Ot.protocol+zb+Ot.host+Ot.pathname+Ot.search+Ot.hash}var Zt=ce();return Zt==W&&(Zt=ee()),Zt==W&&(Zt=wt()),Zt==W&&Qt()&&(Zt=Cn(o.location.href)),Zt=Gn(Zt),Zt}function C(Cn){return Cn.match(/^\//)||Cn.match(/^[a-zA-Z]+:\/\//)?Cn:webModule.__moduleBase+Cn}function D(){var Cn=[],Gn=O,ce=[],ee=[];function wt(Ot){var jt=ee[Ot](),Ct=ce[Ot];if(jt in Ct)return jt;var Mt=[];for(var Bt in Ct)Mt[Ct[Bt]]=Bt;throw r&&r(Ot,Mt,jt),null}if(__gwt_isKnownPropertyValue=function(Ot,jt){return jt in ce[Ot]},webModule.__getPropMap=function(){var Ot={};for(var jt in ce)ce.hasOwnProperty(jt)&&(Ot[jt]=wt(jt));return Ot},webModule.__computePropValue=wt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Qt;try{Qt=Cb;var Zt=Qt.indexOf(Db);Zt!=-1&&(Gn=parseInt(Qt.substring(Zt+P),$),Qt=Qt.substring(O,Zt))}catch(Ot){}return webModule.__softPermutationId=Gn,C(Qt+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})()},11324:function(Cn,Gn,ce){"use strict";ce.d(Gn,{$Y:function(){return _e},A0:function(){return Re},EP:function(){return Ot},F_:function(){return Mt},Fk:function(){return _t},G9:function(){return Ct},GB:function(){return re},GR:function(){return ot},GW:function(){return Qe},Hh:function(){return It},Hp:function(){return Dt},Ir:function(){return wt},N$:function(){return se},NZ:function(){return be},Nv:function(){return oe},OA:function(){return Tt},OJ:function(){return Pe},QF:function(){return ye},RS:function(){return Lt},RY:function(){return Gt},Rj:function(){return Ne},SX:function(){return Nt},Tp:function(){return Le},Ui:function(){return ue},V1:function(){return he},Vn:function(){return Ut},dL:function(){return Yt},fo:function(){return te},gG:function(){return Vt},gK:function(){return lt},hK:function(){return yt},i3:function(){return St},ib:function(){return et},lS:function(){return tt},m5:function(){return jt},n4:function(){return ee},n_:function(){return kt},oP:function(){return Oe},p2:function(){return Fe},pl:function(){return ge},rM:function(){return ft},sM:function(){return xt},t2:function(){return Rt},tD:function(){return ut},u8:function(){return ct},um:function(){return le},vm:function(){return At},wQ:function(){return Bt},wj:function(){return ze},wt:function(){return de},yS:function(){return gt},yi:function(){return Qt},ym:function(){return Ge},z2:function(){return Zt}});const ee="FETCH_TASK_START",wt="FETCH_TASK_FAILURE",Qt="FETCH_TASK_SUCCESS",Zt="UPDATE_TASK_DATA",Ot="HIDE_EVALUATE_RESULT",jt="SHOW_EVALUATE_RESULT",Ct="UPDATE_TIMESTRAP",Mt="MOVE_X",Bt="MOVE_Y",St="TRIGGER_RIGHT_PANEL_MASK ",kt="SET_ACTIVE_INDEX",xt="GET_TASK_LIST",Dt="SHOW_TASK_LIST",yt="HIDE_TASK_LIST",et="SET_TASK_STAR",tt="TRIGGER_ENLARGE_UNITY3D ",lt="TRIGGER_TAB_FIXED ",ot="GET_DISCUSSES",ut="SHOW_DISCUSSES_LOADING",ct="TOP_OR_DOWN_DISCUSS",ft="PLUS_DISCUSS",gt="SET_ACTION_TYPE",Lt="SHOW_REWARD_DIALOG",Rt="CANCEL_REWARD_DIALOG",Ut="SET_REWARD",Nt="ACTIVE_DISCUSS_INDEX",qt="CREATE_DISCUSS",te="DISABLE_DISCUSS",Vt="CHANGE_PAGE",de="SHOW_ANSWER_LOADING",ge="FETCH_ANSWER_INFO",be="HIGH_TIP_MODAL",Ne="SHOW_TIP_MODAL",Ge="SELECT_UNLOCK_ANSWER",Pe="SET_CHOOSE_ANSWERS",ze="EVAL_CHOOSE_START",he="EVAL_CHOOSE_END",Jt="SHOW_REP_loading",re="FETCH_REP_CONTENT",se="EDIT_REP_CONTENT",pe="SET_REP_PATH",ue="SHOW_EVALUATE_LOADING",Re="HIDE_EVALUATE_LOADING",Fe="SET_EVALUATE_MESSAGE",Qe="SET_SHOW_DIR",Ae="SET_EDITOR_SETTING",_e="SET_EDITOR_THEME",Le="SET_EDITOR_FONTSIZE",Oe="SET_REPOS",He="SHOW_PATH_LIST",ie="HIDE_PATH_LIST",Tt="HIDE_PICTURE_VIEW",At="SHOW_PICTURE_VIEW",Yt="SHOW_NOTICE",oe="HIDE_NOTICE",_t="SHOW_CASE_NOTICE",It="HIDE_CASE_NOTICE",Pt="SET_TAB_INDEX",Et="SET_SSH_TABS",$t="SET_SSH_CONFIGDATA",zt="SET_SSH_CONFIGDATAARR",Gt="SET_VNC_LOADING ",le="ON_TAB_TO_SPACE ",ye="ON_AUTO_FORMAT "},46699:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Ax:function(){return Zt},Ds:function(){return Ot},KI:function(){return Ct},SI:function(){return Qt},f1:function(){return wt}});var ee=ce(346);function wt(Mt){let Bt=!0;if(Mt.length>0){for(let St=0;Sttt in et?Qt(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):et[tt]=lt,St=(et,tt)=>{for(var lt in tt||(tt={}))Ct.call(tt,lt)&&Bt(et,lt,tt[lt]);if(jt)for(var lt of jt(tt))Mt.call(tt,lt)&&Bt(et,lt,tt[lt]);return et},kt=(et,tt)=>Zt(et,Ot(tt)),xt=(et,tt)=>{var lt={};for(var ot in et)Ct.call(et,ot)&&tt.indexOf(ot)<0&&(lt[ot]=et[ot]);if(et!=null&&jt)for(var ot of jt(et))tt.indexOf(ot)<0&&Mt.call(et,ot)&&(lt[ot]=et[ot]);return lt},Dt=(et,tt,lt)=>new Promise((ot,ut)=>{var ct=Lt=>{try{gt(lt.next(Lt))}catch(Rt){ut(Rt)}},ft=Lt=>{try{gt(lt.throw(Lt))}catch(Rt){ut(Rt)}},gt=Lt=>Lt.done?ot(Lt.value):Promise.resolve(Lt.value).then(ct,ft);gt((lt=lt.apply(et,tt)).next())});const yt=et=>{var tt=et,{children:lt}=tt,ot=xt(tt,["children"]);const[ut,ct]=(0,wt.useState)(!1);return wt.createElement(ee.ZP,kt(St({},ot),{loading:ut,onClick:ft=>Dt(void 0,null,function*(){try{ct(!0),yield ot.onClick(ft),ct(!1)}catch(gt){console.error(gt),ct(!1)}})}),lt)}},30502:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return St}});var ee=ce(59301),wt=ce(99571),Qt=ce(6767),Zt=ce(14566),Ot=ce(32050),jt=ce(19248),Ct=ce(346),Mt={img:"img___BgL9D"},St=({value:kt,onChange:xt,getFileProgress:Dt})=>{const[yt,et]=(0,ee.useState)(!1),tt=ee.createElement(wt.ZP,{loading:yt,icon:ee.createElement(Ot.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),lt=()=>ee.createElement("div",{className:Mt.img},ee.createElement("img",{src:Ct.Z.API_SERVER+"/api/attachments/"+kt,alt:"avatar",style:{width:288}}),ee.createElement("div",null,ee.createElement(jt.Z,{onClick:()=>xt(""),style:{fontSize:"16px",color:"red"}}))),ot=ut=>{var ct,ft,gt,Lt,Rt,Ut;if(Dt&&Dt(ut),ut.file.status==="uploading"){et(!0);return}if(ut.file.status==="done"){if(et(!1),ut.file.status==="done"&&((ft=(ct=ut.file)==null?void 0:ct.response)==null?void 0:ft.status)===-1){Qt.ZP.error((Lt=(gt=ut.file)==null?void 0:gt.response)==null?void 0:Lt.message);return}xt((Ut=(Rt=ut==null?void 0:ut.file)==null?void 0:Rt.response)==null?void 0:Ut.id)}};return ee.createElement(ee.Fragment,null,kt?lt():ee.createElement("div",null,ee.createElement(Zt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${Ct.Z.API_SERVER}/api/attachments.json`,onChange:ot,accept:"image/*"},tt),ee.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),ee.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))}},9507:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return kt}});var ee=ce(59301),wt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Qt=ce(92310),Zt=ce.n(Qt),Ot=ce(29787),jt=ce(2859),Ct=ce(38986),Mt=ce(51257),Bt=(xt,Dt,yt)=>new Promise((et,tt)=>{var lt=ct=>{try{ut(yt.next(ct))}catch(ft){tt(ft)}},ot=ct=>{try{ut(yt.throw(ct))}catch(ft){tt(ft)}},ut=ct=>ct.done?et(ct.value):Promise.resolve(ct.value).then(lt,ot);ut((yt=yt.apply(xt,Dt)).next())}),kt=({data:xt,className:Dt,fullWidth:yt,style:et={},onClose:tt,onOk:lt,showFullTools:ot,noAssociationId:ut})=>{const ct=(0,ee.useRef)(null),ft=(0,ee.useRef)(null),gt=(0,ee.useRef)(null),Lt=(0,ee.useRef)(null),[Rt,Ut]=(0,ee.useState)(!1),[Nt,qt]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>(gt.current||(gt.current=document.createElement("style"),document.head.appendChild(gt.current)),xt!=null&&xt.visible?(document.body.setAttribute("data-custom","y-hidden"),gt.current.innerHTML=" html { overflow-y: hidden; }",xt!=null&&xt.src&&te()):(document.body.removeAttribute("data-custom"),gt.current&&(document.head.removeChild(gt.current),gt.current=null)),()=>{document.body.removeAttribute("data-custom"),gt.current&&(document.head.removeChild(gt.current),gt.current=null)}),[xt==null?void 0:xt.visible]);const te=()=>Bt(void 0,null,function*(){Ut(!0),qt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,Mt.ZJ)(xt==null?void 0:xt.src);ct.current.src="",ct.current.src=be,ct.current.onload=function(){ge()},Ut(!1),qt("")}),Vt=be=>Bt(void 0,null,function*(){Ut(!0),qt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ne=yield(0,Ct.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:xt.title,file:be.dataUrl}});Ne!=null&&Ne.id&&!ut?(yield(0,Ct.ZP)(`/api/attachments/${xt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ne==null?void 0:Ne.id,settings:JSON.stringify(be.state)}})).status===0&<():Ne!=null&&Ne.id&<(Ne),Ut(!1),qt("")}),de=()=>{const be=document.querySelector('a[href="https://markerjs.com/"]');be&&be.parentNode&&(be.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(Ge=>{const Pe=document.querySelector(Ge.name);Pe&&Pe.setAttribute("title",Ge.title)})},ge=()=>{ft.current=new jt.hP(ct.current),ft.current.targetRoot=Lt.current,ft.current.addEventListener("render",Vt),ft.current.addEventListener("beforeclose",tt),ot&&(ft.current.availableMarkerTypes=ft.current.ALL_MARKER_TYPES,ft.current.uiStyleSettings.redoButtonVisible=!0,ft.current.uiStyleSettings.notesButtonVisible=!0,ft.current.uiStyleSettings.zoomButtonVisible=!0,ft.current.uiStyleSettings.zoomOutButtonVisible=!0,ft.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ft.current.uiStyleSettings,ft.current.show(),xt!=null&&xt.snapshotData&&ft.current.restoreState(xt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),de()},300)};return ee.createElement(ee.Fragment,null,(xt==null?void 0:xt.visible)&&ee.createElement(Ot.Z,{spinning:Rt,tip:Nt,style:{position:"absolute",width:"100vw"}},ee.createElement("div",{ref:Lt,className:Zt()(wt.imageDimensions,Dt,yt?wt.fullWidth:""),style:et},ee.createElement("img",{className:wt.img,ref:ct}))))}},76562:function(Cn,Gn,ce){"use strict";var ee=ce(59301),wt=ce(77019),Qt=ce(5269),Zt=ce(20554),Ot=ce(99571),jt=ce(76902),Ct=ce(99587),Mt=ce(48136),Bt=ce(59301);const St=(0,ee.forwardRef)(({callback:kt,showSaveButton:xt,value:Dt=""},yt)=>{const et=(0,ee.useRef)(),tt=[{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 "}]}]}],lt=[{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}`}]}]}],ot=ft=>{et.current.setValue(et.current.getValue()+" "+ft.value+" ")},ut=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Bt.createElement(wt.Z,{className:Ct.Z.lists,gutter:[10,10]},tt.map((ft,gt)=>Bt.createElement(Qt.Z,{flex:"110px",className:Ct.Z.item},Bt.createElement("div",null,Bt.createElement(jt.Z,{value:`$$${ft.value}$$`}),ft.name),Bt.createElement("div",{className:Ct.Z.children},ft.children.map((Lt,Rt)=>Bt.createElement("div",{key:Rt},Bt.createElement("h1",null,Lt.name),Bt.createElement(wt.Z,{gutter:[10,10]},Lt.data.map((Ut,Nt)=>Bt.createElement(Qt.Z,{key:Nt,onClick:()=>ot(Ut),className:Ct.Z.diamond},Bt.createElement(jt.Z,{value:"`$$"+Ut.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Bt.createElement(wt.Z,{className:Ct.Z.lists,gutter:[10,10]},lt.map((ft,gt)=>Bt.createElement(Qt.Z,{flex:"110px",className:Ct.Z.item},Bt.createElement("div",null,Bt.createElement(jt.Z,{value:"`$$"+ft.value+"$$`"}),ft.name),Bt.createElement("div",{className:Ct.Z.children},ft.children.map((Lt,Rt)=>Bt.createElement("div",{key:Rt},Lt.name&&Bt.createElement("h1",null,Lt.name),Bt.createElement(wt.Z,{gutter:[10,10]},Lt.data.map((Ut,Nt)=>Bt.createElement(Qt.Z,{key:Nt,onClick:()=>ot(Ut),className:Ct.Z.diamond},Bt.createElement(jt.Z,{value:"`$$"+Ut.value+"$$`"}))))))))))}],ct=()=>{var ft=document.createElement("div");ft.innerHTML=et.current.getValue();var gt=ft.innerText;return kt&&kt(gt),gt};return(0,ee.useImperativeHandle)(yt,()=>({getData:ct})),Bt.createElement("div",{className:Ct.Z.mathWrap},Bt.createElement(Zt.default,{defaultActiveKey:"1",items:ut}),Bt.createElement("math-field",{locale:"zh_cn",className:Ct.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Dt||""),xt&&Bt.createElement("div",{className:Ct.Z.button},Bt.createElement(Ot.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Gn.Z=St},96472:function(Cn,Gn,ce){"use strict";ce.d(Gn,{z:function(){return ze},Z:function(){return he}});var ee=ce(59301),wt=ce(14566),Qt=ce(6767),Zt=ce(62957),Ot=ce(99571),jt=ce(346),Ct=ce(51917),Mt=Object.defineProperty,Bt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,xt=(Jt,re,se)=>re in Jt?Mt(Jt,re,{enumerable:!0,configurable:!0,writable:!0,value:se}):Jt[re]=se,Dt=(Jt,re)=>{for(var se in re||(re={}))St.call(re,se)&&xt(Jt,se,re[se]);if(Bt)for(var se of Bt(re))kt.call(re,se)&&xt(Jt,se,re[se]);return Jt},yt=(Jt,re,se)=>new Promise((pe,ue)=>{var Re=Ae=>{try{Qe(se.next(Ae))}catch(_e){ue(_e)}},Fe=Ae=>{try{Qe(se.throw(Ae))}catch(_e){ue(_e)}},Qe=Ae=>Ae.done?pe(Ae.value):Promise.resolve(Ae.value).then(Re,Fe);Qe((se=se.apply(Jt,re)).next())});const et="\u3000\u3000";function tt(Jt){var re=["Bytes","KB","MB","GB","TB"];if(Jt==0)return"0 Byte";var se=parseInt(""+Math.floor(Math.log(Jt)/Math.log(1024)),10);return(Jt/Math.pow(1024,se)).toFixed(1)+" "+re[se]}var lt=({value:Jt=[],action:re,onChange:se,className:pe,maxSize:ue=150,title:Re="\u6587\u4EF6\u4E0A\u4F20",accept:Fe=null})=>{const Qe={multiple:!1,fileList:Jt,accept:Fe,withCredentials:!0,beforeUpload:_e=>_e.size/1024/1024(At.name.indexOf(et)===-1&&(At.name=`${At.name}${et}${tt(At.size)}`),Dt({},At))),_e.file.status==="done"&&((Oe=(Le=_e.file)==null?void 0:Le.response)==null?void 0:Oe.status)===-1){message.error((ie=(He=_e.file)==null?void 0:He.response)==null?void 0:ie.message),se([]);return}se(Tt)},onRemove:_e=>yt(void 0,null,function*(){const Le=_e.size/1024/1024;return _e.status==="uploading"?!0:Le0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:Jt.length>0,ghost:!0},Re),React.createElement("span",{onClick:Ae,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",ue,"M)"," ")))},ot=ce(61481),ut=ce(89392),ct=Object.defineProperty,ft=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Rt=(Jt,re,se)=>re in Jt?ct(Jt,re,{enumerable:!0,configurable:!0,writable:!0,value:se}):Jt[re]=se,Ut=(Jt,re)=>{for(var se in re||(re={}))gt.call(re,se)&&Rt(Jt,se,re[se]);if(ft)for(var se of ft(re))Lt.call(re,se)&&Rt(Jt,se,re[se]);return Jt};const Nt=Jt=>React.createElement("svg",Ut({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Jt),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",te=Object.defineProperty,Vt=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,be=(Jt,re,se)=>re in Jt?te(Jt,re,{enumerable:!0,configurable:!0,writable:!0,value:se}):Jt[re]=se,Ne=(Jt,re)=>{for(var se in re||(re={}))de.call(re,se)&&be(Jt,se,re[se]);if(Vt)for(var se of Vt(re))ge.call(re,se)&&be(Jt,se,re[se]);return Jt},Ge=(Jt,re,se)=>new Promise((pe,ue)=>{var Re=Ae=>{try{Qe(se.next(Ae))}catch(_e){ue(_e)}},Fe=Ae=>{try{Qe(se.throw(Ae))}catch(_e){ue(_e)}},Qe=Ae=>Ae.done?pe(Ae.value):Promise.resolve(Ae.value).then(Re,Fe);Qe((se=se.apply(Jt,re)).next())});const{Dragger:Pe}=wt.default;function ze(Jt){let re=[];return Jt&&Jt.length>0&&(re=Jt.map(se=>({uid:se.id,id:se.id,name:se.title+et+se.filesize,url:se.url,filesize:se.filesize,status:"done",response:{id:se.id}}))),re}var he=({value:Jt,onChange:re,action:se,data:pe,className:ue,maxSize:Re=150,title:Fe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Qe=!1,accept:Ae="",additionalText:_e,isDragger:Le,number:Oe=1e3,aloneClear:He=!1,realTimeRemove:ie=!0,uploadText:Tt,setFileProgress:At,showFileProgress:Yt})=>{const[oe,_t]=(0,ee.useState)(!1);let[It,Pt]=(0,ee.useState)(Jt||[]),[Et,$t]=(0,ee.useState)(1);(0,ee.useEffect)(()=>{Jt&&(Et===1&&Pt([...Jt]),$t(2),Oe===(Jt==null?void 0:Jt.length)&&_t(!0))},[Jt]);const zt=()=>{setTimeout(()=>{It.pop(),Pt([...It])},500)};Yt&&At(It.some(ye=>ye.status==="uploading"));const Gt={multiple:!0,disabled:oe,accept:Ae,withCredentials:!0,fileList:It,beforeUpload:(ye,Ue)=>{const We=ye.size/1024/1024;return It.concat(Ue).length>Oe?(It.pop(),Pt([...It]),Qt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Oe}\u4E2A\u6587\u4EF6`),He?Promise.reject():(zt(),!1)):We=Oe?_t(!0):_t(!1),Pt([...It]),It=It.map(on=>{var nn,qe;return(nn=on==null?void 0:on.response)!=null&&nn.id&&(on.url=(qe=on==null?void 0:on.response)==null?void 0:qe.url),on.name.indexOf(et)===-1&&(on.name=`${on.name}${et}${tt(on.size)}`),Ne({},on)}),console.log("info:",ye,It),re(It)},onRemove:ye=>Ge(void 0,null,function*(){if(!ie)return!0;const Ue=()=>Ge(void 0,null,function*(){if(ye.response?ye.response.id:ye.id){let Ee=yield(0,Ct.JZ)(ye.response?ye.response.id:ye.uid);return Promise.resolve(Ee)}else return!0});return Qe?new Promise((We,Ee)=>{Zt.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ee.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ge(void 0,null,function*(){const Ze=yield Ue();Qt.ZP.success("\u5220\u9664\u6210\u529F"),We(!0)}),onCancel:()=>We(!1)})}):yield Ue()})};function le(ye){ye.preventDefault(),ye.stopPropagation()}return ee.createElement("div",{className:`multi-upload ${ue||""}`},Le&&ee.createElement(Pe,Ne({},Gt),ee.createElement("p",{className:"ant-upload-drag-icon"},ee.createElement(ot.Z,null)),ee.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ee.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Re,"MB)"," "),_e),!Le&&ee.createElement(wt.default,Ne({},Gt),ee.createElement(Ot.ZP,{disabled:oe,className:"upload_button"},ee.createElement("img",{className:"aBtn_img",src:qt}),Fe),ee.createElement("span",{onClick:le,className:"upload_text"},Tt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Re}MB)`)))}},28426:function(Cn,Gn,ce){"use strict";var ee=ce(59301),wt=ce(93314),Qt=ce(99571),Zt=Object.defineProperty,Ot=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,St=(yt,et,tt)=>et in yt?Zt(yt,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):yt[et]=tt,kt=(yt,et)=>{for(var tt in et||(et={}))Mt.call(et,tt)&&St(yt,tt,et[tt]);if(Ct)for(var tt of Ct(et))Bt.call(et,tt)&&St(yt,tt,et[tt]);return yt},xt=(yt,et)=>Ot(yt,jt(et));const Dt=({img:yt,buttonProps:et={},styles:tt={},customText:lt,ButtonText:ot,ButtonClick:ut,Buttonclass:ct,ButtonTwo:ft,imgStyles:gt,loading:Lt=!1,className:Rt=""})=>ee.createElement("section",{className:`tc animated fadeIn ${Rt}`,style:kt({color:"#999",margin:"100px auto",visibility:Lt?"hidden":"visible"},tt)},ee.createElement("img",{src:yt||wt,style:xt(kt({},gt),{pointerEvents:"none",userSelect:"none"})}),ee.createElement("p",{className:"mt20 font14"},lt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ot&&ee.createElement(Qt.ZP,kt({className:ct,onClick:ut},et),ot),ft&&ft);Gn.Z=Dt},45677:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return ct}});var ee=ce(59301),wt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Qt=ce(99571),Zt=ce(70557),Ot=ce(75975),jt=ce(25399),Ct=ce(51257),Mt=ce(81722),Bt=ce(28426),St=ce(346),kt=ce(44203),xt=ce(59301),Dt=Object.defineProperty,yt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(ft,gt,Lt)=>gt in ft?Dt(ft,gt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):ft[gt]=Lt,ot=(ft,gt)=>{for(var Lt in gt||(gt={}))et.call(gt,Lt)&<(ft,Lt,gt[Lt]);if(yt)for(var Lt of yt(gt))tt.call(gt,Lt)&<(ft,Lt,gt[Lt]);return ft},ut=(ft,gt,Lt)=>new Promise((Rt,Ut)=>{var Nt=Vt=>{try{te(Lt.next(Vt))}catch(de){Ut(de)}},qt=Vt=>{try{te(Lt.throw(Vt))}catch(de){Ut(de)}},te=Vt=>Vt.done?Rt(Vt.value):Promise.resolve(Vt.value).then(Nt,qt);te((Lt=Lt.apply(ft,gt)).next())}),ct=({editOffice:ft="view",data:gt,issaver:Lt,onSaver:Rt,theme:Ut,type:Nt,filename:qt,monacoEditor:te,className:Vt,style:de,close:ge,onClose:be,hasMask:Ne,disabledDownload:Ge,onImgDimensions:Pe,showNodata:ze,recordInfo:he})=>{const[Jt,re]=(0,ee.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[se,pe]=(0,ee.useState)(""),[ue,Re]=(0,ee.useState)(),Fe=window.ENV==="build"?"/react/build":"",Qe=location.host.startsWith("localhost")?St.Z.PROXY_SERVER:St.Z.API_SERVER,_e=10*(1024*1024),Le=(0,ee.useRef)();gt!=null&>.startsWith("/api")&&Nt!=="txt"&&(gt=St.Z.API_SERVER+gt);const Oe=Yt=>Yt.substring(Yt.lastIndexOf("/")+1).split(".").pop();qt&&te&&(te.filename=qt),(0,ee.useEffect)(()=>{var Yt,oe;const _t=(oe=(Yt=document.cookie)==null?void 0:Yt.replace(/\s/g,""))==null?void 0:oe.split(";");_t==null||_t.map(It=>{let Pt=It.split("=");Pt[0]==="_educoder_session"&&pe(Pt[1])})},[]),(0,ee.useEffect)(()=>{Nt==="office"&&(gt.indexOf("bigfilescdn.")>-1||gt.indexOf("bigfiles1")>-1?Re({url:gt,fileType:Oe(gt),model:gt.indexOf("model=edit")?"edit":"view"}):ie())},[Nt,gt]);function He(Yt){return ut(this,null,function*(){Yt.data.type==="pdfdata"&&(Rt(Yt.data.data),window.removeEventListener("message",He,!1)),console.log("mess---:",Yt.data)})}const ie=()=>ut(void 0,null,function*(){console.log("data:",gt);let Yt=gt;gt.startsWith("http")||(Yt=location.origin+Yt);let oe=new URL(Yt).pathname.split("/").pop();const _t=yield(0,Mt.gJ)({attachment_id:oe});_t.url=Qe+_t.url,Re(_t)}),Tt=()=>{if(gt.startsWith("http")||gt.startsWith("blob:")){At();return}(0,Ct.Sv)(qt||"educoder",gt,qt)},At=()=>{he&&(0,kt.fc)({id:he==null?void 0:he.id,watch_type:1,course_id:he==null?void 0:he.course_id}),(0,Ct.Nd)(qt||"educoder",decodeURIComponent(gt))};return xt.createElement("div",{style:ot({},de||{}),className:`${Ne&&wt.bgBlack} ${Nt?wt.wrp:"hide"}`},ge&&xt.createElement("div",{className:wt.close,ref:Le},!!Pe&&xt.createElement(jt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Le.current},xt.createElement("span",{onClick:()=>{be(),Pe()}},xt.createElement("i",{className:"icon-yulanpizhu"}))),!Ge&&xt.createElement(jt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Le.current},xt.createElement("span",{onClick:At},xt.createElement("i",{className:"icon-quxiaozhiding"}))),Lt&&xt.createElement(jt.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Le.current},xt.createElement("span",{className:"",onClick:()=>{const Yt=document.getElementById("pdfiframe");window.addEventListener("message",He,!1),setTimeout(()=>{Yt.contentWindow.postMessage("getData","*")},300)}},xt.createElement("i",{className:"icon-baocun"}))),xt.createElement(jt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Le.current},xt.createElement("span",{className:"",onClick:()=>{be()}},xt.createElement("i",{className:"icon-guanbi1"})))),xt.createElement("div",{className:`${wt[Vt]} ${Vt} ${wt.monaco} ${Nt==="txt"?"show":"hide"}`},Nt==="txt"&&xt.createElement(xt.Fragment,null,xt.createElement(Ot.ZP,ot({},te)))),Nt==="audio"&&xt.createElement("audio",{src:`${(gt==null?void 0:gt.indexOf("http://"))>-1||(gt==null?void 0:gt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${gt}`,autoPlay:!0}),Nt==="video"&&xt.createElement(xt.Fragment,null,(gt==null?void 0:gt.indexOf("http"))>-1?xt.createElement("video",{controls:!0,src:`${gt}`,autoPlay:!0}):xt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${gt}`,autoPlay:!0})),Nt==="office"&&ue&&xt.createElement("iframe",{src:`${Fe}/office.html?key=${ue.key}&url=${btoa(ue.url)}&callbackUrl=${Qe+(ue.callbackUrl||"")}&fileType=${ue.fileType}&title=${ue.title||""}&model=${ft}&officeServer=${St.Z.ONLYOFFICE}&disabledDownload=${!!Ge}`}),Nt==="html"&&xt.createElement("iframe",{src:gt+"&disposition=inline"}),Nt==="pdf"&&xt.createElement("iframe",{id:"pdfiframe",src:`${Fe}/js/pdfview/index.html?filename=${qt||"educoder.pdf"}&url=${encodeURIComponent(gt)}&disabledDownload=${!!Ge}&model=${ft}`}),Nt==="image"&&xt.createElement("img",{src:`${(gt==null?void 0:gt.indexOf("http://"))>-1||(gt==null?void 0:gt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${gt}`}),(Nt==="other"||Nt==="download")&&xt.createElement(xt.Fragment,null,ze?xt.createElement(Bt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:xt.createElement(Qt.ZP,{icon:xt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Tt,disabled:Ge},"\u4E0B\u8F7D")}):xt.createElement(Qt.ZP,{type:"primary",size:"middle",onClick:Tt,disabled:Ge},xt.createElement(Zt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Cn,Gn,ce){"use strict";ce.d(Gn,{z:function(){return Ut},Z:function(){return Nt}});var ee=ce(59301),wt=ce(8944),Qt=ce(81428),Zt=ce(64018),Ot=ce(79710),jt=ce(346),Ct=ce(51257),Mt=ce(15342),Bt=ce(1012),St=ce(45677),kt=ce(59301),Dt=({html:qt})=>{const te=(0,ee.useRef)(null),Vt=(0,ee.useRef)(null),de=`.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,ee.useEffect)(()=>{const ge=te.current.attachShadow({mode:"open"});Vt.current=document.createElement("div"),Vt.current.className="markdown-body",Vt.current.innerHTML=qt,ge.appendChild(Vt.current);const be=document.createElement("style");return be.textContent=de,ge.appendChild(be),()=>{ge.innerHTML=""}},[]),(0,ee.useEffect)(()=>{Vt.current&&(Vt.current.innerHTML=qt)},[qt]),kt.createElement("div",{ref:te})};function yt(qt){const te=["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"],Vt=new RegExp(`\\b(${te.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return qt.replace(Vt,"").trim()}var et=Object.defineProperty,tt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,ut=(qt,te,Vt)=>te in qt?et(qt,te,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):qt[te]=Vt,ct=(qt,te)=>{for(var Vt in te||(te={}))lt.call(te,Vt)&&ut(qt,Vt,te[Vt]);if(tt)for(var Vt of tt(te))ot.call(te,Vt)&&ut(qt,Vt,te[Vt]);return qt};const ft="@\u2581\u2581@",gt="@\u2581@",Lt=/]*>/g;function Rt(qt){let te=document.createElement("div");return te.innerHTML=qt,te.childNodes.length===0?"":te.childNodes[0].nodeValue}const Ut=(qt,te)=>{qt=qt||"";const Vt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,de=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ge=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,be=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return te?qt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Vt,(Ne,Ge,Pe,ze,he,Jt,re)=>{const se=Ge||ze||Jt,pe=Pe||he||re||"?";return jt.Z.API_SERVER+"/api/attachments/"+se+pe+"&t="+(0,Ct.Jn)(se,Date.now())+(Ne.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(qt=qt.replace(be,(Ne,Ge,Pe,ze,he,Jt,re)=>{const se=Ge||ze||Jt,pe=Pe||he||re||"?";return jt.Z.API_SERVER+"/attachments/download/"+se+pe+"&t="+(0,Ct.Jn)(se,Date.now())+(Ne.indexOf(")")>-1?")":"&")}).replace(Vt,(Ne,Ge,Pe,ze,he,Jt,re)=>{const se=Ge||ze||Jt,pe=Pe||he||re||"?";return jt.Z.API_SERVER+"/api/attachments/"+se+pe+"&t="+(0,Ct.Jn)(se,Date.now())+(Ne.indexOf(")")>-1?")":"&")}).replace(de,(Ne,Ge,Pe,ze,he)=>{const Jt=Ge||ze,re=Pe||he||"";return'"'+jt.Z.API_SERVER+"/api/attachments/"+Jt+re+Jt+re+"&t="+(0,Ct.Jn)(Jt,Date.now())}).replace(ge,(Ne,Ge,Pe,ze,he)=>{const Jt=Ge||ze,re=Pe||he||"";return"("+jt.Z.API_SERVER+"/files/uploads/"+Jt+re+Jt+re+"&t="+(0,Ct.Jn)(Jt,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,` `),qt)};var Nt=({value:qt="",className:te,showTextOnly:Vt,showLines:de,style:ge={},stylesPrev:be={},highlightKeywords:Ne,showProgramFill:Ge,isProgramFill:Pe,disabledFill:ze=!1,programFillValue:he,onFillChange:Jt=pe=>{},onFillBlur:re=()=>{},onFillFocus:se=()=>{}})=>{let pe=yt(String(qt||""));const[ue,Re]=(0,ee.useState)(""),[Fe,Qe]=(0,ee.useState)("office"),[Ae,_e]=(0,ee.useState)([]),Le=(0,ee.useRef)("a"+(0,Bt.Z)()),Oe={},He=Gt=>//i.test(Gt||""),ie=(Gt,le,ye)=>{const Ue=document.createElement(Gt===gt?"input":"textarea");Ue.style.width="100%",Ue.style.height=Gt===gt?"40px":"151px",Ue.rows=5,Ue.spellcheck=!1,Ue.name="edu-program-fill",Ue.placeholder="\u8BF7\u8F93\u5165",Ue.dataset.id=le;const We=Object.keys(Oe).length;return Oe[We]=Ue,`${Ue.outerHTML}`};function Tt(Gt){return Gt=Gt.replace(/!\[.*?\]\(.*?\)/g,""),Gt=Gt.replace(/\[.*?\]\(.*?\)/g,""),Gt=Gt.replace(new RegExp("","gs"),""),Gt=Gt.replace(//g,""),Gt=Gt.replace(//g,""),Gt=Gt.replace(new RegExp(".*?<\\/video>","gs"),""),Gt=Gt.replace(new RegExp(".*?<\\/audio>","gs"),""),Gt=Gt.replace(new RegExp(".*?<\\/style>","gs"),""),Gt=Gt.replace(new RegExp(".*?<\\/script>","gs"),""),Gt}const At=Gt=>!Vt&&He(pe)?Gt:Gt.replace(/([\s\S]+?)<\/style>/gim,function(le,ye){let Ue=ye.replace(/(\n|\r)/g,"").split("}"),We=[];return Ue.map(Ee=>{Ee!=""&&We.push(`.${Le.current} ${Ee}`)}),``}),Yt=(0,ee.useMemo)(()=>{try{const Ue=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,We=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ee=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ze=/\(\/attachments\/download\//g;pe=pe.replace(Ze,"("+jt.Z.API_SERVER+"/attachments/download/").replace(Ue,"("+jt.Z.API_SERVER+"/api/attachments/").replace(We,'"'+jt.Z.API_SERVER+"/api/attachments/").replace(Ee,'"'+jt.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(Ue){}if(Ge){let Ue=-1;return pe=pe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(We,Ee,Ze){var on;return++Ue,ie(We,Ue,(on=he==null?void 0:he[Ue])==null?void 0:on.value.replaceAll("<","<").replaceAll(">",">"))}),`
${At(pe||"")}
`}let Gt=At(pe);Gt=(0,Qt.ZP)(Gt);const le=(0,Qt.ez)();pe.match(/\[TOC\]/)&&(Gt=Gt.replace("

[TOC]

",(0,Qt.Qv)()),(0,Qt.Iy)()),Gt=Gt.replace(/(__special_katext_id_\d+__)/g,(Ue,We)=>{const{type:Ee,expression:Ze}=le[We];return(0,Mt.renderToString)(Rt(Ze)||"",{displayMode:Ee==="block",throwOnError:!1,output:"html"})}),Gt=Gt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Qt.AL)();const ye=document.createElement("div");if(ye.innerHTML=Gt,Vt)return ye.innerText;if(Ne){const Ue=Ne.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Pt(ye,Ue),ye.innerHTML}return setTimeout(()=>zt(),500),ye.innerHTML},[pe,Ne]);(0,ee.useEffect)(()=>{Et.current&&Et.current.querySelectorAll(["input","textarea"]).forEach(le=>{le.oninput=oe,le.onblur=_t,le.onfocus=It})},[Ae]),(0,ee.useEffect)(()=>{var Gt,le,ye,Ue,We;if(he!=null&&he.length)try{const Ee=Et.current.querySelectorAll(".edu-program-fill-score"),Ze=Et.current.querySelectorAll('[name="edu-program-fill"]');for(const[on,nn]of Ze.entries())nn.value=((Gt=he==null?void 0:he[on])==null?void 0:Gt.value)||"",((le=he==null?void 0:he[on])==null?void 0:le.type)==="warning"?nn.className="program-fill-warning":((ye=he==null?void 0:he[on])==null?void 0:ye.type)==="success"?nn.className="program-fill-success":nn.className="";for(const[on,nn]of Ee.entries())nn.innerHTML=(Ue=he==null?void 0:he[on])!=null&&Ue.score?`${(We=he==null?void 0:he[on])==null?void 0:We.score}\u5206`:"";_e(he)}catch(Ee){console.log(Ee,"error")}},[he]);const oe=Gt=>{Ae[Gt.target.dataset.id]=Ae[Gt.target.dataset.id]||{},Ae[Gt.target.dataset.id].value=Gt.target.value,_e([...Ae]),Jt(Ae,Gt.target.dataset.id)},_t=Gt=>{Ae[Gt.target.dataset.id]=Ae[Gt.target.dataset.id]||{},Ae[Gt.target.dataset.id].value=Gt.target.value,_e([...Ae]),re(Ae,Gt.target.dataset.id)},It=Gt=>{Ae[Gt.target.dataset.id]=Ae[Gt.target.dataset.id]||{},Ae[Gt.target.dataset.id].value=Gt.target.value,_e([...Ae]),se(Ae,Gt.target.dataset.id)};function Pt(Gt,le){return Gt.childNodes.forEach(ye=>{var Ue;if(ye.childNodes.length>0)Pt(ye,le);else if(ye.nodeName!=="IMG")if(ye.innerHTML)ye.innerHTML=(Ue=ye.innerHTML)==null?void 0:Ue.replace(new RegExp(le,"gi"),'$&');else{const We=document.createElement("span");We.innerHTML=ye.textContent.replace(new RegExp(le,"gi"),'$&'),ye.replaceWith(We)}})}const Et=(0,ee.useRef)();Qt.jb.WebkitLineClamp=de,de&&(ge=ct(ct({},ge),Qt.jb));function $t(Gt){let le=Gt.target;if(le.tagName.toUpperCase()==="A"){let ye=le.getAttribute("href");if(ye.indexOf("office")>-1)Gt.preventDefault(),Re(ye),Qe("office");else if(ye.indexOf("application/pdf")>-1)Gt.preventDefault(),Re(ye),Qe("pdf");else if(ye.indexOf("text/html")>-1)Gt.preventDefault(),Re(ye),Qe("html");else if(ye.startsWith("#")){Gt.preventDefault();let Ue=document.getElementById(ye.replace("#",""));Ue&&Ue.scrollIntoView(!0)}}}const zt=()=>{var Gt;const le=(Gt=Et.current)==null?void 0:Gt.querySelectorAll("video");le==null||le.forEach(ye=>{if(ye.oncontextmenu=()=>!1,ye.src.indexOf(".m3u8")>-1&&!ye.canPlayType("application/vnd.apple.mpegurl")){if(Ot.ZP.isSupported()){var Ue=new Ot.ZP;Ue.loadSource(ye.src),Ue.attachMedia(ye)}}})};return(0,ee.useEffect)(()=>{if(Et.current&&Yt&&Yt.match(Lt)&&window.PR.prettyPrint(),Et.current)return Et.current.addEventListener("click",$t),()=>{var Gt;(Gt=Et.current)==null||Gt.removeEventListener("click",$t),(0,Qt.AL)(),(0,Qt.Iy)()}},[Yt,Et.current,$t]),(0,ee.useEffect)(()=>{var Gt;const le=ye=>{ye.preventDefault(),ye.clipboardData.setData("text",window.getSelection().toString())};return(Gt=Et.current)==null||Gt.addEventListener("copy",le),()=>{var ye;(ye=Et.current)==null||ye.removeEventListener("copy",le)}},[Et.current]),ee.createElement(ee.Fragment,null,Vt&&ee.createElement("div",{ref:Et},Yt),!Vt&&!He(Yt)&&ee.createElement("div",{ref:Et,style:ct({},ge),className:`${te||""} ${ze?"disabled-fill":""} markdown-body ${Le.current}`,dangerouslySetInnerHTML:{__html:Yt}}),!Vt&&He(Yt)&&ee.createElement(Dt,{html:Yt}),ee.createElement(St.Z,{close:!0,data:ue,type:ue!=null&&ue.length?Fe:"",style:ct({},be),onClose:()=>Re("")}))}},87320:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Zt}});var ee=ce(59301),wt=ce(49535),Qt=ce(90083),Zt=()=>{const[Ot,jt]=(0,ee.useState)(""),[Ct,Mt]=(0,ee.useState)(0);let[Bt,St]=(0,ee.useState)(),[kt,xt]=(0,ee.useState)();const[Dt,yt]=(0,ee.useState)(!1),et=(0,ee.useRef)("");(0,ee.useEffect)(()=>wt.Z.subscribe("preview-image",Nt=>{jt(Nt),console.log(Lt.current),document.body.style.overflow="hidden"}),[]),(0,ee.useEffect)(()=>(document.addEventListener("keydown",tt),()=>{document.removeEventListener("keydown",tt)}),[]),(0,ee.useEffect)(()=>{et.current=Ot},[Ot]);function tt(Ut){Ut.keyCode==27&&et.current&<()}function lt(){document.body.style.overflow="auto",St(void 0),xt(void 0),Mt(0),jt("")}function ot(){Mt(Ct+90)}function ut(){Bt=Lt.current.width*1.1,kt=Lt.current.height*1.1,xt(kt),St(Bt)}function ct(){Bt=Lt.current.width/1.1,kt=Lt.current.height/1.1,xt(kt),St(Bt)}const ft=(0,ee.useRef)(),gt=(0,ee.useRef)(),Lt=(0,ee.useRef)(),Rt=Ut=>{(Ut.nativeEvent.target===ft.current||Ut.nativeEvent.target===gt.current)&<()};return ee.createElement(ee.Fragment,null,Ot?ee.createElement("div",null,ee.createElement("div",{className:"preview-wrp-group",ref:gt},ee.createElement(Qt.Z,{className:"image-preview",src:Ot,style:{display:"none"},preview:{visible:!0,src:Ot,onVisibleChange:Ut=>{jt("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},69720:function(Cn,Gn,ce){"use strict";ce.d(Gn,{h:function(){return ft}});var ee=ce(59301),wt=ce(82326),Qt=ce(28284),Zt=ce(99571),Ot=ce(89780),jt=ce.n(Ot),Ct=ce(8336),Mt=ce(12469),Bt=Object.defineProperty,St=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,et=(gt,Lt,Rt)=>Lt in gt?Bt(gt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):gt[Lt]=Rt,tt=(gt,Lt)=>{for(var Rt in Lt||(Lt={}))Dt.call(Lt,Rt)&&et(gt,Rt,Lt[Rt]);if(xt)for(var Rt of xt(Lt))yt.call(Lt,Rt)&&et(gt,Rt,Lt[Rt]);return gt},lt=(gt,Lt)=>St(gt,kt(Lt));const ot=wt.default.Option,ut={labelCol:{span:4},wrapperCol:{span:20}},ct={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"]};Gn.Z=({callback:gt,onCancel:Lt})=>{const[Rt,Ut]=(0,ee.useState)("python");function Nt(te){Ut(ct[te][1])}function qt(te){gt(te)}return ee.createElement(Qt.default,lt(tt({},ut),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:qt,style:{width:500}}),ee.createElement(Qt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(wt.default,{getPopupContainer:te=>te.parentNode,onChange:Nt},Object.keys(ct).map(te=>ee.createElement(ot,{key:te,value:te},ct[te][0])))),ee.createElement(Qt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(ft,{mode:Rt})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Zt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Zt.ZP,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))};function ft({value:gt,onChange:Lt,mode:Rt,options:Ut={}}){const Nt=(0,ee.useRef)(),[qt,te]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(qt){let Vt=function(de){const ge=de.getValue();Lt&&Lt(ge)};return qt.on("change",Vt),()=>{qt.off("change",Vt)}}},[qt,Lt]),(0,ee.useEffect)(()=>{qt&&qt.setOption("mode",Rt)},[qt,Rt]),(0,ee.useEffect)(()=>{qt&&(gt!==qt.getValue()||gt==="")&&setTimeout(()=>{qt.setValue(gt||"")},300)},[qt,gt]),(0,ee.useEffect)(()=>{if(Nt.current&&!qt){const Vt=jt().fromTextArea(Nt.current,tt({mode:Rt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ut));te(Vt)}},[Nt.current,qt]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:Nt}))}},39793:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return ki}});var ee=ce(59301),wt=ce(89780),Qt=ce.n(wt),Zt=ce(76374),Ot=ce(8336),jt=ce(6313),Ct=ce(25717),Mt=ce(99498),Bt=ce(25419),St=ce(67549),kt=ce(76902),xt=({value:Xe="",className:Je,showTextOnly:Ke,showLines:Hn,style:Jn={}})=>{const qn=(0,ee.useMemo)(()=>"",[Xe]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:qn}}))},Dt=ce(59301),yt=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ct=(Xe,Je,Ke)=>Je in Xe?yt(Xe,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Xe[Je]=Ke,ft=(Xe,Je)=>{for(var Ke in Je||(Je={}))ot.call(Je,Ke)&&ct(Xe,Ke,Je[Ke]);if(lt)for(var Ke of lt(Je))ut.call(Je,Ke)&&ct(Xe,Ke,Je[Ke]);return Xe},gt=(Xe,Je)=>et(Xe,tt(Je));let Lt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Rt({onActionCallback:Xe,title:Je,icon:Ke,actionName:Hn,className:Jn="",children:qn}){function pn(){Xe(Hn)}return Dt.createElement("a",{title:Je,className:Jn,onClick:pn},Dt.createElement("i",{className:`${Ke}`}),qn)}var Ut=({watch:Xe,showNullButton:Je,showNullProgramButton:Ke,onActionCallback:Hn,fullScreen:Jn,insertTemp:qn,hidetoolBar:pn,extraUse:Bn})=>{const hi=[...Lt,{title:`${Xe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Xe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Dt.createElement("ul",{className:"markdown-toolbar-container"},!pn&&hi.map((Ti,Di)=>Dt.createElement("li",{key:Di},Ti.actionName?Dt.createElement(Rt,gt(ft({},Ti),{onActionCallback:Hn})):Dt.createElement("span",{className:"v-line"}))),Je?Dt.createElement("li",null,Dt.createElement(Rt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Hn},Dt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ke?Dt.createElement(Dt.Fragment,null,Dt.createElement("li",null,Dt.createElement(Rt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Hn},Dt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Dt.createElement("li",null,Dt.createElement(Rt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Hn},Dt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,qn&&Dt.createElement("li",null,Dt.createElement(Rt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${qn}`,onActionCallback:Hn},Dt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Bn&&Dt.createElement("li",null,Bn),Dt.createElement("li",{className:"btn-full-screen"},Dt.createElement(Rt,{icon:`${Jn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Jn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Hn})))},Nt=ce(91558),qt=ce(28284),te=ce(37568),Vt=ce(99571),de=Object.defineProperty,ge=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,ze=(Xe,Je,Ke)=>Je in Xe?de(Xe,Je,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Xe[Je]=Ke,he=(Xe,Je)=>{for(var Ke in Je||(Je={}))Ge.call(Je,Ke)&&ze(Xe,Ke,Je[Ke]);if(Ne)for(var Ke of Ne(Je))Pe.call(Je,Ke)&&ze(Xe,Ke,Je[Ke]);return Xe},Jt=(Xe,Je)=>ge(Xe,be(Je));const re={labelCol:{span:4},wrapperCol:{span:20}};var se=({callback:Xe,onCancel:Je})=>{function Ke(Hn){Xe(Hn)}return ee.createElement(qt.default,Jt(he({},re),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ke,style:{width:500}}),ee.createElement(qt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(te.default,null)),ee.createElement(qt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(te.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Vt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Vt.ZP,{type:"ghost",onClick:Je},"\u53D6\u6D88")))},pe=ce(69720),ue=ce(17077),Re=ce(62957),Fe=ce(77019),Qe=ce(9507),Ae=ce(59301),_e=({callback:Xe,onCancel:Je})=>{const Ke=document.createElement("canvas"),Hn=Ke.getContext("2d");Ke.width=1e3,Ke.height=800,Hn.fillStyle="#ffffff",Hn.fillRect(0,0,Ke.width,Ke.height);const Jn=Ke.toDataURL("image/png");return Ae.createElement(Re.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ae.createElement(Fe.Z,{style:{height:"100vh"}},Ae.createElement(Qe.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Jn,visible:!0,title:String(Date.now())},onOk:qn=>{Xe({src:qn.url})},onClose:Je})))},Le=ce(12378);function Oe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Oe,go.CommandHandler),Oe.prototype.canAlignSelection=function(){var Xe=this.diagram;return!(Xe===null||Xe.isReadOnly||Xe.isModelReadOnly||Xe.selection.count<2)},Oe.prototype.alignLeft=function(){var Xe=this.diagram;Xe.startTransaction("aligning left");var Je=1/0;Xe.selection.each(function(Ke){Ke instanceof go.Link||(Je=Math.min(Ke.position.x,Je))}),Xe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Je,Ke.position.y))}),Xe.commitTransaction("aligning left")},Oe.prototype.alignRight=function(){var Xe=this.diagram;Xe.startTransaction("aligning right");var Je=-1/0;Xe.selection.each(function(Ke){if(!(Ke instanceof go.Link)){var Hn=Ke.actualBounds.x+Ke.actualBounds.width;Je=Math.max(Hn,Je)}}),Xe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Je-Ke.actualBounds.width,Ke.position.y))}),Xe.commitTransaction("aligning right")},Oe.prototype.alignTop=function(){var Xe=this.diagram;Xe.startTransaction("alignTop");var Je=1/0;Xe.selection.each(function(Ke){Ke instanceof go.Link||(Je=Math.min(Ke.position.y,Je))}),Xe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Ke.position.x,Je))}),Xe.commitTransaction("alignTop")},Oe.prototype.alignBottom=function(){var Xe=this.diagram;Xe.startTransaction("aligning bottom");var Je=-1/0;Xe.selection.each(function(Ke){if(!(Ke instanceof go.Link)){var Hn=Ke.actualBounds.y+Ke.actualBounds.height;Je=Math.max(Hn,Je)}}),Xe.selection.each(function(Ke){Ke instanceof go.Link||Ke.move(new go.Point(Ke.actualBounds.x,Je-Ke.actualBounds.height))}),Xe.commitTransaction("aligning bottom")},Oe.prototype.alignCenterX=function(){var Xe=this.diagram,Je=Xe.selection.first();if(Je){Xe.startTransaction("aligning Center X");var Ke=Je.actualBounds.x+Je.actualBounds.width/2;Xe.selection.each(function(Hn){Hn instanceof go.Link||Hn.move(new go.Point(Ke-Hn.actualBounds.width/2,Hn.actualBounds.y))}),Xe.commitTransaction("aligning Center X")}},Oe.prototype.alignCenterY=function(){var Xe=this.diagram,Je=Xe.selection.first();if(Je){Xe.startTransaction("aligning Center Y");var Ke=Je.actualBounds.y+Je.actualBounds.height/2;Xe.selection.each(function(Hn){Hn instanceof go.Link||Hn.move(new go.Point(Hn.actualBounds.x,Ke-Hn.actualBounds.height/2))}),Xe.commitTransaction("aligning Center Y")}},Oe.prototype.alignColumn=function(Xe){var Je=this.diagram;Je.startTransaction("align Column"),Xe===void 0&&(Xe=0),Xe=parseFloat(Xe);var Ke=new Array;Je.selection.each(function(Bn){Bn instanceof go.Link||Ke.push(Bn)});for(var Hn=0;Hn0){for(var Bn=qn.elt(pn-1);Bn!==null&&Bn.isTreeExpanded&&!Bn.isTreeLeaf;){var hi=this._sortTreeChildrenByY(Bn);Bn=hi.last()}Bn!==null&&Xe.select(Bn)}else Xe.select(Jn)}}else if(Ke.key==="Down")if(Je.isTreeExpanded&&!Je.isTreeLeaf){var Hn=this._sortTreeChildrenByY(Je).first();Hn!==null&&Xe.select(Hn)}else for(;Je!==null;){var Jn=Je.findTreeParentNode();if(Jn===null)break;var qn=this._sortTreeChildrenByY(Jn),pn=qn.indexOf(Je);if(pnqn.y?1:Jn.xqn.x?1:0}),Je},Oe.prototype.copyToClipboard=function(Xe){go.CommandHandler.prototype.copyToClipboard.call(this,Xe),this._lastPasteOffset.set(this.pasteOffset)},Oe.prototype.pasteFromClipboard=function(){var Xe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Xe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Xe},Object.defineProperty(Oe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Xe){if(Xe!=="move"&&Xe!=="select"&&Xe!=="scroll"&&Xe!=="tree"&&Xe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Xe);this._arrowKeyBehavior=Xe}}),Object.defineProperty(Oe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Xe){if(!(Xe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Xe);this._pasteOffset.set(Xe)}});var He=Oe,ie=ce(63720),Tt=ce(5269),At=ce(38986),Yt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},oe=ce(48790),_t=ce(59301),It=(Xe,Je,Ke)=>new Promise((Hn,Jn)=>{var qn=hi=>{try{Bn(Ke.next(hi))}catch(Ti){Jn(Ti)}},pn=hi=>{try{Bn(Ke.throw(hi))}catch(Ti){Jn(Ti)}},Bn=hi=>hi.done?Hn(hi.value):Promise.resolve(hi.value).then(qn,pn);Bn((Ke=Ke.apply(Xe,Je)).next())});function Pt({onCancel:Xe,callback:Je}){let Ke=(0,ee.useRef)(),Hn=(0,ee.useRef)(),Jn=(0,ee.useRef)(),qn=(0,ee.useRef)(!1);const pn=(0,ee.useRef)(!1),[Bn,hi]=(0,ee.useState)(0);function Ti(){const we=Le.bx.make,je={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Ke.current=new Le.S0(Hn.current,{padding:20,grid:we(Le.s_,"Grid",we(Le.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),we(Le.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Dn=>{var ei=Dn.diagram.commandHandler.addTopLevelParts(Dn.diagram.selection,!0);ei||Dn.diagram.currentTool.doCancel()},commandHandler:we(He),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Dn=>{var ei=Dn.subject;ei.location=ei.location.copy().snapToGridPoint(Dn.diagram.grid.gridOrigin,Dn.diagram.grid.gridCellSize),setTimeout(()=>{Dn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Dn=>{var ei=Dn.subject;setTimeout(()=>{Dn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Dn=>{var ei=Dn.parameter.part;ei.invalidateConnectedLinks();var Qn=Dn.subject;Dn.diagram.toolManager.linkingTool.isForwards?Qn.toNode.invalidateConnectedLinks():Qn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ke.current.nodeTemplate=we(Le.NB,"Auto",{locationSpot:Le.z6.Center,locationObjectName:"SHAPE",desiredSize:new Le.$u(120,60),minSize:new Le.$u(40,40),resizable:!0,resizeCellSize:new Le.$u(10,10),rotatable:!0},new Le.KX("location","loc",Le.E9.parse).makeTwoWay(Le.E9.stringify),new Le.KX("desiredSize","size",Le.$u.parse).makeTwoWay(Le.$u.stringify),we(Le.bn,{name:"SHAPE",fill:je.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Le.z6.AllSides,toSpot:Le.z6.AllSides},new Le.KX("figure"),new Le.KX("fill"),new Le.KX("stroke","borderColor"),new Le.KX("strokeWidth","thickness"),new Le.KX("strokeDashArray","dash")),we(Le.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),we(Le.al,{margin:1,textAlign:"center",overflow:Le.al.OverflowEllipsis,editable:!0},new Le.KX("text").makeTwoWay(),new Le.KX("stroke","color"))),Ke.current.nodeTemplate.toolTip=we("ToolTip",we(Le.s_,"Vertical",{maxSize:new Le.$u(200,NaN)},we(Le.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Le.KX("text")),we(Le.al,{font:"10pt sans-serif",textAlign:"center"},new Le.KX("text","details"))));function An(Dn,ei){var Qn=(ri,Ci)=>{ri.handled=!0,ri.diagram.model.commit(Fi=>{var Ui=Ci.part.adornedPart,Qi=new Le.E9().setRectSpot(Ui.actualBounds,Dn);Qi.subtract(Ui.location),Qi.scale(2,2),Qi.x+=Math.sign(Qi.x)*130,Qi.y+=Math.sign(Qi.y)*130,Qi.add(Ui.location),Qi.snapToGridPoint(ri.diagram.grid.gridOrigin,ri.diagram.grid.gridCellSize);var sr=Fi.copyNodeData(Ui.data);Fi.setGroupKeyForNodeData(sr,Fi.getGroupKeyForNodeData(Ui.data)),Fi.addNodeData(sr);var cn={from:Ui.key,to:Fi.getKeyForNodeData(sr)};Fi.addLinkData(cn);var gr=ri.diagram.findNodeForData(sr);gr.location=Qi,ri.diagram.select(gr),setTimeout(()=>{ri.diagram.commandHandler.editTextBlock()},20)})};return we(Le.bn,{figure:ei,alignment:Dn,alignmentFocus:Dn.opposite(),width:Dn.equals(Le.z6.Top)||Dn.equals(Le.z6.Bottom)?25:18,height:Dn.equals(Le.z6.Top)||Dn.equals(Le.z6.Bottom)?18:25,fill:"orange",stroke:je.white,strokeWidth:4,mouseEnter:(ri,Ci)=>Ci.fill="dodgerblue",mouseLeave:(ri,Ci)=>Ci.fill="orange",isActionable:!0,click:Qn,contextClick:Qn})}function Nn(Dn){return we(Le.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:(ei,Qn)=>Qn.fill="dodgerblue",mouseLeave:(ei,Qn)=>Qn.fill="orange",click:(ei,Qn)=>{ei.diagram.commandHandler.showContextMenu(Qn.part.adornedPart)}},Dn||{})}Ke.current.nodeTemplate.selectionAdornmentTemplate=we(Le.uz,"Spot",we(Le.Vm,{padding:10}),An(Le.z6.Top,"TriangleUp"),An(Le.z6.Left,"TriangleLeft"),An(Le.z6.Right,"TriangleRight"),An(Le.z6.Bottom,"TriangleDown"),Nn({alignment:new Le.z6(.75,0)}));function tn(Dn,ei){return(Qn,ri)=>{Qn.handled=!0,Qn.diagram.model.commit(Ci=>{Ci.set(ri.part.adornedPart.data,Dn,ei)})}}function yn(Dn,ei){return ei||(ei="color"),we(Le.bn,{width:16,height:16,stroke:"lightgray",fill:Dn,margin:1,background:"transparent",mouseEnter:(Qn,ri)=>ri.stroke="dodgerblue",mouseLeave:(Qn,ri)=>ri.stroke="lightgray",click:tn(ei,Dn),contextClick:tn(ei,Dn)})}function xn(){return[we("ContextMenuButton",we(Le.s_,"Horizontal",yn(je.white,"fill"),yn(je.beige,"fill"),yn(je.extralightblue,"fill"),yn(je.extralightred,"fill"))),we("ContextMenuButton",we(Le.s_,"Horizontal",yn(je.lightgray,"fill"),yn(je.lightgreen,"fill"),yn(je.lightblue,"fill"),yn(je.lightred,"fill")))]}function Sn(){return[we("ContextMenuButton",we(Le.s_,"Horizontal",yn(je.black),yn(je.green),yn(je.blue),yn(je.red))),we("ContextMenuButton",we(Le.s_,"Horizontal",yn(je.white),yn(je.magenta),yn(je.purple),yn(je.orange)))]}function Wn(Dn,ei){return ei||(ei="thickness"),we(Le.bn,"LineH",{width:16,height:16,strokeWidth:Dn,margin:1,background:"transparent",mouseEnter:(Qn,ri)=>ri.background="dodgerblue",mouseLeave:(Qn,ri)=>ri.background="transparent",click:tn(ei,Dn),contextClick:tn(ei,Dn)})}function Fn(Dn,ei){return ei||(ei="dash"),we(Le.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Dn,margin:1,background:"transparent",mouseEnter:(Qn,ri)=>ri.background="dodgerblue",mouseLeave:(Qn,ri)=>ri.background="transparent",click:tn(ei,Dn),contextClick:tn(ei,Dn)})}function jn(){return[we("ContextMenuButton",we(Le.s_,"Horizontal",Wn(1),Wn(2),Wn(3),Wn(4))),we("ContextMenuButton",we(Le.s_,"Horizontal",Fn(null),Fn([2,4]),Fn([4,4])))]}function In(Dn,ei){return ei||(ei="figure"),we(Le.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Dn,margin:1,background:"transparent",mouseEnter:(Qn,ri)=>ri.fill="dodgerblue",mouseLeave:(Qn,ri)=>ri.fill="lightgray",click:tn(ei,Dn),contextClick:tn(ei,Dn)})}Ke.current.nodeTemplate.contextMenu=we("ContextMenu",we("ContextMenuButton",we(Le.s_,"Horizontal",In("Rectangle"),In("RoundedRectangle"),In("Ellipse"),In("Diamond"))),we("ContextMenuButton",we(Le.s_,"Horizontal",In("Parallelogram2"),In("ManualOperation"),In("Procedure"),In("Cylinder1"))),we("ContextMenuButton",we(Le.s_,"Horizontal",In("Terminator"),In("CreateRequest"),In("Document"),In("TriangleDown"))),xn(),Sn(),jn()),Ke.current.groupTemplate=we(Le.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Le.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Dn,ei)=>{var Qn=ei.addMembers(ei.diagram.selection,!0);Qn||ei.diagram.currentTool.doCancel()},avoidable:!1},new Le.KX("location","loc",Le.E9.parse).makeTwoWay(Le.E9.stringify),we(Le.s_,"Auto",{name:"BODY"},we(Le.bn,{parameter1:10,fill:je.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Le.z6.AllSides,toSpot:Le.z6.AllSides},new Le.KX("fill"),new Le.KX("stroke","color"),new Le.KX("strokeWidth","thickness"),new Le.KX("strokeDashArray","dash")),we(Le.Vm,{background:"transparent",margin:20})),we(Le.al,{alignment:Le.z6.Top,alignmentFocus:Le.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Le.KX("text"),new Le.KX("stroke","color"))),Ke.current.groupTemplate.selectionAdornmentTemplate=we(Le.uz,"Spot",we(Le.s_,"Auto",we(Le.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),we(Le.Vm,{margin:1.5})),Nn({alignment:Le.z6.TopRight,alignmentFocus:Le.z6.BottomRight})),Ke.current.groupTemplate.contextMenu=we("ContextMenu",xn(),Sn(),jn()),Ke.current.linkTemplate=we(Le.rU,{layerName:"Foreground",routing:Le.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Le.KX("fromSpot","fromSpot",Le.z6.parse),new Le.KX("toSpot","toSpot",Le.z6.parse),new Le.KX("fromShortLength","dir",Dn=>Dn>=1?10:0),new Le.KX("toShortLength","dir",Dn=>Dn>=1?10:0),new Le.KX("points").makeTwoWay(),we(Le.bn,{strokeWidth:2},new Le.KX("stroke","color"),new Le.KX("strokeWidth","thickness"),new Le.KX("strokeDashArray","dash")),we(Le.bn,{segmentIndex:0,segmentOffset:new Le.E9(15,0),segmentOrientation:Le.rU.OrientAlong,alignmentFocus:Le.z6.Right,figure:"circle",width:10,strokeWidth:0},new Le.KX("fill","color"),new Le.KX("visible","dir",Dn=>Dn===1)),we(Le.bn,{segmentIndex:-1,segmentOffset:new Le.E9(-10,6),segmentOrientation:Le.rU.OrientPlus90,alignmentFocus:Le.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Le.KX("fill","color"),new Le.KX("visible","dir",Dn=>Dn>=1),new Le.KX("width","thickness",Dn=>7+3*Dn),new Le.KX("height","thickness",Dn=>7+3*Dn),new Le.KX("segmentOffset","thickness",Dn=>new Le.E9(-15,4+1.5*Dn))),we(Le.bn,{segmentIndex:0,segmentOffset:new Le.E9(15,-6),segmentOrientation:Le.rU.OrientMinus90,alignmentFocus:Le.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Le.KX("fill","color"),new Le.KX("visible","dir",Dn=>Dn===2),new Le.KX("width","thickness",Dn=>7+3*Dn),new Le.KX("height","thickness",Dn=>7+3*Dn),new Le.KX("segmentOffset","thickness",Dn=>new Le.E9(-15,4+1.5*Dn))),we(Le.al,{alignmentFocus:new Le.z6(0,1,-4,0),editable:!0},new Le.KX("text").makeTwoWay(),new Le.KX("stroke","color"))),Ke.current.linkTemplate.selectionAdornmentTemplate=we(Le.uz,we(Le.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ai(2)},new Le.KX("pathPattern","thickness",Ai)),Nn({alignmentFocus:new Le.z6(0,0,-6,-4)}));function Ai(Dn){return we(Le.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Dn+4).toString()+" H3"})}function ai(Dn){var ei="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Dn===0?ei="M0 0 M16 16 M0 8 L16 8":Dn===2&&(ei="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),we(Le.bn,{geometryString:ei,margin:2,background:"transparent",mouseEnter:(Qn,ri)=>ri.background="dodgerblue",mouseLeave:(Qn,ri)=>ri.background="transparent",click:tn("dir",Dn),contextClick:tn("dir",Dn)})}function ci(Dn){var ei=(Qn,ri)=>{Qn.handled=!0,Qn.diagram.model.commit(Ci=>{var Fi=ri.part.adornedPart;Ci.set(Fi.data,Dn?"toSpot":"fromSpot",Le.z6.stringify(Le.z6.AllSides)),(Dn?Fi.toNode:Fi.fromNode).invalidateConnectedLinks()})};return we(Le.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Qn,ri)=>ri.background="dodgerblue",mouseLeave:(Qn,ri)=>ri.background="transparent",click:ei,contextClick:ei})}function rn(Dn,ei){var Qn=0,ri=Le.z6.RightSide;Dn.equals(Le.z6.Top)?(Qn=270,ri=Le.z6.TopSide):Dn.equals(Le.z6.Left)?(Qn=180,ri=Le.z6.LeftSide):Dn.equals(Le.z6.Bottom)&&(Qn=90,ri=Le.z6.BottomSide),ei||(Qn-=180);var Ci=(Fi,Ui)=>{Fi.handled=!0,Fi.diagram.model.commit(Qi=>{var sr=Ui.part.adornedPart;Qi.set(sr.data,ei?"toSpot":"fromSpot",Le.z6.stringify(ri)),(ei?sr.toNode:sr.fromNode).invalidateConnectedLinks()})};return we(Le.bn,{alignment:Dn,alignmentFocus:Dn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Qn,background:"transparent",mouseEnter:(Fi,Ui)=>Ui.background="dodgerblue",mouseLeave:(Fi,Ui)=>Ui.background="transparent",click:Ci,contextClick:Ci})}Ke.current.linkTemplate.contextMenu=we("ContextMenu",Sn(),jn(),we("ContextMenuButton",we(Le.s_,"Horizontal",ai(0),ai(1),ai(2))),we("ContextMenuButton",we(Le.s_,"Horizontal",we(Le.s_,"Spot",ci(!1),rn(Le.z6.Top,!1),rn(Le.z6.Left,!1),rn(Le.z6.Right,!1),rn(Le.z6.Bottom,!1)),we(Le.s_,"Spot",{margin:new Le.Zt(0,0,0,2)},ci(!0),rn(Le.z6.Top,!0),rn(Le.z6.Left,!0),rn(Le.z6.Right,!0),rn(Le.z6.Bottom,!0)))));const Ii=`{ "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 Xi=["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 vr(Dn){return console.log("shapeName:",Dn),Xi.indexOf(Dn)>=0}var an=new Le.YI(Jn.current,{maxSelectionCount:1,linkTemplate:we(Le.rU,{locationSpot:Le.z6.Center,selectionAdornmentTemplate:we(Le.uz,"Link",{locationSpot:Le.z6.Center},we(Le.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),we(Le.bn,{toArrow:"Standard",stroke:null}))},{routing:Le.rU.AvoidsNodes,curve:Le.rU.JumpOver,corner:5,toShortLength:4},new Le.KX("points"),we(Le.bn,{isPanelMain:!0,strokeWidth:2}),we(Le.bn,{toArrow:"Standard",stroke:null})),model:new Le.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Le.bn.getFigureGenerators().toArray().map(Dn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Dn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ke.current.addDiagramListener("TextEdited",function(Dn){var ei;const Qn=Dn.subject.part;var ri=(ei=document.activeElement)==null?void 0:ei.value;typeof ri=="string"&&ri.trim()===""&&Ke.current.model.commit(function(Ci){Ci.set(Qn.data,"text","\u672A\u547D\u540D"),Ke.current.commandHandler.stopCommand()},"increment")}),an.nodeTemplate=we(Le.NB,"Auto",{locationSpot:Le.z6.Center},new Le.KX("location","location",Le.E9.parse).makeTwoWay(Le.E9.stringify),we(Le.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 Le.KX("stroke").makeTwoWay(),new Le.KX("fill").makeTwoWay(),new Le.KX("figure")),we(Le.al,{margin:new Le.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Le.$u(16,16),maxSize:new Le.$u(10,NaN),textAlign:"center",editable:!0},new Le.KX("key").makeTwoWay())),setTimeout(()=>{Ke.current.grid=we(Le.s_,"Grid",we(Le.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),we(Le.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ke.current.grid.visible=!0,Ke.current.grid.gridCellStroke="darkgray",Ke.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ke.current,Ke.current}const Di=()=>It(this,null,function*(){var we,je=Ke.current.makeImage();const An=yield(0,At.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:je.src,file_data:JSON.stringify({login:(we=(0,oe.eY)())==null?void 0:we.login,data:JSON.parse(Ke.current.model.toJson())})}});Je({src:An.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{Ti()},500),hi(Bn+1),()=>{Ke.current=null}),[]),_t.createElement("div",{ref:pn,className:"body-overflow-initial"},_t.createElement(Re.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Bn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:_t.createElement(Fe.Z,null,_t.createElement(Tt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),_t.createElement(Tt.Z,{onClick:()=>{var we,je,An=Ke.current.selection.first();if(qn.current=!qn.current,document.activeElement&&An){let Nn=(je=(we=document.activeElement)==null?void 0:we.value)==null?void 0:je.trim();typeof Nn=="string"&&Ke.current.model.commit(function(tn){tn.set(An.data,"text",Nn||"\u672A\u547D\u540D"),Ke.current.commandHandler.stopCommand()},"increment")}hi(Bn+1)}},_t.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Xe},_t.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:qn.current?"none":"block"},className:Yt.flowChartWrp},_t.createElement("div",{style:{display:"flex",height:"100%"}},_t.createElement("div",{style:{width:"300px",height:"100%"}},_t.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),_t.createElement("div",{style:{height:"calc(100% - 50px)"},className:Yt.myPaletteDiv,ref:Jn})),_t.createElement("div",{style:{flex:1,position:"relative"}},_t.createElement("div",{ref:Hn,style:{height:"80vh"}}))),_t.createElement("div",{className:"tr"},_t.createElement(Vt.ZP,{size:"large",onClick:Di,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Et=Pt,$t=ce(47889),zt=ce(71051);const Gt=$t.ZP.Group,le={margin:"0 8px"};var ye=({callback:Xe,onCancel:Je})=>{function Ke(Hn){Xe(Hn)}return ee.createElement(qt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ke},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:le},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:le},"\u884C\u6570"),ee.createElement(qt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(zt.Z,null)),ee.createElement("span",{style:le},"\u5217\u6570"),ee.createElement(qt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(zt.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:le},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(qt.default.Item,{name:"align"},ee.createElement(Gt,null,ee.createElement($t.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement($t.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement($t.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement($t.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Vt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Vt.ZP,{type:"ghost",onClick:Je},"\u53D6\u6D88")))},Ue=ce(71411),We=ce(43001),Ee=ce.n(We),on=(0,ee.forwardRef)(({use3d:Xe,width:Je,height:Ke,callback:Hn,showSaveButton:Jn},qn)=>{const pn=(0,ee.useRef)(),Bn=(0,ee.useRef)(),[hi,Ti]=(0,ee.useState)(!1),Di=(0,ee.useRef)({id:pn,appName:"graphing",width:Je||1e3,height:Ke||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ee.useEffect)(()=>{Bn.current=new(Ee())(Di.current,!0),window.onload=function(){Bn.current.inject("applet_container")}},[]);const we=()=>{var je=window.ggbApplet.getPNGBase64(1,!0,72);return Hn&&Hn(je),je};return(0,ee.useEffect)(()=>{Di.current.appName=hi?"3D":"graphing",Bn.current.inject("applet_container")},[hi]),(0,ee.useEffect)(()=>{Ti(Xe)},[Xe]),(0,ee.useImperativeHandle)(qn,()=>({getImgData:we})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:pn}),ee.createElement(Fe.Z,{align:"middle"},ee.createElement(Tt.Z,{flex:1},ee.createElement(Ue.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:hi,onChange:je=>Ti(je)})),ee.createElement(Tt.Z,null,ee.createElement(Vt.ZP,{size:"large",onClick:we,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),nn=ce(76562),qe=ce(6767);const En="link",fn="upload-image",Pn="add-flowchart",Mn="draw-image",ii="add-flowchart",Tn="code-block",oi="add-table",vi="------------",yi={default:vi,left:`:${vi}`,center:`:${vi}:`,right:`${vi}:`};var Zi=ce(37808);function Hi(){}let Yi=0;const zi=1e4,Pi="\u2581",Gi="@\u2581\u2581@",Kt="@\u2581@",zn=` **\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`,Rn=["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 bn(Xe){return/^\d+$/.test(Xe)?`${Xe}px`:Xe}const Yn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Xn={[Yn+"-B"]:"bold",[Yn+"-I"]:"italic"},Ri={[En]:"\u6DFB\u52A0\u94FE\u63A5",[Tn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[fn]:"\u6DFB\u52A0\u56FE\u7247",[Mn]:"\u6DFB\u52A0\u753B\u56FE",[Pn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[oi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ki=({defaultValue:Xe="",onChange:Je,width:Ke="100%",height:Hn=400,miniToolbar:Jn=!1,isFocus:qn=!1,watch:pn,insertTemp:Bn,mode:hi="markdown",id:Ti="markdown-editor-id",showResizeBar:Di=!1,noStorage:we=!1,showNullButton:je=!1,showNullProgramButton:An=!1,hidetoolBar:Nn=!1,fullScreen:tn=!1,onBlur:yn,onCMBeforeChange:xn,onFullScreen:Sn,className:Wn="",disablePaste:Fn=!1,disabled:jn=!1,disabledFill:In=!1,placeholder:Ai="",values:ai="",extraUse:ci})=>{const[rn,Ii]=(0,ee.useState)(null),[Xi,vr]=(0,ee.useState)(Xe),[an,Dn]=(0,ee.useState)(pn),[ei,Qn]=(0,ee.useState)(tn),[ri,Ci]=(0,ee.useState)(""),[Fi,Ui]=(0,ee.useState)(0),[Qi,sr]=(0,ee.useState)(Hn),[cn,gr]=(0,ee.useState)(!1),[hn,di]=(0,ee.useState)(0),[tr,Wi]=(0,ee.useState)(0),fr=(0,ee.useRef)(),rr=(0,ee.useRef)(),_i=(0,ee.useRef)(),Cr=(0,ee.useRef)();(0,ee.useEffect)(()=>{const bi=window.scrollY||window.pageYOffset;vr(ai),rn==null||rn.setValue(ai),window.scrollTo(0,bi)},[ai]),(0,ee.useEffect)(()=>{Sn==null||Sn(ei)},[ei]),(0,ee.useEffect)(()=>{if(fr.current){let bi=function(wn,Ei){var pr;if(Fn){Ei.preventDefault();return}const Ur=Ei.clipboardData;if(Ur){const Er=Ur.types.toString(),Jr=Ur.items;if(Er==="Files"||Ur.types.indexOf("Files")>-1){if(Ei.preventDefault(),hi=="stex")return;try{let yo=Jr[1];((pr=Jr[0])==null?void 0:pr.kind)==="file"&&(yo=Jr[0]);const Qr=yo.getAsFile(),Ao=Qr.name.split(".").pop();(0,ue.I)(Qr,So=>{var No,en,Uo;So.id?((No=Qr==null?void 0:Qr.type)==null?void 0:No.indexOf("image"))>-1?li.replaceSelection(``):((en=Qr==null?void 0:Qr.type)==null?void 0:en.indexOf("video"))>-1?li.replaceSelection(``):((Uo=Qr==null?void 0:Qr.type)==null?void 0:Uo.indexOf("pdf"))>-1?li.replaceSelection(`${Qr.name}`):Rn.includes(Ao)?li.replaceSelection(`${Qr.name}`):li.replaceSelection(`[${Qr.name}](/api/attachments/${So.id}?type=${So.content_type})`):(So==null?void 0:So.status)===401&&(document.location.href="/user/login")})}catch(yo){qe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const li=Qt().fromTextArea(fr.current,{mode:hi,lineNumbers:!Jn,lineWrapping:!0,value:Xe,autoCloseTags:!0,autoCloseBrackets:!0});return li.on("keyup",function(wn,Ei){Ei.keyCode===8&&(wn.getValue()==""?li.setOption("placeholder",Ai):li.setOption("placeholder",null))}),li.on("keydown",function(wn,Ei){if(Ei.keyCode===8){var pr=Rr(wn);pr&&Ei.preventDefault()}}),qn&&li.focus(),li.on("paste",bi),jn&&li.on("beforeChange",function(wn,Ei){(Ei.origin==="paste"||Ei.origin==="+input")&&Ei.cancel()}),Ii(li),()=>{li.off("paste",bi)}}},[]);const Mo=(0,ee.useCallback)(()=>{if(rr.current)try{}catch(bi){console.log(bi,"---- to set md editor body height")}},[Qi,rr,ei]);(0,ee.useEffect)(()=>{function bi(){let li=new Zt.Z(wn=>{for(let Ei of wn)(Ei.target.offsetHeight>0||Ei.target.offsetWidth>0)&&(Mo(),rn.setSize("100%","100%"),rn.refresh())});return li.observe(fr.current.parentElement),li}if(rn){const li=bi();return()=>{var wn,Ei;(wn=fr.current)!=null&&wn.parentElement&&li.unobserve((Ei=fr.current)==null?void 0:Ei.parentElement)}}},[rn,Mo]),(0,ee.useEffect)(()=>{if(rn){let bi=[];for(const[li,wn]of Object.entries(Xn)){let Ei={[li]:()=>{ti(wn)}};bi.push(Ei),rn.addKeyMap(Ei)}return()=>{for(let li of bi)rn.removeKeyMap(li)}}},[rn]),(0,ee.useEffect)(()=>{tn!==ei&&Qn(tn)},[tn]),(0,Zi.Z)(()=>{if(!we&&Fi>0){let bi=new Date().getTime(),li=window.sessionStorage.getItem(Ti);bi>=Fi+zi&&(!li||li!==Xi)&&(window.sessionStorage.setItem(Ti,Xi),gr(!0))}},zi),(0,ee.useEffect)(()=>{Dn(pn)},[rn,pn]),(0,ee.useEffect)(()=>{rn&&qn&&rn.focus()},[rn,qn]),(0,ee.useEffect)(()=>{if(an&&rn){let bi=function(wn){let Ei=wn.target;if(Cr.current){let pr=Ei.scrollTop/Ei.scrollHeight;Cr.current.scrollTop=Cr.current.scrollHeight*pr}};const li=rn.getScrollerElement();return li.addEventListener("scroll",bi),()=>{li.removeEventListener("scroll",bi)}}},[rn,an]),(0,ee.useEffect)(()=>{if(rn&&xn){let bi=function(li,wn){xn(li,wn)};return rn.on("beforeChange",bi),()=>{rn.off("beforeChange",bi)}}},[rn,xn]),(0,ee.useEffect)(()=>{if(rn&&yn){let bi=function(){yn(rn.getValue())};return rn.on("blur",bi),()=>{rn.off("blur",bi)}}},[rn,yn]);function Rr(bi,li){var wn=bi.getDoc(),Ei=wn.getCursor(),pr=wn.getLine(Ei.line),Ur=pr.charAt(Ei.ch-1),Er=pr.lastIndexOf("@\u2581@",Ei.ch),Jr=pr.lastIndexOf("@\u2581\u2581@",Ei.ch),yo=Er>Jr?Er:Jr,Qr=Er>Jr?3:4;if(Gi.indexOf(Ur)===-1)return null;if(console.log("change1:",li,bi,pr,Ei,yo,Er,Jr,Ur),yo>=0&&Ei.ch-yo<5){var Ao=yo+Qr;return wn.replaceRange("",{line:Ei.line,ch:yo},{line:Ei.line,ch:Ao}),{line:Ei.line,ch:Ao}}return null}(0,ee.useEffect)(()=>{if(rn){let bi=function(li,wn){const Ei=li.getValue();vr(Ei),Ui(new Date().getTime()),li.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Je&&(An?Je(Ei,Si(Ei)):Je(Ei))};return rn.on("change",bi),()=>{rn.off("change",bi)}}},[rn,Je]),(0,ee.useEffect)(()=>{if(rn)if(Xe==null)rn.setValue(""),vr("");else{const bi=window.scrollY||window.pageYOffset;Xe!==rn.getValue()&&(rn.setValue(Xe),vr(Xe),rn.setCursor(jn?1:rn.lineCount(),0),window.scrollTo(0,bi))}},[rn,Xe]);const ti=(0,ee.useCallback)(bi=>{const li=rn.getCursor(),wn=rn.getSelection();let Ei=wn.split(` `);switch(bi){case"bold":return rn.replaceSelection("**"+wn+"**"),wn===""&&rn.setCursor(li.line,li.ch+2),rn.focus();case"italic":return rn.replaceSelection("*"+wn+"*"),wn===""&&rn.setCursor(li.line,li.ch+1),rn.focus();case"code":return rn.replaceSelection("`"+wn+"`"),wn===""&&rn.setCursor(li.line,li.ch+1),rn.focus();case"inline-latex":return Ci("inline-latex"),rn.focus();case"latex":return rn.replaceSelection("```latex\n"+wn+"\n```"),rn.setCursor(li.line+1,wn.length+1),rn.focus();case"line-break":return rn.replaceSelection(`
`),rn.focus();case"list-ul":return wn===""?rn.replaceSelection("- "+wn):rn.replaceSelection(Ei.map(pr=>pr===""?"":`- ${pr}`).join(` `)),rn.focus();case"list-ol":return wn===""?rn.replaceSelection("1. "+wn):rn.replaceSelection(Ei.map((pr,Ur)=>pr===""?"":`${Ur+1}. ${pr}`).join(` `)),rn.focus();case"add-null-ch":return wn===""&&rn.setCursor(li.line,li.ch),rn.replaceSelection(Pi),rn.focus();case"add-signal":return wn===""&&rn.setCursor(li.line,li.ch),rn.replaceSelection(Kt),rn.focus();case"add-multiple":return wn===""&&rn.setCursor(li.line,li.ch),rn.replaceSelection(Gi),rn.focus();case"inster-template-1":return wn===""&&rn.setCursor(li.line,li.ch),rn.replaceSelection(zn),rn.focus();case"eraser":return rn.setValue(""),rn.focus();case"trigger-watch":return Dn(!an),rn.focus();case"trigger-full-screen":return Qn(!ei),rn.focus();case En:Ci(En);return;case Tn:Ci(Tn);return;case fn:Ci(fn);return;case Mn:Ci(Mn);return;case"maths-latex":Ci("maths-latex");return;case Pn:Ci(Pn);return;case oi:Ci(oi);return;default:throw new Error}},[rn,an,ei]),xe=(0,ee.useCallback)((bi,li)=>{var wn,Ei,pr,Ur,Er,Jr;switch(Ci(""),ri){case En:const{title:No,link:en}=bi;return rn.replaceSelection(`[${No}](${en})`),rn.focus();case Tn:const{language:Uo,content:Qa}=bi;return rn.replaceSelection(["```"+Uo,Qa,"```"].join(` `)),rn.focus();case"maths-latex":for(var yo=atob(bi),Qr=new Uint8Array(yo.length),Ao=0;Ao{gs.id?rn.replaceSelection(`![,](/api/attachments/${gs.id}?type=${gs.content_type})`):(gs==null?void 0:gs.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":rn.replaceSelection("`$$"+bi+"$$`");break;case fn:case Mn:case ii:const{src:rs,alt:Fs}=bi,ro=li,ua=(pr=(Ei=(wn=ro==null?void 0:ro.name)==null?void 0:wn.split("."))==null?void 0:Ei.pop)==null?void 0:pr.call(Ei);return((Ur=ro==null?void 0:ro.type)==null?void 0:Ur.indexOf("image"))>-1||!(ro!=null&&ro.type)?ro!=null&&ro.align||ro!=null&&ro.width?rn.replaceSelection(`

${Fs||

`):rn.replaceSelection(`${Fs||`):((Er=ro==null?void 0:ro.type)==null?void 0:Er.indexOf("video"))>-1?rn.replaceSelection(``):((Jr=ro==null?void 0:ro.type)==null?void 0:Jr.indexOf("pdf"))>-1?rn.replaceSelection(`${ro.name}`):Rn.includes(ua)?rn.replaceSelection(`${ro.name}`):rn.replaceSelection(`[${ro.name}](${rs})`),rn.focus();case oi:const{row:Wl,col:Tr,align:Wo}=bi;let Ll=` `;for(let gs=0;gs{switch(ri){case En:return ee.createElement(se,{callback:xe,onCancel:To});case Tn:return ee.createElement(pe.Z,{callback:xe,onCancel:To});case fn:return ee.createElement(ue.Z,{callback:xe,onCancel:To});case Pn:return ee.createElement(Et,{callback:xe,onCancel:To});case oi:return ee.createElement(ye,{callback:xe,onCancel:To});case"maths-latex":return ee.createElement(on,{showSaveButton:!0,callback:xe});case"inline-latex":return ee.createElement(nn.Z,{showSaveButton:!0,callback:xe});default:return null}},[ri]);function To(){Ci("")}(0,ee.useEffect)(()=>{if(_i.current){let bi=function(Er){pr=!0,Ur=Er.pageY},li=function(){pr=!1},wn=function(Er){if(pr){let Jr=Er.pageY-Ur;Jr<0&&(Jr=0),Jr>300&&(Jr=300);let yo=Hn+Jr+"px";sr(yo)}},Ei=_i.current,pr=!1,Ur=0;return Ei.addEventListener("mousedown",bi),document.addEventListener("mousemove",wn),document.addEventListener("mouseup",li),()=>{Ei.removeEventListener("mousedown",bi),document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",li)}}},[rn,_i]),(0,ee.useEffect)(()=>{sr(Hn)},[Hn]);const is=bn(Ke),vo=bn(Qi),xr={width:is,height:vo},ui=(0,ee.useMemo)(()=>{if(Fi){let bi=new Date(Fi),li=bi.getHours(),wn=bi.getMinutes(),Ei=bi.getSeconds();return li=li<10?"0"+li:li,wn=wn<10?"0"+wn:wn,Ei=Ei<10?"0"+Ei:Ei,`${li}:${wn}:${Ei}`}return 0},[Fi]),Si=bi=>{const li=[];if(An){let wn=-1;bi=bi.replace(/(@▁▁@|@▁@)/g,function(Ei,pr,Ur){li.push({multiLine:Ei!==Kt})})}return li};function er(){window.sessionStorage.removeItem(Ti),gr(!1),Ui(0)}function gi(){gr(!1),Ui(0),rn.setValue(window.sessionStorage.getItem(Ti))}(0,ee.useEffect)(()=>{Ri[ri]&&ri!==Mn&&ri!==Pn&&setTimeout(()=>{const bi=document.getElementsByClassName("markdown-popup-form")[0],li=window.innerWidth/2-bi.offsetWidth/2,wn=window.innerHeight/2-bi.offsetHeight/2;di(li),Wi(wn)},0)},[ri]);const Ji=bi=>{bi.preventDefault();const li=bi.clientX-hn,wn=bi.clientY-tr;document.body.onmousemove=Ei=>{let pr=Ei.clientX-li,Ur=Ei.clientY-wn;const Er=document.getElementsByClassName("markdown-popup-form")[0],Jr=window.innerWidth-Er.offsetWidth,yo=window.innerHeight-Er.offsetHeight;pr=Math.max(0,Math.min(pr,Jr)),Ur=Math.max(0,Math.min(Ur,yo)),Mr(Ei.clientX,Ei.clientY,li,wn)&&(di(pr),Wi(Ur))},document.body.onmouseup=function(){document.body.onmousemove=null}},Mr=(bi,li,wn,Ei)=>{const pr=document.body.clientHeight,Ur=document.body.clientWidth;return bi<20&&wn>bi||bi>Ur-20&&wnli||li>pr-20&&Eiqt in Nt?kt(Nt,qt,{enumerable:!0,configurable:!0,writable:!0,value:te}):Nt[qt]=te,ot=(Nt,qt)=>{for(var te in qt||(qt={}))et.call(qt,te)&<(Nt,te,qt[te]);if(yt)for(var te of yt(qt))tt.call(qt,te)&<(Nt,te,qt[te]);return Nt},ut=(Nt,qt)=>xt(Nt,Dt(qt));const{useForm:ct}=ee.default,ft={width:280,marginRight:10},gt={labelCol:{span:5},wrapperCol:{span:19}};var Lt=({callback:Nt,onCancel:qt})=>{const[te]=ct();let Vt=(0,Bt.useRef)();function de(Ne){Vt.current.width=te.getFieldValue("width"),Vt.current.align=te.getFieldValue("align"),Nt(Ne,Vt.current)}function ge(Ne,Ge){if(Ne.status===-1){wt.ZP.error(Ne.message);return}te.setFieldsValue({src:`/api/attachments/${Ne.id}`,type:Ge.type})}function be(Ne){let Ge=Ne.target.files[0];Vt.current=Ge,Ut(Ge,ge)}return St.createElement(ee.default,ut(ot({form:te},gt),{className:"upload-image-panel",onFinish:de,style:{width:470,overflow:"hidden"}}),St.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},St.createElement("div",{className:"flex-container"},St.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},St.createElement(Qt.default,{style:ft})),St.createElement(Rt,{onFileChange:be}))),St.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},St.createElement(Qt.default,{style:{width:264}})),St.createElement(ee.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},St.createElement(Zt.Z,null,St.createElement(ee.default.Item,{name:"width",style:{margin:0}},St.createElement(Ot.Z,{style:{width:264}})),St.createElement("span",{className:"ml8"},"%"))),St.createElement(ee.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},St.createElement(jt.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"}]})),St.createElement("aside",null,St.createElement(ee.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},St.createElement(Ct.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),St.createElement(Ct.ZP,{type:"default",onClick:qt},"\u53D6\u6D88"))))};function Rt({onFileChange:Nt}){return St.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",St.createElement("input",{type:"file",onChange:Nt}))}function Ut(Nt,qt){if(!Nt)throw new String("\u6CA1\u6709\u6587\u4EF6");let te=new FormData;te.append("editormd-image-file",Nt),te.append("file_param_name","editormd-image-file"),te.append("byxhr","true");var Vt=new window.XMLHttpRequest;Vt.withCredentials=!0,Vt.addEventListener("load",function(de){qt(JSON.parse(de.target.responseText),Nt)},!1),Vt.addEventListener("error",function(de){console.error(de)},!1),Vt.open("POST",`${Mt.KI}/api/attachments.json`),Vt.send(te)}},91558:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Qt}});var ee=ce(59301),wt=ce(4676);class Qt extends ee.Component{constructor(Ot){super(Ot);const jt=window.document;this.node=jt.createElement("div"),jt.body.appendChild(this.node)}render(){const{children:Ot}=this.props;return(0,wt.createPortal)(Ot,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(Cn,Gn,ce){"use strict";ce.d(Gn,{SV:function(){return Pt},ZP:function(){return It}});var ee=ce(59301),wt=ce(76374);const Qt={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"]},Zt={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"]},Ot={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(` `)}]},jt={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(` `)}]},Ct={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 Mt=ce(53184),Bt=ce.n(Mt),St=Object.defineProperty,kt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(Et,$t,zt)=>$t in Et?St(Et,$t,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[$t]=zt,lt=(Et,$t)=>{for(var zt in $t||($t={}))yt.call($t,zt)&&tt(Et,zt,$t[zt]);if(Dt)for(var zt of Dt($t))et.call($t,zt)&&tt(Et,zt,$t[zt]);return Et},ot=(Et,$t)=>kt(Et,xt($t)),ut=(Et,$t,zt)=>new Promise((Gt,le)=>{var ye=Ee=>{try{We(zt.next(Ee))}catch(Ze){le(Ze)}},Ue=Ee=>{try{We(zt.throw(Ee))}catch(Ze){le(Ze)}},We=Ee=>Ee.done?Gt(Ee.value):Promise.resolve(Ee.value).then(ye,Ue);We((zt=zt.apply(Et,$t)).next())});const ct={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"]}},ft=(Et,$t)=>$t.map(zt=>({label:zt,kind:Et.languages.CompletionItemKind.Keyword,insertText:zt})),gt=Et=>Object.keys(ct.tables).map($t=>({label:$t,kind:Et.languages.CompletionItemKind.Variable,insertText:$t})),Lt=(Et,$t)=>{const zt=ct.tables[Et];return zt?zt.map(Gt=>({label:Gt,kind:$t.languages.CompletionItemKind.Field,insertText:Gt})):[]};function Rt(Et,$t,zt,Gt,le){let ye=$t.getWordUntilPosition(zt),Ue={startLineNumber:zt.lineNumber,endLineNumber:zt.lineNumber,startColumn:ye.startColumn,endColumn:ye.endColumn},We=Gt.map(Ee=>({label:Ee,kind:Et.languages.CompletionItemKind.Keyword,insertText:Ee,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}));return le.map(Ee=>{We.push(ot(lt({},Ee),{range:Ue}))}),We}var Ut=Et=>{ct.languages.map(le=>(Et.languages.registerDocumentFormattingEditProvider(le,{provideDocumentFormattingEdits(ye,Ue,We){return ut(this,null,function*(){const Ee=Bt()(ye.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:ye.getFullModelRange(),text:Ee}]})}}),le));const $t=Ot.quickKey.map(le=>({label:le.label,kind:Et.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet})),zt=jt.quickKey.map(le=>({label:le.label,kind:Et.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Gt=Zt.quickKey.map(le=>({label:le.label,kind:Et.languages.CompletionItemKind.Method,insertText:le.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Et.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(le,ye){var Ue=le.getWordUntilPosition(ye),We={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...Ot.keywords.map(Ze=>({label:Ze,kind:Et.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...Ot.quickKey.map(Ze=>({label:Ze.label,kind:Et.languages.CompletionItemKind.Function,documentation:Ze.content,insertText:Ee.startsWith("#")?Ze.content.replace(/#/,""):Ze.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),Et.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(le,ye){var Ue=le.getWordUntilPosition(ye),We={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn};return{suggestions:[...Qt.keywords.map(Ee=>({label:Ee,kind:Et.languages.CompletionItemKind.Function,documentation:Ee,insertText:Ee,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),Et.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(le,ye){var Ue=le.getWordUntilPosition(ye),We={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...Zt.keywords.map(Ze=>({label:Ze,kind:Et.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...Zt.quickKey.map(Ze=>({label:Ze.label,kind:Et.languages.CompletionItemKind.Function,documentation:Ze.content,insertText:Ee.startsWith("#")?Ze.content.replace(/#/,""):Ze.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),Et.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(le,ye){var Ue=le.getWordUntilPosition(ye),We={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...Ct.keywords.map(Ze=>({label:Ze,kind:Et.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...Ct.quickKey.map(Ze=>({label:Ze.label,kind:Et.languages.CompletionItemKind.Function,documentation:Ze.content,insertText:Ee.startsWith("#")?Ze.content.replace(/#/,""):Ze.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}}),Et.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(le,ye){var Ue=le.getWordUntilPosition(ye),We={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ue.startColumn,endColumn:Ue.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ue.startColumn-2,Ue.endColumn);return{suggestions:[...jt.keywords.map(Ze=>({label:Ze,kind:Et.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We})),...jt.quickKey.map(Ze=>({label:Ze.label,kind:Et.languages.CompletionItemKind.Function,documentation:Ze.content,insertText:Ee.startsWith("#")?Ze.content.replace(/#/,""):Ze.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:We}))]}}})};const Nt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var qt=Object.defineProperty,te=(Et,$t,zt)=>$t in Et?qt(Et,$t,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[$t]=zt,Vt=(Et,$t,zt)=>te(Et,typeof $t!="symbol"?$t+"":$t,zt);const de=class mx{constructor($t,zt,Gt){this.placeholder=$t,this.editor=zt,this.monaco=Gt,zt.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)}};Vt(de,"ID","editor.widget.placeholderHint");var be=de,Ne=ce(96236),Ge=ce(6767),Pe=ce(25399),ze=ce(89392),he=ce(49535),Jt=ce(56102),re=Object.defineProperty,se=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Qe=(Et,$t,zt)=>$t in Et?re(Et,$t,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[$t]=zt,Ae=(Et,$t)=>{for(var zt in $t||($t={}))Re.call($t,zt)&&Qe(Et,zt,$t[zt]);if(ue)for(var zt of ue($t))Fe.call($t,zt)&&Qe(Et,zt,$t[zt]);return Et},_e=(Et,$t)=>se(Et,pe($t)),Le=(Et,$t)=>{var zt={};for(var Gt in Et)Re.call(Et,Gt)&&$t.indexOf(Gt)<0&&(zt[Gt]=Et[Gt]);if(Et!=null&&ue)for(var Gt of ue(Et))$t.indexOf(Gt)<0&&Fe.call(Et,Gt)&&(zt[Gt]=Et[Gt]);return zt},Oe=(Et,$t,zt)=>new Promise((Gt,le)=>{var ye=Ee=>{try{We(zt.next(Ee))}catch(Ze){le(Ze)}},Ue=Ee=>{try{We(zt.throw(Ee))}catch(Ze){le(Ze)}},We=Ee=>Ee.done?Gt(Ee.value):Promise.resolve(Ee.value).then(ye,Ue);We((zt=zt.apply(Et,$t)).next())});function He(Et){return/^\d+$/.test(Et)?`${Et}px`:Et}function ie(){}let Tt=!1;const At={"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 Yt(Et=[]){let $t=Et;if(Array.isArray(Et)){for(let zt=0;ztOe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Et){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Et)}});var It=Et=>{var $t=Et,{width:zt="100%",height:Gt="100%",value:le,language:ye="javascript",style:Ue={},options:We={},overrideServices:Ee={},theme:Ze="vs-dark",onEditBlur:on,isCopy:nn=!1,onSave:qe,autoHeight:En=!1,forbidCopy:fn=!1,onChange:Pn=ie,editorDidMount:Mn=ie,onFocus:ii=ie,onBreakPoint:Tn=ie,breakPointValue:oi=[],filename:vi="educoder.txt",errorLine:yi,errorContent:Zi="",highlightLine:Hi,openBreakPoint:Yi=!1,placeholder:zi="",showMiniMap:Pi=!0}=$t,Gi=Le($t,["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 Kt=(0,ee.useRef)(),zn=(0,ee.useRef)({}),Rn=(0,ee.useRef)(),bn=(0,ee.useRef)(),_n=(0,ee.useRef)([]),Yn=(0,ee.useRef)(!1),Xn=(0,ee.useRef)(),Ri=(0,ee.useRef)(),ki=(0,ee.useRef)(!1),[Xe,Je]=(0,ee.useState)(!1);function Ke(){let xn;return Kt.current&&(xn=new wt.Z(Sn=>{for(let Wn of Sn)(Wn.target.offsetHeight>0||Wn.target.offsetWidth>0)&&zn.current.instance.layout()}),xn.observe(Kt.current)),xn}function Hn(){Ge.ZP.warning({content:decodeURIComponent(Nt),key:"monaco-editor-tip"})}const Jn=()=>{let xn=zn.current.instance;if(le!=null&&xn&&Xe){const Sn=xn.getModel();Sn&&le!==Sn.getValue()&&(Tt=!0,Sn.setValue(le),xn.layout(),Tt=!1)}};(0,ee.useEffect)(()=>{const xn=he.Z.subscribe("formatDocument",Sn=>{var Wn;let Fn=zn.current.instance;(Wn=Fn==null?void 0:Fn.getAction)==null||Wn.call(Fn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Sn=>{Pn(Sn)},xn},[]),(0,ee.useEffect)(()=>{var xn;let Sn=zn.current.instance;bn.current&&clearTimeout(bn.current),bn.current=setTimeout(()=>{Jn()},500),le&&(le!=null&&le.length)&&((xn=Sn==null?void 0:Sn.updateOptions)==null||xn.call(Sn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(le.split(/\r\n|\r|\n/g).length))+3,5)}))},[le,Xe,zn.current]),(0,ee.useEffect)(()=>{if(yi&&zn.current&&zn.current.instance){let Sn=zn.current.instance;Sn.changeViewZones(function(Wn){var Fn=document.createElement("div");Fn.style.padding="10px 20px",Fn.style.width="calc(100% - 20px)",Fn.className="my-error-line-wrp",Fn.innerHTML=Zi,Wn.addZone({afterLineNumber:yi||11,heightInLines:3,domNode:Fn})});var xn={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}};Sn.addOverlayWidget(xn),Sn.revealPositionInCenter({lineNumber:20,column:1})}},[yi,zn.current,Xe]);const qn=(xn="",Sn)=>{if(!xn||xn.trim()==="")return!0;const Fn=zn.current.instance.getModel().getLineTokens(Sn);let jn=!1;for(let In=0;In<2;In++)Fn.getStandardTokenType(In)===1&&(jn=!0);return jn};(0,ee.useEffect)(()=>{var xn;const Sn=(xn=zn.current)==null?void 0:xn.instance;if(Sn&&Xe&&fn){const Wn=Sn.onDidBlurEditorWidget(()=>{ki.current=!1}),Fn=Sn.onDidFocusEditorText(()=>{ki.current=!0});return()=>{Wn.dispose(),Fn.dispose()}}},[zn.current,Xe,fn]),(0,ee.useEffect)(()=>{var xn;if((xn=zn.current)!=null&&xn.instance&&Xe&&Yi){let Sn=zn.current.instance,Wn=Sn.getModel();if(!Wn)return;(()=>{var Dn;let ei=[],Qn=[];const ri=Wn.getAllDecorations();for(let Fi of ri)Fi.options.className==="highlighted-line"&&(ei.push((Dn=Fi==null?void 0:Fi.range)==null?void 0:Dn.startLineNumber),Qn.push(Fi==null?void 0:Fi.id));if(Hi===ei[0])return;Wn.deltaDecorations(Qn,[]);const Ci=Wn.getLineCount();Hi&&Hi<=Ci&&(Sn.deltaDecorations([],[{range:new oe.Range(Hi,1,Hi,Wn.getLineMaxColumn(Hi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Sn.revealLineInCenter(Hi))})();const jn=(Dn=!1)=>{var ei;let Qn=[],ri=[];const Ci=Wn.getAllDecorations();for(let Fi of Ci)Fi.options.linesDecorationsClassName==="breakpoints-select"&&(Qn.push((ei=Fi==null?void 0:Fi.range)==null?void 0:ei.startLineNumber),ri.push(Fi==null?void 0:Fi.id));if(Dn)return{lines:Qn,ids:ri};Tn(Qn)},In=Dn=>Oe(void 0,null,function*(){let ei={range:new oe.Range(Dn,1,Dn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Wn.deltaDecorations([],[ei]),jn()}),Ai=Dn=>Oe(void 0,null,function*(){let ei=[];const Qn=Sn.getLineDecorations(Dn);for(let ri of Qn)ri.options.linesDecorationsClassName==="breakpoints-select"&&ei.push(ri.id);yield Wn.deltaDecorations(ei,[]),jn()}),ai=Dn=>{let ei=Sn.getLineDecorations(Dn);for(let Qn of ei)if(Qn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ze.isEqual)(oi,jn(!0).lines)){Wn.deltaDecorations(jn(!0).ids,[]);const Dn=oi.map(ei=>({range:new oe.Range(ei,1,ei,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Wn.deltaDecorations([],Dn)}const ci=Sn.onDidChangeModelContent(Dn=>{let ei=Sn.getPosition();if(ei){let Qn=ei.lineNumber;clearTimeout(Ri.current),Ri.current=setTimeout(()=>{qn(Wn.getLineContent(Qn),Qn)?Ai(Qn):ai(Qn)?(Ai(Qn),In(Qn)):jn()},100)}}),rn=Sn.onMouseDown(Dn=>{var ei,Qn,ri;if(Dn.target.detail&&((ri=(Qn=(ei=Dn.target)==null?void 0:ei.element)==null?void 0:Qn.className)!=null&&ri.includes("line-numbers"))){let Ci=Dn.target.position.lineNumber;if(qn(Wn.getLineContent(Ci),Ci))return;ai(Ci)?Ai(Ci):In(Ci)}}),Ii=Dn=>{let ei={range:new oe.Range(Dn,1,Dn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};_n.current=Sn.deltaDecorations(_n.current,[ei])},Xi=()=>{_n.current=Sn.deltaDecorations(_n.current,[])},vr=Sn.onMouseMove(Dn=>{var ei,Qn,ri;if(Xi(),Dn.target.detail&&((ri=(Qn=(ei=Dn.target)==null?void 0:ei.element)==null?void 0:Qn.className)!=null&&ri.includes("line-numbers"))){let Ci=Dn.target.position.lineNumber;if(qn(Wn.getLineContent(Ci),Ci))return;Ii(Ci)}}),an=Sn.onMouseLeave(()=>{Xi()});return()=>{ci.dispose(),rn.dispose(),vr.dispose(),an.dispose()}}},[zn.current,Xe,oi,Hi,Yi,ye]),(0,ee.useEffect)(()=>{var xn;(xn=zn.current)!=null&&xn.instance&&Yi&&zn.current.instance.setPosition({lineNumber:0,column:0})},[Hi]);function pn(){let xn=zn.current.instance;if(xn){const Sn=xn.getSelection(),Wn=zn.current.pastePos||{},Fn=new oe.Range(Wn.startLineNumber||Sn.endLineNumber,Wn.startColumn||Sn.endColumn,Wn.endLineNumber||Sn.endLineNumber,Wn.endColumn||Sn.endColumn);setTimeout(()=>{xn.executeEdits("",[{range:Fn,text:""}])},300)}}function Bn(xn){(window.navigator.platform.match("Mac")?xn.metaKey:xn.ctrlKey)&&xn.keyCode==83&&(xn.preventDefault(),qe())}const hi=()=>{if(En&&zn.current.instance){const xn=zn.current.instance.getContentHeight();tn(xn{if(!ki.current)return;const{keyCode:Sn,ctrlKey:Wn,metaKey:Fn,target:jn,type:In}=xn;return(In==="paste"||(Sn===67||Sn===86)&&(Fn||Wn))&&jn.nodeName==="TEXTAREA"&&(Hn(),xn.preventDefault()),!1};function we(xn,Sn){var Wn=window.URL||window.webkitURL||window,Fn=new Blob([Sn]),jn=document.createElementNS("http://www.w3.org/1999/xhtml","a");jn.href=Wn.createObjectURL(Fn),jn.download=xn,Ti(jn)}(0,ee.useEffect)(()=>{hi()},[hi]),(0,ee.useEffect)(()=>{Kt.current&&!Xe&&Promise.all([ce.e(8909),ce.e(6656)]).then(ce.bind(ce,71448)).then(xn=>{try{oe=xn,zn.current.instance=oe.editor.create(Kt.current,{value:le,language:Yt(ye),theme:Ze,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Pi||!1}},Ee);const Sn=zn.current.instance;let jn=[...Ne.BH._menuItems].find(ci=>ci[0]._debugName=="EditorContext")[1],In=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ai=(ci,rn)=>{var Ii,Xi;let vr=ci._first;do rn.includes((Xi=(Ii=vr.element)==null?void 0:Ii.command)==null?void 0:Xi.id)&&ci._remove(vr);while(vr=vr.next)};if(Mn(Sn,oe),setTimeout(()=>{hi(),zn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{we(vi||"educoder.txt",Sn.getValue())}})},500),zn.current.subscription=Sn.onDidChangeModelContent(ci=>{Yn.current?clearTimeout(Xn.current):(hi(),Pn(Sn.getValue(),ci)),Xn.current=setTimeout(()=>{Yn.current=!1},500)}),window.Monaco||Ut(oe,Yt(ye)),fn&&(Ai(jn,In),Kt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Di),window.removeEventListener("paste",Di),window.addEventListener("keydown",Di),window.addEventListener("paste",Di)),window.Monaco=oe,on&&Sn.onDidBlurEditorWidget(()=>{on(Sn.getValue())}),ii&&Sn.onDidFocusEditorText(()=>{fn&&_t(),ii(Sn.getValue())}),fn){_t();try{Sn.onDidPaste(ci=>{const rn=Sn.getSelection(),Ii=zn.current.pastePos||{},Xi=new oe.Range(Ii.startLineNumber||rn.endLineNumber,Ii.startColumn||rn.endColumn,Ii.endLineNumber||rn.endLineNumber,Ii.endColumn||rn.endColumn);Sn.executeEdits("",[{range:ci.range,text:""}])})}catch(ci){}}let ai=Ke();return zi&&typeof zi=="string"&&new be(zi,Sn,oe),Je(!0),()=>{const ci=zn.current.instance;ci.dispose();const rn=ci.getModel();rn&&rn.dispose(),zn.current.subscription&&zn.current.subscription.dispose(),ai.unobserve(Kt.current)}}catch(Sn){}})},[]),(0,ee.useEffect)(()=>{if(zn.current.instance&&Xe)return document.addEventListener("keydown",Bn,!1),()=>{document.removeEventListener("keydown",Bn)}},[qe,Xe]),(0,ee.useEffect)(()=>{let xn=zn.current.instance;if(xn&&Xe){let Sn=Yt(ye);oe.editor.setModelLanguage(xn.getModel(),Sn)}},[ye,Xe]),(0,ee.useEffect)(()=>{zn.current.instance&&Xe&&oe.editor.setTheme(Ze)},[Ze,Xe]),(0,ee.useEffect)(()=>{let xn=zn.current.instance;Rn.current=We,xn&&Xe&&(xn.updateOptions(Ae({},We)),setTimeout(()=>{xn.getModel().updateOptions(Ae({},We))},200))},[JSON.stringify(We),Xe]),(0,ee.useEffect)(()=>{let xn=zn.current.instance;xn&&Xe&&xn.layout()},[zt,Gt,Xe]);const[je,An]=(0,ee.useState)(He(zt)),[Nn,tn]=(0,ee.useState)(He(Gt)),yn=_e(Ae({},Ue),{width:je,height:Nn,position:"relative"});return ee.createElement("div",{className:"my-monaco-editor",ref:Kt,style:yn},nn&&ee.createElement(Jt.CopyToClipboard,{text:le,onCopy:()=>Ge.ZP.success("\u590D\u5236\u6210\u529F")},ee.createElement(Pe.Z,{title:"\u590D\u5236\u4EE3\u7801"},ee.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ee.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Pt({width:Et="100%",height:$t="100%",original:zt,modified:Gt,language:le,options:ye={}}){const Ue=(0,ee.useRef)(),[We,Ee]=(0,ee.useState)(null);function Ze(En){let fn;return Ue.current&&(fn=new wt.Z(Pn=>{for(let Mn of Pn)(Mn.target.offsetHeight>0||Mn.target.offsetWidth>0)&&En.layout()}),fn.observe(Ue.current)),fn}(0,ee.useEffect)(()=>(Ue.current&&Promise.all([ce.e(8909),ce.e(9404)]).then(ce.bind(ce,2550)).then(En=>{oe=En;const fn=oe.editor.createDiffEditor(Ue.current,_e(Ae({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},ye),{wordWrap:!0}));Ee(fn);let Pn=Ze(fn);return()=>{fn.dispose();const Mn=fn.getModel();Mn&&Mn.dispose(),Pn.unobserve(Ue.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ee.useEffect)(()=>{We&&We.setModel({original:oe.editor.createModel(zt,le),modified:oe.editor.createModel(Gt,le)})},[zt,Gt,le,We]);const on=He(Et),nn=He($t),qe={width:on,height:nn};return ee.createElement("div",{className:"my-diff-editor",ref:Ue,style:qe})}},10661:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return kt}});var ee={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"},wt=ce(29787),Qt=ce(25399),Zt=ce(92310),Ot=ce.n(Zt),jt=ce(51257),Ct=ce(28426),Mt=ce(48790),Bt=ce(59301),kt=({className:xt,dataSource:Dt=[],col:yt=4,right:et,bottom:tt=23,precision:lt=0,wrapWidth:ot=1200,trackEventItems:ut,loading:ct,onRemove:ft=()=>{},isCurrent:gt=!0,showAlias:Lt=!1})=>{const Rt=Math.floor((ot-(yt-1)*et)/yt),Ut=[{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 Bt.createElement(wt.Z,{spinning:ct},Bt.createElement("div",{className:Ot()(ee.list,xt)},!!(Dt!=null&&Dt.length)&&(Dt==null?void 0:Dt.map((Nt,qt)=>{var te;const{name:Vt,id:de,identifier:ge,featured:be,school_name:Ne,image_url:Ge,excellent:Pe,is_plan:ze}=Nt;return Bt.createElement("div",{key:de,className:ee.wrap,style:{width:Rt,marginRight:(1+qt)%yt===0?0:et+lt,marginBottom:tt}},Bt.createElement("a",{className:ee.li,onClick:he=>{he.preventDefault(),he.stopPropagation(),ut&&(0,jt.L9)([ut]),(0,jt.xg)(`/paths/${ge}`)}},Bt.createElement("div",{className:ee.img},Bt.createElement("img",{className:ee.cover,src:`${Ge}`}),gt&&(0,Mt.bg)()&&(Nt==null?void 0:Nt.studying)&&Bt.createElement("div",{className:`${ee.movebq} user-path-items`,onClick:he=>{he.stopPropagation(),ft(Nt)}},Bt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Bt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(te=Nt==null?void 0:Nt.subject_tags)==null?void 0:te.map((he,Jt)=>{var re,se;if(Jt===0){const ue=(re=Ut.find(Re=>Re.name==he))==null?void 0:re.swimg;return Bt.createElement("img",{className:ee.sign,src:ue,style:{left:"-4px"}})}const pe=(se=Ut.find(ue=>ue.name==he))==null?void 0:se.ptimg;return Bt.createElement("img",{className:ee.sign,src:pe,style:{left:`${48+52*(Jt-1)+2*Jt}px`}})}),Bt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Nt==null?void 0:Nt.excellent)&&Bt.createElement("div",{className:ee.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Bt.createElement("div",{className:ee.name},Bt.createElement(Qt.Z,{title:Lt&&(Nt!=null&&Nt.excellent_alias_name)?Bt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Vt}`,Bt.createElement("br",null),Bt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Nt==null?void 0:Nt.excellent_alias_name}`)):Vt},Bt.createElement("span",{className:ee.e},Lt&&(Nt==null?void 0:Nt.excellent_alias_name)||Vt))),Bt.createElement(Qt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ne}`},Bt.createElement("div",{className:ee.unit},Bt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ne)),Bt.createElement("div",{className:ee.tags},Bt.createElement("div",null,Bt.createElement(Qt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Bt.createElement("span",null,Bt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Bt.createElement("span",null,Nt.stages_count))),Bt.createElement(Qt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Bt.createElement("span",null,Bt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Bt.createElement("span",null,Nt.members_count)))))))})),!Dt.length&&Bt.createElement(Ct.Z,null)))}},9148:function(Cn,Gn,ce){"use strict";ce.d(Gn,{jL:function(){return Ot},w9:function(){return re},QD:function(){return on},cQ:function(){return Ge.Z},op:function(){return le},O5:function(){return Rn},_b:function(){return Mn},t7:function(){return ot},Gi:function(){return Qe},YG:function(){return Re},qp:function(){return kt},vr:function(){return En},qE:function(){return We},Je:function(){return ft},wb:function(){return Ne},cq:function(){return ie},tp:function(){return yt}});var ee=ce(59301),wt={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"},Qt="data:image/png;base64,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",Ot=({dataSource:bn=[],img:_n,imgWidth:Yn=346,title:Xn,sunTitle:Ri,bannerExtraContent:ki})=>ee.createElement("div",{className:wt.banner},ee.createElement("div",{className:wt.content},ee.createElement("aside",null,ee.createElement("p",null,ee.createElement("b",null,Xn),ee.createElement("span",null,Ri)),bn.length>0&&ee.createElement("div",{className:wt.btns},bn.map((Xe,Je)=>ee.createElement("div",{key:Je,onClick:Xe.click},Xe.name,Xe.sign?ee.createElement("img",{src:Qt,width:39}):null))),ki),_n&&ee.createElement("img",{style:{marginTop:33,marginRight:38},src:_n,width:Yn}))),jt={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"},Ct=ce(92310),Mt=ce.n(Ct),Bt=ce(89392),kt=({dataSource:bn=[],value:_n,onChange:Yn,onTitleChange:Xn,className:Ri,title:ki,titleWidth:Xe=41,style:Je={},fontColor:Ke="#6A7283",showCount:Hn})=>{const[Jn,qn]=(0,ee.useState)(0),[pn,Bn]=(0,ee.useState)(!1),hi=(0,ee.useRef)(null),Ti=(0,ee.useRef)(null);return(0,ee.useEffect)(()=>{var Di;bn.length!==0&&(((Di=hi==null?void 0:hi.current)==null?void 0:Di.clientHeight)>97?qn(1):qn(0)),bn.length===0&&qn(0),Bn(!1)},[bn]),ee.createElement("div",{className:Mt()(jt.row,Ri),style:Je},ee.createElement("div",{onClick:(0,Bt.throttle)(()=>Xn==null?void 0:Xn(),2e3),style:{width:Xe,marginTop:pn?12:4},className:`${jt.title} ${Xn?"current":""}`},ki),ee.createElement("div",{className:pn?`${jt.tagsWrap} ${jt.tagsBorderWrap}`:jt.tagsWrap},ee.createElement("div",{className:jt.bar,ref:Ti,style:Jn>0?{height:Jn===1?97:"auto",overflow:Jn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ee.createElement("div",{className:jt.tag,ref:hi},bn==null?void 0:bn.map(Di=>ee.createElement("span",{onClick:()=>Yn(Di.id),key:Di.id,style:{color:Ke},className:_n===Di.id?jt.active:""},ee.createElement("span",{title:Di.name,className:jt.name},Di.name),!!Hn&&ee.createElement("span",{className:jt.num},Di.count))))),!!Jn&&ee.createElement(ee.Fragment,null,Jn===1?ee.createElement("div",{onClick:()=>{var Di;qn(2),((Di=hi==null?void 0:hi.current)==null?void 0:Di.clientHeight)>245?Bn(!0):Bn(!1)},className:jt.action},"\u5C55\u5F00",ee.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ee.createElement("div",{onClick:()=>{Ti.current.scrollTop=0,qn(1),Bn(!1)},className:jt.action},"\u6536\u8D77",ee.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},xt={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"},yt=({dataSource:bn=[],value:_n,onChange:Yn,className:Xn,style:Ri={}})=>ee.createElement("div",{style:Ri,className:Mt()(xt.tabs,Xn)},bn.map(ki=>ee.createElement("span",{onClick:()=>Yn(ki.id),className:_n===ki.id?xt.active:"",key:ki.id},ki.name))),et={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"},tt=ce(37568),ot=({dataSource:bn=[],value:_n="",onChange:Yn,onInputChange:Xn=()=>{},className:Ri,style:ki={},placeholder:Xe,allowClear:Je=!1})=>{var Ke;const[Hn,Jn]=(0,ee.useState)(""),[qn,pn]=(0,ee.useState)("");(0,ee.useEffect)(()=>{var Ti;let Di=_n;(Ti=JSON.stringify(_n))!=null&&Ti.includes("{")&&(Jn(_n.id),Di=_n.value||"");try{pn(decodeURIComponent(Di||""))}catch(we){pn(decodeURIComponent(Di||""))}},[_n]);const Bn=()=>{Yn(encodeURIComponent(qn),Hn||null)},hi=Ti=>{Ti!==Hn&&(Jn(Ti),Yn(encodeURIComponent(qn),Ti))};return ee.createElement("div",{className:Mt()(et.input,Ri),style:ki},!!bn.length&&ee.createElement("div",{className:et.dropdown},ee.createElement("div",{className:et.text},(Ke=bn.find(Ti=>Ti.id===Hn))==null?void 0:Ke.name,ee.createElement("i",{className:"iconfont icon-zhankai4"}),ee.createElement("b",{className:et.b1}),ee.createElement("b",{className:et.b2})),ee.createElement("div",{className:et.menu},bn.map((Ti,Di)=>ee.createElement("div",{key:Di,onClick:()=>hi(Ti.id)},Ti.name)))),ee.createElement(tt.default,{onPressEnter:Bn,value:qn,onChange:Ti=>{pn(Ti.target.value),Xn(encodeURIComponent(Ti.target.value),Hn||null)},bordered:!1,placeholder:Xe}),ee.createElement("i",{onClick:Bn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={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"},ft=({value:bn,onChange:_n,className:Yn,total:Xn,pageSize:Ri,style:ki={}})=>{const Xe=bn<2,Je=bn>=Math.ceil(Xn/Ri);return Xn<=Ri?ee.createElement(ee.Fragment,null):ee.createElement("div",{className:Mt()(ut.quickPager,Yn),style:ki},ee.createElement("div",{onClick:()=>{Xe||_n(bn-1,"prev")},className:Xe?ut.disabled:""},"\u4E0A\u4E00\u9875"),ee.createElement("div",{onClick:()=>{Je||_n(bn+1,"next")},className:Je?ut.disabled:""},"\u4E0B\u4E00\u9875"))},gt={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"},Lt=ce(29787),Rt=ce(25399),Ut=ce(58018),Nt=ce(346),qt=ce(51257),te=ce(96908),Vt=ce(57177),de=ce(81378),ge=ce(28426),Ne=({className:bn,dataSource:_n=[],col:Yn=4,right:Xn,bottom:Ri=23,precision:ki=0,wrapWidth:Xe=1200,trackEventItems:Je,loading:Ke})=>{const Hn=Math.floor((Xe-(Yn-1)*Xn)/Yn);return ee.createElement(Lt.Z,{spinning:Ke},ee.createElement("div",{className:Mt()(gt.list,bn)},!!_n.length&&_n.map((Jn,qn)=>{const{name:pn,id:Bn,identifier:hi,power:Ti,cover_image_id:Di,pic:we}=Jn;return ee.createElement("div",{className:gt.wrap,key:Bn,style:{width:Hn,marginRight:(1+qn)%Yn===0?0:Xn+ki,marginBottom:Ri}},ee.createElement("a",{target:"_blank",href:`/shixuns/${hi}/challenges`,className:gt.li,onClick:je=>{je.preventDefault(),Je&&(0,qt.L9)([Je]),Ti&&(0,qt.xg)(`/shixuns/${hi}/challenges`)}},ee.createElement("div",{className:gt.img},ee.createElement("img",{className:gt.cover,src:`${we}`}),Jn.is_jupyter&&ee.createElement("img",{className:gt.sign,src:te}),Jn.is_jupyter_lab&&ee.createElement("img",{className:gt.sign,src:Vt}),Jn.is_unity_3d&&ee.createElement("img",{className:gt.sign,src:de})),ee.createElement("div",{className:gt.name},ee.createElement(Rt.Z,{title:pn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ee.createElement("span",{className:gt.e},pn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ee.createElement("div",{className:gt.tags},ee.createElement(Rt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ee.createElement("span",null,Jn.challenges_count))),!!Jn.myshixuns_count&&ee.createElement(Rt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ee.createElement("span",null,Jn.myshixuns_count))),ee.createElement(Rt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ee.createElement("span",null,ee.createElement("span",null,Jn.level))),ee.createElement("div",{className:gt.rate},ee.createElement(Ut.Z,{allowHalf:!0,disabled:!0,defaultValue:Jn.score_info}),ee.createElement("span",null,"\xA0",Jn.score_info?`${Jn.score_info}\u5206`:"5\u5206")))),!Ti&&ee.createElement("div",{className:gt.lockWrap},ee.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ee.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!_n.length&&ee.createElement(ge.Z,null)))},Ge=ce(10661),Pe={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"},ze="data:image/png;base64,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",he=ce(59301),re=({className:bn,dataSource:_n=[],col:Yn=4,right:Xn,bottom:Ri=23,precision:ki=0,wrapWidth:Xe=1200,trackEventItems:Je,loading:Ke,handleVery:Hn=()=>!0})=>{const Jn=Math.floor((Xe-(Yn-1)*Xn)/Yn);return he.createElement(Lt.Z,{spinning:Ke},he.createElement("div",{className:Mt()(Pe.list,bn)},!!_n.length&&_n.map((qn,pn)=>{const{subject_identifier:Bn,id:hi,identifier:Ti,power:Di}=qn,we=qn.is_public!=0&&qn.is_public;return he.createElement("div",{className:Pe.wrap,key:hi,style:{width:Jn,marginRight:(1+pn)%Yn===0?0:Xn+ki,marginBottom:Ri}},he.createElement("a",{className:Pe.li,onClick:je=>{je.preventDefault(),Hn(qn==null?void 0:qn.first_category_url)&&(Je&&(0,qt.L9)([Je]),(0,qt.xg)(qn.first_category_url))}},he.createElement("div",{className:Pe.top},he.createElement(Rt.Z,{title:qn.name},he.createElement("div",{className:Pe.name},qn.name)),he.createElement("img",{className:Pe.img,src:Nt.Z.IMG_SERVER+"/images/"+qn.avatar_url}),he.createElement("div",{className:Pe.text,title:qn.creator},qn.creator),Bn&&he.createElement("div",{className:Pe.btns},he.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),he.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),we&&he.createElement("div",{className:Pe.sign},"\u516C\u5F00")),he.createElement("div",{className:Pe.bottom},qn.visits>0&&he.createElement(Rt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-liulanyan"}),he.createElement("span",null,qn.visits))),qn.course_members_count>0&&he.createElement(Rt.Z,{title:"\u6210\u5458",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-chengyuan"}),qn.course_members_count)),qn.tasks_count>0&&he.createElement(Rt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-zuoye"}),qn.tasks_count)),qn.is_end?he.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):he.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!qn.is_accessible&&he.createElement("div",{className:Pe.lockWrap},he.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),he.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!_n.length&&he.createElement(ge.Z,null)))},se={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"},pe=ce(25690),Re=({dataSource:bn=[],value:_n,onChange:Yn,className:Xn,style:Ri={},tabBarExtraContent:ki})=>ee.createElement("div",{className:Mt()(se.tabs,Xn),style:Ri},ee.createElement("div",{className:se.tabsWrap},bn.map((Xe,Je)=>!(Xe!=null&&Xe.hide)&&ee.createElement("aside",{className:se.tab,onClick:()=>{Yn(Xe.id),Xe.link&&pe.history.push(Xe.link)},key:Je},ee.createElement("div",{className:_n===Xe.id?se.active:""},Xe.name),(Xe==null?void 0:Xe.resetCount)==null&&(Xe==null?void 0:Xe.total)!==void 0&&ee.createElement("span",null,"\uFF08",Xe==null?void 0:Xe.total,"\uFF09"),(Xe==null?void 0:Xe.resetCount)!==void 0&&(Xe==null?void 0:Xe.total)!==void 0&&ee.createElement(Rt.Z,{title:(Xe==null?void 0:Xe.tip)!=null?Xe==null?void 0:Xe.tip:""},ee.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ee.createElement("span",{style:{color:"#000"}},Xe==null?void 0:Xe.resetCount),"/",ee.createElement("span",null,Xe==null?void 0:Xe.total),"\uFF09"))))),ee.createElement("div",{className:se.tabBar},ki)),Qe=({className:bn,style:_n={},children:Yn})=>ee.createElement("div",{className:Mt()(bn),style:_n},Yn),Ae={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"},_e=ce(75727),Le=ce(93041);const Oe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ie=({sortValue:bn,dropValue:_n,className:Yn,onSort:Xn,onDrop:Ri,dataSource:ki=Oe})=>{var Xe;return ee.createElement("div",{className:Mt()(Ae.orderWrap,Yn)},ee.createElement(_e.Z,{dropdownRender:()=>ee.createElement(Le.default,null,ki.map((Je,Ke)=>ee.createElement(Le.default.Item,{key:Ke,onClick:()=>Ri(Je.id)},Je.name)))},ee.createElement("span",{className:Ae.orderTextWrap},(Xe=ki.find(Je=>_n===Je.id))==null?void 0:Xe.name)),ee.createElement("span",{className:Ae.orderIconWrap},ee.createElement("span",{className:Ae.orderAsc},ee.createElement("i",{className:bn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ae.cursorPointer} ${Ae.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ae.cursorPointer}`,onClick:()=>Xn(bn==="asc"?"desc":"asc")})),ee.createElement("span",{className:Ae.orderDesc},ee.createElement("i",{className:bn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ae.cursorPointer} ${Ae.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ae.cursorPointer}`,onClick:()=>Xn(bn==="asc"?"desc":"asc")}))))},Tt={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"},At=ce(99571),Yt=Object.defineProperty,oe=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Pt=(bn,_n,Yn)=>_n in bn?Yt(bn,_n,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):bn[_n]=Yn,Et=(bn,_n)=>{for(var Yn in _n||(_n={}))_t.call(_n,Yn)&&Pt(bn,Yn,_n[Yn]);if(oe)for(var Yn of oe(_n))It.call(_n,Yn)&&Pt(bn,Yn,_n[Yn]);return bn},$t=(bn,_n)=>{var Yn={};for(var Xn in bn)_t.call(bn,Xn)&&_n.indexOf(Xn)<0&&(Yn[Xn]=bn[Xn]);if(bn!=null&&oe)for(var Xn of oe(bn))_n.indexOf(Xn)<0&&It.call(bn,Xn)&&(Yn[Xn]=bn[Xn]);return Yn},zt=(bn,_n,Yn)=>new Promise((Xn,Ri)=>{var ki=Ke=>{try{Je(Yn.next(Ke))}catch(Hn){Ri(Hn)}},Xe=Ke=>{try{Je(Yn.throw(Ke))}catch(Hn){Ri(Hn)}},Je=Ke=>Ke.done?Xn(Ke.value):Promise.resolve(Ke.value).then(ki,Xe);Je((Yn=Yn.apply(bn,_n)).next())}),le=bn=>{var _n=bn,{className:Yn,style:Xn,children:Ri,loading:ki=!1,openLoading:Xe,onClick:Je=()=>{},size:Ke="middle",shape:Hn="round"}=_n,Jn=$t(_n,["className","style","children","loading","openLoading","onClick","size","shape"]);const[qn,pn]=(0,ee.useState)(!1);return ee.createElement(At.ZP,Et({onClick:(0,Bt.throttle)(Bn=>zt(void 0,null,function*(){Xe&&pn(!0);try{yield Je(Bn)}catch(hi){console.log("error",hi)}Xe&&pn(!1)}),2e3,{leading:!0,trailing:!1}),className:Mt()(Tt.btn,Tt[`${Ke}-${Hn}`],Yn),style:Xn,size:Ke,shape:Hn,loading:qn||ki},Jn),Ri)},ye={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"},We=({className:bn,style:_n,children:Yn=null,onClick:Xn,title:Ri})=>ee.createElement("div",{className:Mt()(ye.head,bn),style:_n},ee.createElement("span",{className:"primary-hover",onClick:Xn},ee.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ee.createElement("b",{title:Ri},Ri),ee.createElement("div",{className:ye.node},Yn)),Ee={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:bn=!0,confirmTitle:_n,confirmClick:Yn,cancelShow:Xn=!0,cancelTitle:Ri,cancelClick:ki,className:Xe,style:Je,confirmLoading:Ke=!1})=>ee.createElement("div",{className:Mt()(Ee.btns,Xe),style:Je},bn&&ee.createElement(At.ZP,{loading:Ke,onClick:Yn,type:"primary",className:Ee.confirm},_n),Xn&&ee.createElement(At.ZP,{onClick:ki,className:Ee.cancel},Ri)),nn={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"},En=({className:bn,style:_n={},LeftContent:Yn,children:Xn,RightContent:Ri})=>ee.createElement("div",{className:Mt()(nn.fixedBottom,bn),style:_n},ee.createElement("div",{className:nn.wrap},ee.createElement("div",{className:nn.left},Yn),ee.createElement("div",{className:nn.center},Xn),ee.createElement("div",{className:nn.right},Ri))),fn={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"},Mn=({className:bn,style:_n={},dataSource:Yn=[]})=>ee.createElement("div",{className:Mt()(fn.crumbs,bn),style:_n},Yn.map((Xn,Ri)=>Ripe.history.push(Xn.path)},Xn.name):ee.createElement("span",null,Xn.name),ee.createElement("span",null,"\xA0",">","\xA0")):ee.createElement("span",{key:Ri,style:{color:"#5F6368"}},Xn.name))),ii=ce(11938),Tn=Object.defineProperty,oi=Object.defineProperties,vi=Object.getOwnPropertyDescriptors,yi=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,Yi=(bn,_n,Yn)=>_n in bn?Tn(bn,_n,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):bn[_n]=Yn,zi=(bn,_n)=>{for(var Yn in _n||(_n={}))Zi.call(_n,Yn)&&Yi(bn,Yn,_n[Yn]);if(yi)for(var Yn of yi(_n))Hi.call(_n,Yn)&&Yi(bn,Yn,_n[Yn]);return bn},Pi=(bn,_n)=>oi(bn,vi(_n)),Gi=(bn,_n)=>{var Yn={};for(var Xn in bn)Zi.call(bn,Xn)&&_n.indexOf(Xn)<0&&(Yn[Xn]=bn[Xn]);if(bn!=null&&yi)for(var Xn of yi(bn))_n.indexOf(Xn)<0&&Hi.call(bn,Xn)&&(Yn[Xn]=bn[Xn]);return Yn};const{Countdown:Kt}=ii.default;var Rn=bn=>{var _n=bn,{onChange:Yn}=_n,Xn=Gi(_n,["onChange"]);const[Ri,ki]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{typeof Ri=="number"&&Ri>=0&&Yn(Ri)},[Ri]);const Xe=Je=>{const Ke=Math.floor(Je/1e3);ki(Ke)};return ee.createElement(Kt,Pi(zi({},Xn),{onChange:Xe}))}},37808:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return wt}});var ee=ce(59301);function wt(Qt,Zt){const Ot=(0,ee.useRef)();(0,ee.useEffect)(()=>{Ot.current=Qt}),(0,ee.useEffect)(()=>{function jt(){Ot.current()}if(Zt!==null){let Ct=setInterval(jt,Zt);return()=>clearInterval(Ct)}},[Zt])}},51917:function(Cn,Gn,ce){"use strict";ce.d(Gn,{$J:function(){return Qt},JZ:function(){return Ot},bN:function(){return Ct},jP:function(){return jt},rO:function(){return Zt}});var ee=ce(38986),wt=(Mt,Bt,St)=>new Promise((kt,xt)=>{var Dt=tt=>{try{et(St.next(tt))}catch(lt){xt(lt)}},yt=tt=>{try{et(St.throw(tt))}catch(lt){xt(lt)}},et=tt=>tt.done?kt(tt.value):Promise.resolve(tt.value).then(Dt,yt);et((St=St.apply(Mt,Bt)).next())});function Qt(Mt){return(0,ee.U2)(`libraries/${Mt}.json`)}function Zt(){return(0,ee.U2)("library_tags.json")}function Ot(Mt){return wt(this,null,function*(){return(yield(0,ee.IV)(`attachments/${Mt}.json`)).status===0})}function jt(Mt){return(0,ee.v_)("libraries.json",Mt)}function Ct(Mt,Bt){return(0,ee.gz)(`libraries/${Mt}.json`,Bt)}},23019:function(Cn,Gn,ce){"use strict";ce.d(Gn,{Z:function(){return Ut}});var ee=ce(59301),wt=ce(25690),Qt=ce(37568),Zt=ce(28284),Ot=ce(6767),jt=ce(62957),Ct=ce(60242),Mt=ce(62673),Bt=ce(96599),St={modal:"modal___EKlPQ",uploadWrap:"uploadWrap___YGxav",upload:"upload___ouqG9",uploadLink:"uploadLink___nuif6",fileProgress:"fileProgress___tf4qy",fileCancel:"fileCancel___Bh3Wh",videoName:"videoName___Ra0NM",contentItem:"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"},kt=ce(67776),xt=ce(30502),Dt=ce(48790),yt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,ot=(Nt,qt,te)=>qt in Nt?yt(Nt,qt,{enumerable:!0,configurable:!0,writable:!0,value:te}):Nt[qt]=te,ut=(Nt,qt)=>{for(var te in qt||(qt={}))tt.call(qt,te)&&ot(Nt,te,qt[te]);if(et)for(var te of et(qt))lt.call(qt,te)&&ot(Nt,te,qt[te]);return Nt},ct=(Nt,qt,te)=>new Promise((Vt,de)=>{var ge=Ge=>{try{Ne(te.next(Ge))}catch(Pe){de(Pe)}},be=Ge=>{try{Ne(te.throw(Ge))}catch(Pe){de(Pe)}},Ne=Ge=>Ge.done?Vt(Ge.value):Promise.resolve(Ge.value).then(ge,be);Ne((te=te.apply(Nt,qt)).next())});const{TextArea:ft}=Qt.default,gt=1024,Lt=(Nt,qt)=>{var te;const{uploadInfo:Vt={}}=qt.payload||{};switch(qt.type){case"addVideo":return{videoList:[...Nt.videoList,{name:Vt.file.name,size:Vt.file.size,type:Vt.file.type,fileHash:Vt.fileHash,state:Vt.state,videoId:Vt.videoId,loaded:Vt.loaded||0,title:""}]};case"removeVideo":return{videoList:Nt.videoList.filter(de=>de.name!==qt.payload.name)};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:Nt.videoList.map(de=>de.name===qt.payload.uploadInfo.file.name?ut(ut({},de),{loaded:qt.payload.progressPercent,videoId:Vt.videoId,fileHash:Vt.fileHash}):de)};case"updateTitle":return{videoList:(te=Nt.videoList)==null?void 0:te.map(de=>de.name===qt.payload.item.name?ut(ut({},de),{title:qt.payload.title}):de)};default:return{videoList:[]}}},Rt=({user:Nt,globalSetting:qt,loading:te,dispatch:Vt,visible:de,editData:ge,onCancel:be=()=>{},onOk:Ne=()=>{},queryParams:Ge={}})=>{var Pe;const ze=(0,wt.useParams)(),[he]=Zt.default.useForm(),[Jt,re]=(0,ee.useReducer)(Lt,{videoList:[]}),[se,pe]=(0,ee.useState)(!1),ue=(0,ee.useRef)(),[Re,Fe]=(0,ee.useState)(),[Qe,Ae]=(0,ee.useState)(!1),[_e,Le]=(0,ee.useState)(!1),Oe=(0,Dt.Ny)()?3:1;(0,ee.useEffect)(()=>{var Gt,le,ye;de&&ge&&(Ae(ge.is_link),Fe(ge.link),!ge.is_link&&re({type:"addVideo",payload:{uploadInfo:{file:{name:ge.filename||""},videoId:ge.video_id,loaded:100}}}),Et(((Gt=ge==null?void 0:ge.tags)==null?void 0:Gt.map(Ue=>Ue==null?void 0:Ue.name))||[]),he.setFieldsValue({name:ge.name,description:ge.description,attachment_id:(le=ge==null?void 0:ge.video)==null?void 0:le.attachment_id,allow_skip:(ye=ge==null?void 0:ge.video_item)==null?void 0:ye.allow_skip}))},[ge,de]);const He=()=>{const Gt=document.getElementById("fileUpload");Gt.value=""},ie=Gt=>{var le;Ae(!1);const ye=Gt.target.files[0];if(!ye){He();return}const Ue=ye.name.toLowerCase();if(Ue&&Ue.indexOf(".avi")==-1&&Ue.indexOf(".flv")==-1&&Ue.indexOf(".f4v")==-1&&Ue.indexOf(".m4v")==-1&&Ue.indexOf(".mov")==-1&&Ue.indexOf(".mp4")==-1&&Ue.indexOf(".rmvb")==-1&&Ue.indexOf(".swf")==-1&&Ue.indexOf(".webm")==-1&&Ue.indexOf(".wmv")==-1){Ot.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),He();return}if(ye.size>gt*Oe*1024*1024){Ot.ZP.info(`\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7${Oe}G`),He();return}if((le=Jt.videoList)!=null&&le.find(We=>We.name===ye.name)){Ot.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),He();return}At(ye)},Tt=(Gt,le)=>{jt.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ee.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",le?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{He(),re({type:"removeVideo",payload:{name:Gt}})}})},At=Gt=>{var le,ye='{"Vod":{}}';if(pe(!0),ue.current){ue.current.addFile(Gt,null,null,null,ye);return}(0,kt.o)((le=Nt.userInfo)==null?void 0:le.login,"",{create:!ue,addFileSuccess:Ue=>{re({type:"addVideo",payload:{uploadInfo:Ue}})},onUploadProgress:(Ue,We,Ee)=>{const Ze=Math.ceil(Ee*100);re({type:"updateProgress",payload:{uploadInfo:Ue,progressPercent:Ze}}),He()},onUploadFailed:Ue=>{Ot.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:Ue=>{pe(!1)},onUploadSucceed:Ue=>{pe(!1)},onUploadError:Ue=>{pe(!1)},gotUploader:Ue=>{Ue.addFile(Gt,null,null,null,ye),ue.current=Ue}})},Yt=()=>ct(void 0,null,function*(){var Gt,le;if(yield he.validateFields(),!Qe&&!((Gt=Jt.videoList)!=null&&Gt.length)||Qe&&!Re){Ot.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");return}Le(!0);const ye=Qe?{link:Re}:{video_id:(le=Jt.videoList)==null?void 0:le[0].videoId},Ue=yield Ne(ut(ut(ut({},ye),Ge),{name:he.getFieldValue("name"),attachment_id:he.getFieldValue("attachment_id"),description:he.getFieldValue("description"),tags:he.getFieldValue("tag"),allow_skip:he.getFieldValue("allow_skip")}));Le(!1),Ue!=null&&Ue.id&&oe()}),oe=()=>{he.resetFields(),re({type:"removeAll"}),Fe(null),Et([]),Ae(null)},_t=()=>{be(),oe()},It=()=>{var Gt,le,ye,Ue,We,Ee,Ze,on,nn,qe,En,fn;return ee.createElement(ee.Fragment,null,!Qe&&!!((Gt=Jt.videoList)!=null&&Gt.length)&&ee.createElement("div",{className:St.fileProgress},((ye=(le=Jt.videoList)==null?void 0:le[0])==null?void 0:ye.loaded)==100?ee.createElement("div",{className:`${St.videoName} font14`},(We=(Ue=Jt.videoList)==null?void 0:Ue[0])==null?void 0:We.name):ee.createElement(Ct.Z,{style:{width:"80%"},percent:(Ze=(Ee=Jt.videoList)==null?void 0:Ee[0])==null?void 0:Ze.loaded,status:((nn=(on=Jt.videoList)==null?void 0:on[0])==null?void 0:nn.loaded)==100?"normal":"active"}),ee.createElement("div",{className:St.fileCancel,onClick:()=>{var Pn,Mn,ii,Tn;return Tt((Mn=(Pn=Jt.videoList)==null?void 0:Pn[0])==null?void 0:Mn.name,((Tn=(ii=Jt.videoList)==null?void 0:ii[0])==null?void 0:Tn.loaded)==100)}},((En=(qe=Jt.videoList)==null?void 0:qe[0])==null?void 0:En.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((fn=Jt.videoList)!=null&&fn.length)&&ee.createElement("div",{className:St.uploadWrap},ee.createElement("label",{htmlFor:"fileUpload",className:St.upload},ee.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),ee.createElement("label",{className:`${St.upload} ${St.uploadLink}`,onClick:()=>Ae(!0)},ee.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),Qe&&ee.createElement(Qt.default,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:Re,onChange:Pn=>Fe(Pn.target.value)}))},[Pt,Et]=(0,ee.useState)([]),$t=Gt=>{if(Gt.key=="Enter"){const le=he.getFieldValue("tag");if(he.setFieldsValue({tag:""}),!le){Ot.ZP.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Pt.filter(ye=>ye===le).length>0){Ot.ZP.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Pt.push(le),Et([...Pt])}},zt=(Gt,le)=>{Gt.preventDefault(),Et([...Pt.filter(ye=>ye!=le)])};return ee.createElement(jt.default,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:ge?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:St.modal,open:de,confirmLoading:_e,onOk:Yt,onCancel:_t},ee.createElement(Zt.default,{form:he},ee.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:ie,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),ee.createElement(Zt.default.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},ee.createElement(Qt.default,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),ee.createElement(Zt.default.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:St.contentItem},It()),ee.createElement(Zt.default.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},ee.createElement(xt.Z,{getFileProgress:Gt=>{if(Gt.file.status==="uploading"){Le(!0);return}Gt.file.status==="done"&&Le(!1)}})),ee.createElement(Zt.default.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},ee.createElement(ft,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),ee.createElement(Zt.default.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},ee.createElement(Qt.default,{onKeyUp:$t})),ee.createElement(Zt.default.Item,{label:"\u64AD\u653E\u8BBE\u7F6E",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0},ee.createElement(Mt.default,null,"\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E")),ee.createElement("div",{className:St["tagsList-content"]},Pt.map((Gt,le)=>ee.createElement(Bt.default,{key:le+Gt,closable:!0,onClose:ye=>{zt(ye,Gt)}},Gt))),ee.createElement("div",{className:"c-grey-999"},ee.createElement("div",null,"\u6CE8\u610F\uFF1A"),ee.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",ee.createElement(wt.Link,{to:`/users/${(Pe=Nt.userInfo)==null?void 0:Pe.login}/videos/protocol`,target:"_blank",className:St.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),ee.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Oe,"G\uFF1B"),ee.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),ee.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};var Ut=(0,wt.connect)(({user:Nt,loading:qt,globalSetting:te})=>({user:Nt,globalSetting:te,loading:qt}))(Rt)},67776:function(Cn,Gn,ce){"use strict";ce.d(Gn,{o:function(){return Bt}});var ee=ce(38986),wt=ce(93125),Qt=ce.n(wt);let Zt="",Ot,jt="";function Ct(St){Mt(St)}function Mt(St){Ot=new(Qt()).Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(kt){console.log("addFileSuccess: "+kt.file.name),St.addFileSuccess&&St.addFileSuccess(kt),Ot.startUpload()},onUploadstarted:function(kt){const xt=kt.file.name;if(kt.videoId){var yt=`/api/users/${Zt}/video_auths.json`;(0,ee.ZP)(yt,{method:"put",body:{video_id:kt.videoId,title:xt,file_name:xt,virtual_classroom_id:jt}}).then(et=>{if(et.status==-1){St.onUploadError&&St.onUploadError(kt);return}const tt=et.data;var lt=tt.UploadAuth,ot=tt.UploadAddress,ut=tt.VideoId;Ot.setUploadAuthAndAddress(kt,lt,ot)}).catch(et=>{Ot.deleteFile(Ot._curIndex),Ot.nextUpload(),console.log(et)})}else{var Dt=`/api/users/${Zt}/video_auths.json`;const et="";(0,ee.ZP)(Dt,{method:"Post",body:{title:et+xt,file_name:et+xt,virtual_classroom_id:jt}}).then(tt=>{if(tt){const ct=tt.data;var lt=ct.UploadAuth,ot=ct.UploadAddress,ut=ct.VideoId;Ot.setUploadAuthAndAddress(kt,lt,ot,ut)}}).catch(tt=>{Ot.deleteFile(Ot._curIndex),Ot.nextUpload(),console.log(tt)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(kt){St.onUploadSucceed&&St.onUploadSucceed(kt),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(kt,xt,Dt){St.onUploadFailed&&St.onUploadFailed(kt),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(kt,xt,Dt){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(kt,xt,Dt){St.onUploadProgress&&St.onUploadProgress(kt,xt,Dt);var yt=Math.ceil(Dt*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(kt){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var xt=`/api/users/${Zt}/video_auths.json`;(0,ee.ZP)(xt,{method:"put",body:{video_id:kt.videoId}}).then(Dt=>{var et=Dt.data.UploadAuth;Ot.resumeUploadWithAuth(et)}).catch(Dt=>{console.log(Dt)})},onUploadEnd:function(kt){St.onUploadEnd&&St.onUploadEnd(kt),console.log("onUploadEnd: uploaded all the files")}}),St.gotUploader&&St.gotUploader(Ot)}function Bt(St,kt,xt){St&&(Zt=St),kt&&(jt=kt),Ct(xt)}},81428:function(Cn,Gn,ce){"use strict";ce.d(Gn,{AL:function(){return ft},Iy:function(){return kt},Qv:function(){return yt},ez:function(){return ct},jb:function(){return xt}});var ee=ce(32834),wt=ce.n(ee),Qt=ce(11690),Zt=ce.n(Qt);let Ot=1;function jt(Nt,qt){const te=Nt.match(/^(\s+)(?:```)/);if(te===null)return qt;const Vt=te[1];return qt.split(` `).map(de=>{const ge=de.match(/^\s+/);if(ge===null)return de;const[be]=ge;return be.length>=Vt.length?de.slice(Vt.length):de}).join(` `)}let Ct=[],Mt=["
    "];const Bt=new(wt()).Renderer,St=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function kt(){Ct.length=0,Mt=["
      "]}const xt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Dt(Nt,qt,te,Vt){if(qt>=Nt.length||Nt[qt].level<=te)return qt;var de=Nt[qt];Vt.push("
    • "+de.text+""),qt++;var ge=[];return qt=Dt(Nt,qt,de.level,ge),ge.length>0&&(Vt.push("
        "),ge.forEach(function(be){Vt.push(be)}),Vt.push("
      ")),Vt.push("
    • "),qt=Dt(Nt,qt,te,Vt),qt}function yt(){return Dt(Ct,0,0,Mt),Mt.push("
    "),Mt.join("")}const et={heading(Nt){const qt=St.exec(Nt);if(Ot+=1,qt)return{type:"heading",raw:qt[0],depth:qt[1].length,text:qt[2]}},fences(Nt){const qt=this.rules.block.fences.exec(Nt);if(qt){const te=qt[0];let Vt=jt(te,qt[3]||"");const de=qt[2]?qt[2].trim():qt[2];if(["latex","katex","math"].indexOf(de)>=0){const ge=ot(),be=Vt;Vt=ge,ut[ge]={type:"block",expression:be}}return{type:"code",raw:te,lang:de,text:Vt}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let lt=0;const ot=()=>`__special_katext_id_${lt++}__`;let ut={};function ct(){return ut}function ft(){lt=0,ut={}}function gt(Nt){return Nt=Nt.replace(tt,(qt,te)=>{const Vt=ot();return ut[Vt]={type:"inline",expression:te},Vt}),Nt}const Lt=Bt.listitem;Bt.listitem=function(Nt){return Lt(gt(Nt))};const Rt=Bt.paragraph;Bt.paragraph=function(Nt){return Rt(gt(Nt))};const Ut=Bt.tablecell;Bt.tablecell=function(Nt,qt){return Ut(gt(Nt),qt)},Bt.code=function(Nt,qt,te){const Vt=(qt||"").match(/\S*/)[0];return Vt?["latex","katex","math"].indexOf(Vt)>=0?`

    ${Nt}

    `:`
    ${te?Nt:(0,Qt.escape)(Nt,!0)}
    `:'
    '+(te?Nt:(0,Qt.escape)(Nt,!0))+"
    "},Bt.heading=function(Nt,qt,te){let Vt=this.options.headerPrefix+te.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ct.push({anchor:Vt,level:qt,text:Nt}),"'+Nt+""},wt().setOptions({silent:!0,gfm:!0,pedantic:!1}),wt().use({tokenizer:et,renderer:Bt}),Gn.ZP=wt()},40197:function(Cn,Gn,ce){"use strict";ce.d(Gn,{rX:function(){return gt},pW:function(){return Lt},gy:function(){return Rt},xY:function(){return ft},O5:function(){return ct},hs:function(){return tt},tJ:function(){return yt},o1:function(){return et},Rd:function(){return ut}});var ee=ce(25690),wt=ce(62957),Qt=ce(37285),Zt=ce(6767),Ot=ce(48790),jt=ce(51257),Ct=ce(87169),Mt=ce(25510),Bt="data:image/png;base64,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",St=ce.p+"static/newqrcode.a8740efb.png",kt=ce(32637),xt=ce(59301),Dt=(Ut,Nt,qt)=>new Promise((te,Vt)=>{var de=Ne=>{try{be(qt.next(Ne))}catch(Ge){Vt(Ge)}},ge=Ne=>{try{be(qt.throw(Ne))}catch(Ge){Vt(Ge)}},be=Ne=>Ne.done?te(Ne.value):Promise.resolve(Ne.value).then(de,ge);be((qt=qt.apply(Ut,Nt)).next())});const yt=(Ut,Nt=!1,qt=!1,te="",Vt=!1)=>!!(et(Ut)&<(Ut,Nt,qt,te,Vt)),et=Ut=>(0,Ot.bg)()?!0:(Ut({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),tt=Ut=>{var Nt,qt,te;const{user:Vt}=(0,ee.getDvaApp)()._store.getState();(0,Ot.bg)()&&!((qt=(Nt=Vt==null?void 0:Vt.userInfo)==null?void 0:Nt.course)!=null&&qt.course_public)&&!((te=Vt==null?void 0:Vt.userInfo)!=null&&te.profile_completed)&&Ut({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},lt=(Ut,Nt=!1,qt=!0,te="",Vt=!1)=>{var de;const{user:ge}=(0,ee.getDvaApp)()._store.getState();return(de=ge.userInfo)!=null&&de.profile_completed?!0:(qt?Ut({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:te,isCurrentPage:Vt}}):wt.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,jt.xg)("/account/profile/edit"),ot()}}),!1)},ot=()=>{wt.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},ut=()=>{wt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:xt.createElement("div",{style:{textAlign:"center"}},xt.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),xt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:kt}),xt.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ct=()=>{var Ut;const{user:Nt}=(0,ee.getDvaApp)()._store.getState();return(Ut=Nt.userInfo)!=null&&Ut.professional_certification?!0:(wt.default.confirm({title:"\u63D0\u793A",centered:!0,content:xt.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,jt.xg)("/account/certification")}}),!1)},ft=()=>(0,Ot.V9)()?!0:(wt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:xt.createElement("div",{className:"tc",style:{marginLeft:-38}},xt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),xt.createElement("img",{src:St,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),gt=(Ut,Nt)=>Ut?!0:(wt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:xt.createElement("div",null,xt.createElement("p",null,Nt||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),xt.createElement("div",{style:{marginLeft:"110px"}},xt.createElement("img",{src:Bt,width:200}),xt.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,jt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Lt=Ut=>{wt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:xt.createElement("div",null,xt.createElement("div",null,xt.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),xt.createElement(Qt.Z,null),xt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",xt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",xt.createElement("a",null,Ut),"\u5929\u3002"),xt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",xt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),xt.createElement("div",{style:{textAlign:"center",marginTop:30}},xt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Mt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Rt=(Ut,Nt="")=>{const{shixunsDetail:{detail:qt}}=(0,ee.getDvaApp)()._store.getState();if((qt==null?void 0:qt.public)===2||(qt==null?void 0:qt.public)===1||(qt==null?void 0:qt.shixun_status)===3){let te="";return(qt==null?void 0:qt.public)===2&&(te="\u5DF2\u516C\u5F00"),(qt==null?void 0:qt.public)===1&&(te="\u5F85\u5BA1\u6838"),(qt==null?void 0:qt.shixun_status)===3&&(te="\u5DF2\u5173\u95ED"),wt.default.info({centered:!0,icon:xt.createElement(Ct.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:xt.createElement("div",{className:"tc",style:{marginLeft:-38}},xt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},xt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",te,"\uFF0C",Nt,"\u3002"),xt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),xt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Mt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(qt==null?void 0:qt.shixun_status)===2?(wt.default.confirm({centered:!0,icon:xt.createElement(Ct.Z,null),title:"\u63D0\u793A",content:xt.createElement("div",null,xt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Nt,"\u3002"),xt.createElement("br",null),xt.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{wt.default.confirm({width:440,centered:!0,icon:xt.createElement(Ct.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>Dt(void 0,null,function*(){(yield Ut({type:"shixunsDetail/cancelRelease",payload:{id:qt==null?void 0:qt.identifier}})).status!==401&&(Zt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ut({type:"shixunsDetail/getShixunsDetail",payload:{id:qt==null?void 0:qt.identifier}}),Ut({type:"practiceSetting/getCommonData",payload:{id:qt==null?void 0:qt.identifier}}))})})}}),!0):!1}},93125:function(Cn,Gn,ce){(function(ee){if(1)window.OSS=ee(),Cn.exports=ee();else var wt})(function(){var ee;return function(){function wt(Qt,Zt,Ot){function jt(Bt,St){if(!Zt[Bt]){if(!Qt[Bt]){var kt=void 0;if(!St&&kt)return require(Bt,!0);if(Ct)return Ct(Bt,!0);var xt=new Error("Cannot find module '"+Bt+"'");throw xt.code="MODULE_NOT_FOUND",xt}var Dt=Zt[Bt]={exports:{}};Qt[Bt][0].call(Dt.exports,function(yt){return jt(Qt[Bt][1][yt]||yt)},Dt,Dt.exports,wt,Qt,Zt,Ot)}return Zt[Bt].exports}for(var Ct=void 0,Mt=0;Mt0?re["Content-Type"]=Jt.mime:re["Content-Type"]=ft.getType(Jt.mime||ut.extname(Jt.object||""))||"application/octet-stream"),Jt.content&&(re["Content-Md5"]=ot.createHash("md5").update(new jt(Jt.content,"utf8")).digest("base64"),re["Content-Length"]||(re["Content-Length"]=Jt.content.length));var se=this._getResource(Jt);re.authorization=this.authorization(Jt.method,se,Jt.subres,re);var pe=this._getReqUrl(Jt);lt("request %s %s, with headers %j, !!stream: %s",Jt.method,pe,re,!!Jt.stream);var ue=Jt.timeout||this.options.timeout;return{url:pe,params:{agent:this.agent,method:Jt.method,content:Jt.content,stream:Jt.stream,headers:re,timeout:ue,writeStream:Jt.writeStream,customResponse:Jt.customResponse,ctx:Jt.ctx||this.ctx}}},he.request=yt.default.mark(function Jt(re){var se,pe,ue,Re;return yt.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return se=this.createRequest(re),pe=void 0,ue=void 0,Fe.prev=3,Fe.next=6,this.urllib.request(se.url,se.params);case 6:pe=Fe.sent,lt("response %s %s, got %s, headers: %j",re.method,se.url,pe.status,pe.headers),Fe.next=13;break;case 10:Fe.prev=10,Fe.t0=Fe.catch(3),ue=Fe.t0;case 13:if(Re=void 0,!pe||!re.successStatuses||re.successStatuses.indexOf(pe.status)!==-1){Fe.next=26;break}return Fe.next=17,this.requestError(pe);case 17:if(Re=Fe.sent,Re.code!=="RequestTimeTooSkewed"){Fe.next=23;break}return this.options.amendTimeSkewed=+new Date(Re.serverTime)-new Date,Fe.next=22,this.request(re);case 22:return Fe.abrupt("return",Fe.sent);case 23:Re.params=re,Fe.next=30;break;case 26:if(!ue){Fe.next=30;break}return Fe.next=29,this.requestError(ue);case 29:Re=Fe.sent;case 30:if(!Re){Fe.next=32;break}throw Re;case 32:if(!re.xmlResponse){Fe.next=36;break}return Fe.next=35,this.parseXML(pe.data);case 35:pe.data=Fe.sent;case 36:return Fe.abrupt("return",pe);case 37:case"end":return Fe.stop()}},Jt,this,[[3,10]])}),he._getResource=function(Jt){var re="/";return Jt.bucket&&(re+=Jt.bucket+"/"),Jt.object&&(re+=Jt.object),re},he._isIP=function(Jt){return Pe._isIP(Jt)},he._escape=function(Jt){return Vt.encodeURIComponent(Jt).replace(/%2F/g,"/")},he._getReqUrl=function(Jt){var re={};ct(this.options.endpoint).to(re);var se=this._isIP(re.hostname),pe=this.options.cname;!Jt.bucket||pe||se||(re.host=Jt.bucket+"."+re.host);var ue="/";Jt.bucket&&se&&(ue+=Jt.bucket+"/"),Jt.object&&(ue+=this._escape(Jt.object).replace(/\+/g,"%2B")),re.pathname=ue;var Re={};if(Jt.query&&Ut(Re,Jt.query),Jt.subres){var Fe={};qt.string(Jt.subres)?Fe[Jt.subres]="":qt.array(Jt.subres)?Jt.subres.forEach(function(Qe){Fe[Qe]=""}):Fe=Jt.subres,Ut(Re,Fe)}return re.query=Re,Nt.format(re)},he._getUserAgent=function(){var Jt=Ot&&Ot.browser?"js":"nodejs",re="aliyun-sdk-"+Jt+"/"+ge.version,se=te.description;return!se&&Ot&&(se="Node.js "+Ot.version.slice(1)+" on "+Ot.platform+" "+Ot.arch),this._checkUserAgent(re+" "+se)},he._checkUserAgent=function(Jt){return Jt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},he.checkBrowserAndVersion=function(Jt,re){return Ne.name===Jt&&Ne.version.split(".")[0]===re},he.parseXML=function(Jt){return function(re){jt.isBuffer(Jt)&&(Jt=Jt.toString()),gt.parseString(Jt,{explicitRoot:!1,explicitArray:!1},re)}},he.requestError=yt.default.mark(function Jt(re){var se,pe,ue,Re;return yt.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(se=null,re.data&&re.data.length){Fe.next=5;break}re.status===-1||re.status===-2?(se=new Error(re.message),se.name=re.name,se.status=re.status,se.code=re.name):(re.status===404?(se=new Error("Object not exists"),se.name="NoSuchKeyError",se.status=404,se.code="NoSuchKey"):re.status===412?(se=new Error("Pre condition failed"),se.name="PreconditionFailedError",se.status=412,se.code="PreconditionFailed"):(se=new Error("Unknow error, status: "+re.status),se.name="UnknowError",se.status=re.status),se.requestId=re.headers["x-oss-request-id"],se.host=""),Fe.next=30;break;case 5:return pe=String(re.data),lt("request response error data: %s",pe),ue=void 0,Fe.prev=8,Fe.next=11,this.parseXML(pe)||{};case 11:ue=Fe.sent,Fe.next=21;break;case 14:return Fe.prev=14,Fe.t0=Fe.catch(8),lt(pe),Fe.t0.message+=` raw xml: `+pe,Fe.t0.status=re.status,Fe.t0.requestId=re.headers["x-oss-request-id"],Fe.abrupt("return",Fe.t0);case 21:Re=ue.Message||"unknow request error, status: "+re.status,ue.Condition&&(Re+=" (condition: "+ue.Condition+")"),se=new Error(Re),se.name=ue.Code?ue.Code+"Error":"UnknowError",se.status=re.status,se.code=ue.Code,se.requestId=ue.RequestId,se.hostId=ue.HostId,se.serverTime=ue.ServerTime;case 30:return lt("generate error %j",se),Fe.abrupt("return",se);case 32:case"end":return Fe.stop()}},Jt,this,[[8,14]])})}).call(this,wt("_process"),wt("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(ct){return ct&&ct.__esModule?ct:{default:ct}}function Ct(ct,ft){if(!(this instanceof Ct))return new Ct(ct,ft);ut.call(this,ft),this.file=ct,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var Mt=wt("babel-runtime/core-js/array/from"),Bt=jt(Mt),St=wt("babel-runtime/regenerator"),kt=jt(St),xt=wt("is-type-of"),Dt=wt("util"),yt=wt("path"),et=wt("mime"),tt=wt("copy-to"),lt=Zt;lt.multipartUpload=kt.default.mark(function ct(ft,gt,Lt){var Rt,Ut,Nt,qt,te,Vt,de,ge,be;return kt.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(this.resetCancelFlag(),Lt=Lt||{},!Lt.checkpoint||!Lt.checkpoint.uploadId){Ne.next=6;break}return Ne.next=5,this._resumeMultipart(Lt.checkpoint,Lt);case 5:return Ne.abrupt("return",Ne.sent);case 6:return Rt=102400,Lt.mime||(xt.file(gt)?Lt.mime=et.getType(yt.extname(gt.name)):xt.blob(gt)?Lt.mime=gt.type:Lt.mime=et.getType(yt.extname(gt))),Lt.headers=Lt.headers||{},this._convertMetaToHeaders(Lt.meta,Lt.headers),Ne.next=12,this._getFileSize(gt);case 12:if(!((Ut=Ne.sent)0&&tt(qt).to(Vt),de=this._divideParts(Rt,Ut),ge=de.length,be=!1,Ne=kt.default.mark(function Qe(Ae,_e){var Le,Oe,He;return kt.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(Ae.isCancel()){ie.next=21;break}return ie.prev=1,Le=de[_e-1],Oe={stream:Ae._createStream(Lt,Le.start,Le.end),size:Le.end-Le.start},ie.next=6,Ae._uploadPart(te,Nt,_e,Oe);case 6:if(He=ie.sent,Ae.isCancel()||be){ie.next=13;break}if(ft.doneParts.push({number:_e,etag:He.res.headers.etag}),Vt.push({number:_e,etag:He.res.headers.etag}),!gt||!gt.progress){ie.next=13;break}return ie.next=13,gt.progress(qt.length/ge,ft,He.res);case 13:ie.next=21;break;case 15:if(ie.prev=15,ie.t0=ie.catch(1),Ae.isCancel()){ie.next=21;break}throw Ae.cancel(),ie.t0.partNum=_e,ie.t0;case 21:case"end":return ie.stop()}},Qe,this,[[1,15]])}),Ge=(0,Bt.default)(new Array(ge),function(Qe,Ae){return Ae+1}),Pe=Vt.map(function(Qe){return Qe.number}),ze=Ge.filter(function(Qe){return Pe.indexOf(Qe)<0}),he=5,Jt=gt.parallel||he,!this.checkBrowserAndVersion("Internet Explorer","10")&&Jt!==1){Fe.next=26;break}re=0;case 16:if(!(re0)){Fe.next=37;break}throw this.resetCancelFlag(),Re=ue[0],Re.message="Failed to upload some parts with error: "+Re.toString()+" part_num: "+Re.partNum,Re;case 37:if(!this.isCancel()){Fe.next=40;break}throw se=null,this._makeCancelEvent();case 40:return Fe.next=42,this.completeMultipartUpload(te,Nt,Vt,gt);case 42:return Fe.abrupt("return",Fe.sent);case 43:case"end":return Fe.stop()}},ct,this)}),xt.file=function(ct){return typeof File!="undefined"&&ct instanceof File},xt.blob=function(ct){return typeof Blob!="undefined"&&ct instanceof Blob},lt._getFileSize=kt.default.mark(function ct(ft){var gt;return kt.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(!xt.buffer(ft)){Lt.next=4;break}return Lt.abrupt("return",ft.length);case 4:if(!xt.blob(ft)&&!xt.file(ft)){Lt.next=6;break}return Lt.abrupt("return",ft.size);case 6:if(!xt.string(ft)){Lt.next=11;break}return Lt.next=9,this._statFile(ft);case 9:return gt=Lt.sent,Lt.abrupt("return",gt.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return Lt.stop()}},ct,this)});var ot=wt("stream"),ut=ot.Readable;Dt.inherits(Ct,ut),Ct.prototype.readFileAndPush=function(ct){if(this.fileBuffer)for(var ft=!0;ft&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:Lt,this.start=Lt,ft=this.push(this.fileBuffer.slice(gt,Lt))}},Ct.prototype._read=function(ct){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);ct=ct||16384;var ft=this;this.reader.onload=function(gt){ft.fileBuffer=new Ot(new Uint8Array(gt.target.result)),ft.file=null,ft.readFileAndPush(ct)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ct)},lt._createStream=function(ct,ft,gt){if(xt.blob(ct)||xt.file(ct))return new Ct(ct.slice(ft,gt));throw new Error("_createStream requires File/String.")},lt._getPartSize=function(ct,ft){return ft?Math.max(Math.ceil(ct/1e4),ft):1048576},lt._divideParts=function(ct,ft){for(var gt=Math.ceil(ct/ft),Lt=[],Rt=0;Rt `,Lt.quiet?Rt+=` true `:Rt+=` false `,Ut=0;Ut"+kt.escape(this._objectName(gt[Ut]))+` `;return Rt+="",St("delete multi objects: %s",Rt),Lt.subres="delete",Nt=this._objectRequestParams("POST","",Lt),Nt.mime="xml",Nt.content=Rt,Nt.xmlResponse=!0,Nt.successStatuses=[200],de.next=14,this.request(Nt);case 14:return qt=de.sent,te=qt.data,Vt=te&&te.Deleted||null,Vt&&(Array.isArray(Vt)||(Vt=[Vt]),Vt=Vt.map(function(ge){return ge.Key})),de.abrupt("return",{res:qt.res,deleted:Vt});case 19:case"end":return de.stop()}},ft,this)}),ct.copy=Bt.default.mark(function ft(gt,Lt,Rt){var Ut,Nt,qt;return Bt.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return Rt=Rt||{},Rt.headers=Rt.headers||{},(0,Ct.default)(Rt.headers).forEach(function(Vt){Rt.headers["x-oss-copy-source-"+Vt.toLowerCase()]=Rt.headers[Vt]}),Rt.meta&&(Rt.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Rt.meta,Rt.headers),Lt=Lt[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(Lt):"/"+encodeURIComponent(Lt.slice(1)),Rt.headers["x-oss-copy-source"]=Lt,Ut=this._objectRequestParams("PUT",gt,Rt),Ut.xmlResponse=!0,Ut.successStatuses=[200,304],te.next=12,this.request(Ut);case 12:return Nt=te.sent,qt=Nt.data,qt&&(qt={etag:qt.ETag,lastModified:qt.LastModified}),te.abrupt("return",{data:qt,res:Nt.res});case 16:case"end":return te.stop()}},ft,this)}),ct.putMeta=Bt.default.mark(function ft(gt,Lt,Rt){return Bt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,this.copy(gt,gt,{meta:Lt||{},timeout:Rt&&Rt.timeout,ctx:Rt&&Rt.ctx});case 2:return Ut.abrupt("return",Ut.sent);case 3:case"end":return Ut.stop()}},ft,this)}),ct.list=Bt.default.mark(function ft(gt,Lt){var Rt,Ut,Nt,qt,te;return Bt.default.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Rt=this._objectRequestParams("GET","",Lt),Rt.query=gt,Rt.xmlResponse=!0,Rt.successStatuses=[200],Vt.next=6,this.request(Rt);case 6:return Ut=Vt.sent,Nt=Ut.data.Contents,qt=this,Nt&&(Array.isArray(Nt)||(Nt=[Nt]),Nt=Nt.map(function(de){return{name:de.Key,url:qt._objectUrl(de.Key),lastModified:de.LastModified,etag:de.ETag,type:de.Type,size:Number(de.Size),storageClass:de.StorageClass,owner:{id:de.Owner.ID,displayName:de.Owner.DisplayName}}})),te=Ut.data.CommonPrefixes||null,te&&(Array.isArray(te)||(te=[te]),te=te.map(function(de){return de.Prefix})),Vt.abrupt("return",{res:Ut.res,objects:Nt,prefixes:te,nextMarker:Ut.data.NextMarker||null,isTruncated:Ut.data.IsTruncated==="true"});case 13:case"end":return Vt.stop()}},ft,this)}),ct.putACL=Bt.default.mark(function ft(gt,Lt,Rt){var Ut,Nt;return Bt.default.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return Rt=Rt||{},Rt.subres="acl",Rt.headers=Rt.headers||{},Rt.headers["x-oss-object-acl"]=Lt,gt=this._objectName(gt),Ut=this._objectRequestParams("PUT",gt,Rt),Ut.successStatuses=[200],qt.next=9,this.request(Ut);case 9:return Nt=qt.sent,qt.abrupt("return",{res:Nt.res});case 11:case"end":return qt.stop()}},ft,this)}),ct.getACL=Bt.default.mark(function ft(gt,Lt){var Rt,Ut;return Bt.default.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Lt=Lt||{},Lt.subres="acl",gt=this._objectName(gt),Rt=this._objectRequestParams("GET",gt,Lt),Rt.successStatuses=[200],Rt.xmlResponse=!0,Nt.next=8,this.request(Rt);case 8:return Ut=Nt.sent,Nt.abrupt("return",{acl:Ut.data.AccessControlList.Grant,owner:{id:Ut.data.Owner.ID,displayName:Ut.data.Owner.DisplayName},res:Ut.res});case 10:case"end":return Nt.stop()}},ft,this)}),ct.restore=Bt.default.mark(function ft(gt,Lt){var Rt,Ut;return Bt.default.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Lt=Lt||{},Lt.subres="restore",Rt=this._objectRequestParams("POST",gt,Lt),Rt.successStatuses=[202],Nt.next=6,this.request(Rt);case 6:return Ut=Nt.sent,Nt.abrupt("return",{res:Ut.res});case 8:case"end":return Nt.stop()}},ft,this)}),ct.signatureUrl=function(ft,gt){gt=gt||{},ft=this._objectName(ft),gt.method=gt.method||"GET";var Lt=kt.timestamp()+(gt.expires||1800),Rt={bucket:this.options.bucket,object:ft},Ut=this._getResource(Rt);this.options.stsToken&&(gt["security-token"]=this.options.stsToken);var Nt=ut._signatureForURL(this.options.accessKeySecret,gt,Ut,Lt),qt=yt.parse(this._getReqUrl(Rt));return qt.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Lt,Signature:Nt.Signature},et(Nt.subResource).to(qt.query),qt.format()},ct.getObjectUrl=function(ft,gt){return gt?gt[gt.length-1]!=="/"&&(gt+="/"):gt=this.options.endpoint.format(),gt+this._escape(this._objectName(ft))},ct._objectUrl=function(ft){return this._getReqUrl({bucket:this.options.bucket,object:ft})},ct.generateObjectUrl=function(ft,gt){if(gt)gt[gt.length-1]!=="/"&&(gt+="/");else{gt=this.options.endpoint.format();var Lt=yt.parse(gt),Rt=this.options.bucket;Lt.hostname=Rt+"."+Lt.hostname,Lt.host=Rt+"."+Lt.host,gt=Lt.format()}return gt+this._escape(this._objectName(ft))},ct._objectRequestParams=function(ft,gt,Lt){if(!this.options.bucket)throw new Error("Please create a bucket first");Lt=Lt||{},gt=this._objectName(gt);var Rt={object:gt,bucket:this.options.bucket,method:ft,subres:Lt&&Lt.subres,timeout:Lt&&Lt.timeout,ctx:Lt&&Lt.ctx};return Lt.headers&&(Rt.headers={},et(Lt.headers).to(Rt.headers)),Rt},ct._objectName=function(ft){return ft.replace(/^\/+/,"")},ct._statFile=function(ft){return function(gt){xt.stat(ft,gt)}},ct._convertMetaToHeaders=function(ft,gt){ft&&(0,Ct.default)(ft).forEach(function(Lt){gt["x-oss-meta-"+Lt]=ft[Lt]})},ct._deleteFileSafe=function(ft){return function(gt){xt.exists(ft,function(Lt){Lt?xt.unlink(ft,function(Rt){Rt&&St("unlink %j error: %s",ft,Rt),gt()}):gt()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(wt,Qt,Zt){"use strict";Zt.version="5.3.1"},{}],6:[function(wt,Qt,Zt){"use strict";function Ot(tt){return tt&&tt.__esModule?tt:{default:tt}}function jt(tt){return tt&&typeof tt.next=="function"&&typeof tt.throw=="function"}function Ct(tt){if(!tt)return!1;var lt=tt.constructor;return!!lt&&(lt.name==="GeneratorFunction"||lt.displayName==="GeneratorFunction"||jt(lt.prototype)||jt(tt.prototype))}function Mt(tt,lt){var ot=new tt(lt),ut=(0,Dt.default)(ot),ct=(0,Dt.default)((0,kt.default)(ot));ut.concat(ct).forEach(function(ft){Ct(ot[ft])?this[ft]=yt.wrap(ot[ft]).bind(ot):this[ft]=ot[ft]},this)}function Bt(tt){if(!(this instanceof Bt))return new Bt(tt);Mt.call(this,et,tt)}var St=wt("babel-runtime/core-js/object/get-prototype-of"),kt=Ot(St),xt=wt("babel-runtime/core-js/object/keys"),Dt=Ot(xt),yt=wt("co"),et=wt("./client");Qt.exports=Bt,Bt.STS=function tt(lt){if(!(this instanceof tt))return new tt(lt);Mt.call(this,et.STS,lt)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(kt){return kt&&kt.__esModule?kt:{default:kt}}var Ct=wt("babel-runtime/core-js/object/keys"),Mt=jt(Ct),Bt=wt("babel-runtime/core-js/json/stringify"),St=jt(Bt);Zt.encodeCallback=function(kt,xt){if(kt.headers=kt.headers||{},!Object.prototype.hasOwnProperty.call(kt.headers,"x-oss-callback")&&xt.callback){var Dt={callbackUrl:encodeURI(xt.callback.url),callbackBody:xt.callback.body};xt.callback.host&&(Dt.callbackHost=xt.callback.host),xt.callback.contentType&&(Dt.callbackBodyType=xt.callback.contentType);var yt=new Ot((0,St.default)(Dt)).toString("base64");if(kt.headers["x-oss-callback"]=yt,xt.callback.customValue){var et={};(0,Mt.default)(xt.callback.customValue).forEach(function(tt){et["x:"+tt]=xt.callback.customValue[tt]}),kt.headers["x-oss-callback-var"]=new Ot((0,St.default)(et)).toString("base64")}}}}).call(this,wt("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(wt,Qt,Zt){"use strict";var Ot=wt("babel-runtime/regenerator"),jt=function(St){return St&&St.__esModule?St:{default:St}}(Ot),Ct=wt("copy-to"),Mt=wt("./callback"),Bt=Zt;Bt.listUploads=jt.default.mark(function St(kt,xt){var Dt,yt,et,tt;return jt.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return xt=xt||{},Dt={},Ct(xt).to(Dt),Dt.subres="uploads",yt=this._objectRequestParams("GET","",Dt),yt.query=kt,yt.xmlResponse=!0,yt.successStatuses=[200],lt.next=10,this.request(yt);case 10:return et=lt.sent,tt=et.data.Upload||[],Array.isArray(tt)||(tt=[tt]),tt=tt.map(function(ot){return{name:ot.Key,uploadId:ot.UploadId,initiated:ot.Initiated}}),lt.abrupt("return",{res:et.res,uploads:tt,bucket:et.data.Bucket,nextKeyMarker:et.data.NextKeyMarker,nextUploadIdMarker:et.data.NextUploadIdMarker,isTruncated:et.data.IsTruncated==="true"});case 15:case"end":return lt.stop()}},St,this)}),Bt.listParts=jt.default.mark(function St(kt,xt,Dt,yt){var et,tt,lt;return jt.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return yt=yt||{},et={},Ct(yt).to(et),et.subres={uploadId:xt},tt=this._objectRequestParams("GET",kt,et),tt.query=Dt,tt.xmlResponse=!0,tt.successStatuses=[200],ot.next=10,this.request(tt);case 10:return lt=ot.sent,ot.abrupt("return",{res:lt.res,uploadId:lt.data.UploadId,bucket:lt.data.Bucket,name:lt.data.Key,partNumberMarker:lt.data.PartNumberMarker,nextPartNumberMarker:lt.data.NextPartNumberMarker,maxParts:lt.data.MaxParts,isTruncated:lt.data.IsTruncated,parts:lt.data.Part||[]});case 12:case"end":return ot.stop()}},St,this)}),Bt.abortMultipartUpload=jt.default.mark(function St(kt,xt,Dt){var yt,et,tt;return jt.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return this.cancel(),Dt=Dt||{},yt={},Ct(Dt).to(yt),yt.subres={uploadId:xt},et=this._objectRequestParams("DELETE",kt,yt),et.successStatuses=[204],lt.next=9,this.request(et);case 9:return tt=lt.sent,lt.abrupt("return",{res:tt.res});case 11:case"end":return lt.stop()}},St,this)}),Bt.initMultipartUpload=jt.default.mark(function St(kt,xt){var Dt,yt,et;return jt.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return xt=xt||{},Dt={},Ct(xt).to(Dt),Dt.headers=Dt.headers||{},this._convertMetaToHeaders(xt.meta,Dt.headers),Dt.subres="uploads",yt=this._objectRequestParams("POST",kt,Dt),yt.mime=xt.mime,yt.xmlResponse=!0,yt.successStatuses=[200],tt.next=12,this.request(yt);case 12:return et=tt.sent,tt.abrupt("return",{res:et.res,bucket:et.data.Bucket,name:et.data.Key,uploadId:et.data.UploadId});case 14:case"end":return tt.stop()}},St,this)}),Bt.uploadPart=jt.default.mark(function St(kt,xt,Dt,yt,et,tt,lt){var ot;return jt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ot={stream:this._createStream(yt,et,tt),size:tt-et},ut.next=3,this._uploadPart(kt,xt,Dt,ot,lt);case 3:return ut.abrupt("return",ut.sent);case 4:case"end":return ut.stop()}},St,this)}),Bt.completeMultipartUpload=jt.default.mark(function St(kt,xt,Dt,yt){var et,tt,lt,ot,ut,ct,ft,gt;return jt.default.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:for(et=Dt.concat().sort(function(Rt,Ut){return Rt.number-Ut.number}).filter(function(Rt,Ut,Nt){return!Ut||Rt.number!==Nt[Ut-1].number}),tt=` `,lt=0;lt `,tt+=""+ot.number+` `,tt+=""+ot.etag+` `,tt+=` `;return tt+="",yt=yt||{},ut={},Ct(yt).to(ut),ut.subres={uploadId:xt},ct=this._objectRequestParams("POST",kt,ut),Mt.encodeCallback(ct,ut),ct.mime="xml",ct.content=tt,ct.headers&&ct.headers["x-oss-callback"]||(ct.xmlResponse=!0),ct.successStatuses=[200],Lt.next=16,this.request(ct);case 16:return ft=Lt.sent,gt={res:ft.res,bucket:ct.bucket,name:kt,etag:ft.res.headers.etag},ct.headers&&ct.headers["x-oss-callback"]&&(gt.data=JSON.parse(ft.data.toString())),Lt.abrupt("return",gt);case 20:case"end":return Lt.stop()}},St,this)}),Bt._uploadPart=jt.default.mark(function St(kt,xt,Dt,yt,et){var tt,lt,ot;return jt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return et=et||{},tt={},Ct(et).to(tt),tt.headers={"Content-Length":yt.size},tt.subres={partNumber:Dt,uploadId:xt},lt=this._objectRequestParams("PUT",kt,tt),lt.mime=tt.mime,lt.stream=yt.stream,lt.successStatuses=[200],ut.next=11,this.request(lt);case 11:return ot=ut.sent,yt.stream=null,lt.stream=null,ut.abrupt("return",{name:kt,etag:ot.res.headers.etag,res:ot.res});case 15:case"end":return ut.stop()}},St,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(Dt){return Dt&&Dt.__esModule?Dt:{default:Dt}}var Ct=wt("babel-runtime/core-js/json/stringify"),Mt=jt(Ct),Bt=wt("babel-runtime/core-js/object/keys"),St=jt(Bt),kt=wt("./../../shims/crypto/crypto.js"),xt=wt("is-type-of");Zt.buildCanonicalizedResource=function(Dt,yt){var et=""+Dt,tt="?";if(xt.string(yt)&&yt.trim()!=="")et+=tt+yt;else if(xt.array(yt))yt.sort(),et+=tt+yt.join("&");else if(yt){var lt=function(ut,ct){return ut[0]>ct[0]?1:ut[0]0)throw new Error("Invalid string. Length must be a multiple of 4");var ct=ot.indexOf("=");return ct===-1&&(ct=ut),[ct,ct===ut?0:4-ct%4]}function jt(ot){var ut=Ot(ot),ct=ut[0],ft=ut[1];return 3*(ct+ft)/4-ft}function Ct(ot,ut,ct){return 3*(ut+ct)/4-ct}function Mt(ot){for(var ut,ct=Ot(ot),ft=ct[0],gt=ct[1],Lt=new yt(Ct(ot,ft,gt)),Rt=0,Ut=gt>0?ft-4:ft,Nt=0;Nt>16&255,Lt[Rt++]=ut>>8&255,Lt[Rt++]=255&ut;return gt===2&&(ut=Dt[ot.charCodeAt(Nt)]<<2|Dt[ot.charCodeAt(Nt+1)]>>4,Lt[Rt++]=255&ut),gt===1&&(ut=Dt[ot.charCodeAt(Nt)]<<10|Dt[ot.charCodeAt(Nt+1)]<<4|Dt[ot.charCodeAt(Nt+2)]>>2,Lt[Rt++]=ut>>8&255,Lt[Rt++]=255&ut),Lt}function Bt(ot){return xt[ot>>18&63]+xt[ot>>12&63]+xt[ot>>6&63]+xt[63&ot]}function St(ot,ut,ct){for(var ft,gt=[],Lt=ut;LtRt?Rt:Lt+16383));return ft===1?(ut=ot[ct-1],gt.push(xt[ut>>2]+xt[ut<<4&63]+"==")):ft===2&&(ut=(ot[ct-2]<<8)+ot[ct-1],gt.push(xt[ut>>10]+xt[ut>>4&63]+xt[ut<<2&63]+"=")),gt.join("")}Zt.byteLength=jt,Zt.toByteArray=Mt,Zt.fromByteArray=kt;for(var xt=[],Dt=[],yt=typeof Uint8Array!="undefined"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,lt=et.length;tt1&&re[1]||""}function et(Jt){var re=Dt.match(Jt);return re&&re.length>1&&re[2]||""}var tt,lt=yt(/(ipod|iphone|ipad)/i).toLowerCase(),ot=/like android/i.test(Dt),ut=!ot&&/android/i.test(Dt),ct=/nexus\s*[0-6]\s*/i.test(Dt),ft=!ct&&/nexus\s*[0-9]+/i.test(Dt),gt=/CrOS/.test(Dt),Lt=/silk/i.test(Dt),Rt=/sailfish/i.test(Dt),Ut=/tizen/i.test(Dt),Nt=/(web|hpw)os/i.test(Dt),qt=/windows phone/i.test(Dt),te=(/SamsungBrowser/i.test(Dt),!qt&&/windows/i.test(Dt)),Vt=!lt&&!Lt&&/macintosh/i.test(Dt),de=!ut&&!Rt&&!Ut&&!Nt&&/linux/i.test(Dt),ge=et(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),be=yt(/version\/(\d+(\.\d+)?)/i),Ne=/tablet/i.test(Dt)&&!/tablet pc/i.test(Dt),Ge=!Ne&&/[^-]mobi/i.test(Dt),Pe=/xbox/i.test(Dt);/opera/i.test(Dt)?tt={name:"Opera",opera:kt,version:be||yt(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(Dt)?tt={name:"Opera",opera:kt,version:yt(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||be}:/SamsungBrowser/i.test(Dt)?tt={name:"Samsung Internet for Android",samsungBrowser:kt,version:be||yt(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(Dt)?tt={name:"Opera Coast",coast:kt,version:be||yt(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(Dt)?tt={name:"Yandex Browser",yandexbrowser:kt,version:be||yt(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(Dt)?tt={name:"UC Browser",ucbrowser:kt,version:yt(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(Dt)?tt={name:"Maxthon",maxthon:kt,version:yt(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(Dt)?tt={name:"Epiphany",epiphany:kt,version:yt(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(Dt)?tt={name:"Puffin",puffin:kt,version:yt(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(Dt)?tt={name:"Sleipnir",sleipnir:kt,version:yt(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(Dt)?tt={name:"K-Meleon",kMeleon:kt,version:yt(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:qt?(tt={name:"Windows Phone",osname:"Windows Phone",windowsphone:kt},ge?(tt.msedge=kt,tt.version=ge):(tt.msie=kt,tt.version=yt(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(Dt)?tt={name:"Internet Explorer",msie:kt,version:yt(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:gt?tt={name:"Chrome",osname:"Chrome OS",chromeos:kt,chromeBook:kt,chrome:kt,version:yt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(Dt)?tt={name:"Microsoft Edge",msedge:kt,version:ge}:/vivaldi/i.test(Dt)?tt={name:"Vivaldi",vivaldi:kt,version:yt(/vivaldi\/(\d+(\.\d+)?)/i)||be}:Rt?tt={name:"Sailfish",osname:"Sailfish OS",sailfish:kt,version:yt(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(Dt)?tt={name:"SeaMonkey",seamonkey:kt,version:yt(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(Dt)?(tt={name:"Firefox",firefox:kt,version:yt(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(Dt)&&(tt.firefoxos=kt,tt.osname="Firefox OS")):Lt?tt={name:"Amazon Silk",silk:kt,version:yt(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(Dt)?tt={name:"PhantomJS",phantom:kt,version:yt(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(Dt)?tt={name:"SlimerJS",slimer:kt,version:yt(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(Dt)||/rim\stablet/i.test(Dt)?tt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:kt,version:be||yt(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Nt?(tt={name:"WebOS",osname:"WebOS",webos:kt,version:be||yt(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(Dt)&&(tt.touchpad=kt)):/bada/i.test(Dt)?tt={name:"Bada",osname:"Bada",bada:kt,version:yt(/dolfin\/(\d+(\.\d+)?)/i)}:Ut?tt={name:"Tizen",osname:"Tizen",tizen:kt,version:yt(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||be}:/qupzilla/i.test(Dt)?tt={name:"QupZilla",qupzilla:kt,version:yt(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||be}:/chromium/i.test(Dt)?tt={name:"Chromium",chromium:kt,version:yt(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||be}:/chrome|crios|crmo/i.test(Dt)?tt={name:"Chrome",chrome:kt,version:yt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ut?tt={name:"Android",version:be}:/safari|applewebkit/i.test(Dt)?(tt={name:"Safari",safari:kt},be&&(tt.version=be)):lt?(tt={name:lt=="iphone"?"iPhone":lt=="ipad"?"iPad":"iPod"},be&&(tt.version=be)):tt=/googlebot/i.test(Dt)?{name:"Googlebot",googlebot:kt,version:yt(/googlebot\/(\d+(\.\d+))/i)||be}:{name:yt(/^(.*)\/(.*) /),version:et(/^(.*)\/(.*) /)},!tt.msedge&&/(apple)?webkit/i.test(Dt)?(/(apple)?webkit\/537\.36/i.test(Dt)?(tt.name=tt.name||"Blink",tt.blink=kt):(tt.name=tt.name||"Webkit",tt.webkit=kt),!tt.version&&be&&(tt.version=be)):!tt.opera&&/gecko\//i.test(Dt)&&(tt.name=tt.name||"Gecko",tt.gecko=kt,tt.version=tt.version||yt(/gecko\/(\d+(\.\d+)?)/i)),tt.windowsphone||!ut&&!tt.silk?!tt.windowsphone&<?(tt[lt]=kt,tt.ios=kt,tt.osname="iOS"):Vt?(tt.mac=kt,tt.osname="macOS"):Pe?(tt.xbox=kt,tt.osname="Xbox"):te?(tt.windows=kt,tt.osname="Windows"):de&&(tt.linux=kt,tt.osname="Linux"):(tt.android=kt,tt.osname="Android");var ze="";tt.windows?ze=function(Jt){switch(Jt){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(yt(/Windows ((NT|XP)( \d\d?.\d)?)/i)):tt.windowsphone?ze=yt(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):tt.mac?(ze=yt(/Mac OS X (\d+([_\.\s]\d+)*)/i),ze=ze.replace(/[_\s]/g,".")):lt?(ze=yt(/os (\d+([_\s]\d+)*) like mac os x/i),ze=ze.replace(/[_\s]/g,".")):ut?ze=yt(/android[ \/-](\d+(\.\d+)*)/i):tt.webos?ze=yt(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):tt.blackberry?ze=yt(/rim\stablet\sos\s(\d+(\.\d+)*)/i):tt.bada?ze=yt(/bada\/(\d+(\.\d+)*)/i):tt.tizen&&(ze=yt(/tizen[\/\s](\d+(\.\d+)*)/i)),ze&&(tt.osversion=ze);var he=!tt.windows&&ze.split(".")[0];return Ne||ft||lt=="ipad"||ut&&(he==3||he>=4&&!Ge)||tt.silk?tt.tablet=kt:(Ge||lt=="iphone"||lt=="ipod"||ut||ct||tt.blackberry||tt.webos||tt.bada)&&(tt.mobile=kt),tt.msedge||tt.msie&&tt.version>=10||tt.yandexbrowser&&tt.version>=15||tt.vivaldi&&tt.version>=1||tt.chrome&&tt.version>=20||tt.samsungBrowser&&tt.version>=4||tt.firefox&&tt.version>=20||tt.safari&&tt.version>=6||tt.opera&&tt.version>=10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]>=6||tt.blackberry&&tt.version>=10.1||tt.chromium&&tt.version>=20?tt.a=kt:tt.msie&&tt.version<10||tt.chrome&&tt.version<20||tt.firefox&&tt.version<20||tt.safari&&tt.version<6||tt.opera&&tt.version<10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]<6||tt.chromium&&tt.version<20?tt.c=kt:tt.x=kt,tt}function jt(Dt){return Dt.split(".").length}function Ct(Dt,yt){var et,tt=[];if(Array.prototype.map)return Array.prototype.map.call(Dt,yt);for(et=0;et=0;){if(et[0][yt]>et[1][yt])return 1;if(et[0][yt]!==et[1][yt])return-1;if(yt===0)return 0}}function Bt(Dt,yt,et){var tt=xt;typeof yt=="string"&&(et=yt,yt=void 0),yt===void 0&&(yt=!1),et&&(tt=Ot(et));var lt=""+tt.version;for(var ot in Dt)if(Dt.hasOwnProperty(ot)&&tt[ot]){if(typeof Dt[ot]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ot+": "+String(Dt));return Mt([lt,Dt[ot]])<0}return yt}function St(Dt,yt,et){return!Bt(Dt,yt,et)}var kt=!0,xt=Ot(typeof navigator!="undefined"&&navigator.userAgent||"");return xt.test=function(Dt){for(var yt=0;yt=this.charLength-this.charReceived?this.charLength-this.charReceived:xt.length;if(xt.copy(this.charBuffer,this.charReceived,0,yt),this.charReceived+=yt,this.charReceived=55296&&tt<=56319)){if(this.charReceived=this.charLength=0,xt.length===0)return Dt;break}this.charLength+=this.surrogateSize,Dt=""}this.detectIncompleteChar(xt);var et=xt.length;this.charLength&&(xt.copy(this.charBuffer,0,xt.length-this.charReceived,et),et-=this.charReceived),Dt+=xt.toString(this.encoding,0,et);var et=Dt.length-1,tt=Dt.charCodeAt(et);if(tt>=55296&&tt<=56319){var lt=this.surrogateSize;return this.charLength+=lt,this.charReceived+=lt,this.charBuffer.copy(this.charBuffer,lt,0,lt),xt.copy(this.charBuffer,0,0,lt),Dt.substring(0,et)}return Dt},kt.prototype.detectIncompleteChar=function(xt){for(var Dt=xt.length>=3?3:xt.length;Dt>0;Dt--){var yt=xt[xt.length-Dt];if(Dt==1&&yt>>5==6){this.charLength=2;break}if(Dt<=2&&yt>>4==14){this.charLength=3;break}if(Dt<=3&&yt>>3==30){this.charLength=4;break}}this.charReceived=Dt},kt.prototype.end=function(xt){var Dt="";if(xt&&xt.length&&(Dt=this.write(xt)),this.charReceived){var yt=this.charReceived,et=this.charBuffer,tt=this.encoding;Dt+=et.slice(0,yt).toString(tt)}return Dt}},{buffer:38}],38:[function(wt,Qt,Zt){(function(Ot){"use strict";function jt(){return Mt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ct(Pt,Et){if(jt()=jt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+jt().toString(16)+" bytes");return 0|Pt}function ot(Pt){return+Pt!=Pt&&(Pt=0),Mt.alloc(+Pt)}function ut(Pt,Et){if(Mt.isBuffer(Pt))return Pt.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Pt)||Pt instanceof ArrayBuffer))return Pt.byteLength;typeof Pt!="string"&&(Pt=""+Pt);var $t=Pt.length;if($t===0)return 0;for(var zt=!1;;)switch(Et){case"ascii":case"latin1":case"binary":return $t;case"utf8":case"utf-8":case void 0:return _e(Pt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*$t;case"hex":return $t>>>1;case"base64":return He(Pt).length;default:if(zt)return _e(Pt).length;Et=(""+Et).toLowerCase(),zt=!0}}function ct(Pt,Et,$t){var zt=!1;if((Et===void 0||Et<0)&&(Et=0),Et>this.length||(($t===void 0||$t>this.length)&&($t=this.length),$t<=0)||($t>>>=0,Et>>>=0,$t<=Et))return"";for(Pt||(Pt="utf8");;)switch(Pt){case"hex":return Pe(this,Et,$t);case"utf8":case"utf-8":return ge(this,Et,$t);case"ascii":return Ne(this,Et,$t);case"latin1":case"binary":return Ge(this,Et,$t);case"base64":return de(this,Et,$t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ze(this,Et,$t);default:if(zt)throw new TypeError("Unknown encoding: "+Pt);Pt=(Pt+"").toLowerCase(),zt=!0}}function ft(Pt,Et,$t){var zt=Pt[Et];Pt[Et]=Pt[$t],Pt[$t]=zt}function gt(Pt,Et,$t,zt,Gt){if(Pt.length===0)return-1;if(typeof $t=="string"?(zt=$t,$t=0):$t>2147483647?$t=2147483647:$t<-2147483648&&($t=-2147483648),$t=+$t,isNaN($t)&&($t=Gt?0:Pt.length-1),$t<0&&($t=Pt.length+$t),$t>=Pt.length){if(Gt)return-1;$t=Pt.length-1}else if($t<0){if(!Gt)return-1;$t=0}if(typeof Et=="string"&&(Et=Mt.from(Et,zt)),Mt.isBuffer(Et))return Et.length===0?-1:Lt(Pt,Et,$t,zt,Gt);if(typeof Et=="number")return Et&=255,Mt.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Gt?Uint8Array.prototype.indexOf.call(Pt,Et,$t):Uint8Array.prototype.lastIndexOf.call(Pt,Et,$t):Lt(Pt,[Et],$t,zt,Gt);throw new TypeError("val must be string, number or Buffer")}function Lt(Pt,Et,$t,zt,Gt){function le(qe,En){return ye===1?qe[En]:qe.readUInt16BE(En*ye)}var ye=1,Ue=Pt.length,We=Et.length;if(zt!==void 0&&((zt=String(zt).toLowerCase())==="ucs2"||zt==="ucs-2"||zt==="utf16le"||zt==="utf-16le")){if(Pt.length<2||Et.length<2)return-1;ye=2,Ue/=2,We/=2,$t/=2}var Ee;if(Gt){var Ze=-1;for(Ee=$t;EeUe&&($t=Ue-We),Ee=$t;Ee>=0;Ee--){for(var on=!0,nn=0;nnGt&&(zt=Gt):zt=Gt;var le=Et.length;if(le%2!=0)throw new TypeError("Invalid hex string");zt>le/2&&(zt=le/2);for(var ye=0;ye239?4:le>223?3:le>191?2:1;if(Gt+Ue<=$t){var We,Ee,Ze,on;switch(Ue){case 1:le<128&&(ye=le);break;case 2:We=Pt[Gt+1],(192&We)==128&&(on=(31&le)<<6|63&We)>127&&(ye=on);break;case 3:We=Pt[Gt+1],Ee=Pt[Gt+2],(192&We)==128&&(192&Ee)==128&&(on=(15&le)<<12|(63&We)<<6|63&Ee)>2047&&(on<55296||on>57343)&&(ye=on);break;case 4:We=Pt[Gt+1],Ee=Pt[Gt+2],Ze=Pt[Gt+3],(192&We)==128&&(192&Ee)==128&&(192&Ze)==128&&(on=(15&le)<<18|(63&We)<<12|(63&Ee)<<6|63&Ze)>65535&&on<1114112&&(ye=on)}}ye===null?(ye=65533,Ue=1):ye>65535&&(ye-=65536,zt.push(ye>>>10&1023|55296),ye=56320|1023&ye),zt.push(ye),Gt+=Ue}return be(zt)}function be(Pt){var Et=Pt.length;if(Et<=_t)return String.fromCharCode.apply(String,Pt);for(var $t="",zt=0;ztzt)&&($t=zt);for(var Gt="",le=Et;le<$t;++le)Gt+=Ae(Pt[le]);return Gt}function ze(Pt,Et,$t){for(var zt=Pt.slice(Et,$t),Gt="",le=0;le$t)throw new RangeError("Trying to access beyond buffer length")}function Jt(Pt,Et,$t,zt,Gt,le){if(!Mt.isBuffer(Pt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Et>Gt||EtPt.length)throw new RangeError("Index out of range")}function re(Pt,Et,$t,zt){Et<0&&(Et=65535+Et+1);for(var Gt=0,le=Math.min(Pt.length-$t,2);Gt>>8*(zt?Gt:1-Gt)}function se(Pt,Et,$t,zt){Et<0&&(Et=4294967295+Et+1);for(var Gt=0,le=Math.min(Pt.length-$t,4);Gt>>8*(zt?Gt:3-Gt)&255}function pe(Pt,Et,$t,zt,Gt,le){if($t+zt>Pt.length)throw new RangeError("Index out of range");if($t<0)throw new RangeError("Index out of range")}function ue(Pt,Et,$t,zt,Gt){return Gt||pe(Pt,Et,$t,4,34028234663852886e22,-34028234663852886e22),Yt.write(Pt,Et,$t,zt,23,4),$t+4}function Re(Pt,Et,$t,zt,Gt){return Gt||pe(Pt,Et,$t,8,17976931348623157e292,-17976931348623157e292),Yt.write(Pt,Et,$t,zt,52,8),$t+8}function Fe(Pt){if(Pt=Qe(Pt).replace(It,""),Pt.length<2)return"";for(;Pt.length%4!=0;)Pt+="=";return Pt}function Qe(Pt){return Pt.trim?Pt.trim():Pt.replace(/^\s+|\s+$/g,"")}function Ae(Pt){return Pt<16?"0"+Pt.toString(16):Pt.toString(16)}function _e(Pt,Et){Et=Et||1/0;for(var $t,zt=Pt.length,Gt=null,le=[],ye=0;ye55295&&$t<57344){if(!Gt){if($t>56319){(Et-=3)>-1&&le.push(239,191,189);continue}if(ye+1===zt){(Et-=3)>-1&&le.push(239,191,189);continue}Gt=$t;continue}if($t<56320){(Et-=3)>-1&&le.push(239,191,189),Gt=$t;continue}$t=65536+(Gt-55296<<10|$t-56320)}else Gt&&(Et-=3)>-1&&le.push(239,191,189);if(Gt=null,$t<128){if((Et-=1)<0)break;le.push($t)}else if($t<2048){if((Et-=2)<0)break;le.push($t>>6|192,63&$t|128)}else if($t<65536){if((Et-=3)<0)break;le.push($t>>12|224,$t>>6&63|128,63&$t|128)}else{if(!($t<1114112))throw new Error("Invalid code point");if((Et-=4)<0)break;le.push($t>>18|240,$t>>12&63|128,$t>>6&63|128,63&$t|128)}}return le}function Le(Pt){for(var Et=[],$t=0;$t>8,Gt=$t%256,le.push(Gt),le.push(zt);return le}function He(Pt){return At.toByteArray(Fe(Pt))}function ie(Pt,Et,$t,zt){for(var Gt=0;Gt=Et.length||Gt>=Pt.length);++Gt)Et[Gt+$t]=Pt[Gt];return Gt}function Tt(Pt){return Pt!==Pt}var At=wt("base64-js"),Yt=wt("ieee754"),oe=wt("isarray");Zt.Buffer=Mt,Zt.SlowBuffer=ot,Zt.INSPECT_MAX_BYTES=50,Mt.TYPED_ARRAY_SUPPORT=Ot.TYPED_ARRAY_SUPPORT!==void 0?Ot.TYPED_ARRAY_SUPPORT:function(){try{var Pt=new Uint8Array(1);return Pt.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Pt.foo()===42&&typeof Pt.subarray=="function"&&Pt.subarray(1,1).byteLength===0}catch(Et){return!1}}(),Zt.kMaxLength=jt(),Mt.poolSize=8192,Mt._augment=function(Pt){return Pt.__proto__=Mt.prototype,Pt},Mt.from=function(Pt,Et,$t){return Bt(null,Pt,Et,$t)},Mt.TYPED_ARRAY_SUPPORT&&(Mt.prototype.__proto__=Uint8Array.prototype,Mt.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&Mt[Symbol.species]===Mt&&Object.defineProperty(Mt,Symbol.species,{value:null,configurable:!0})),Mt.alloc=function(Pt,Et,$t){return kt(null,Pt,Et,$t)},Mt.allocUnsafe=function(Pt){return xt(null,Pt)},Mt.allocUnsafeSlow=function(Pt){return xt(null,Pt)},Mt.isBuffer=function(Pt){return!(Pt==null||!Pt._isBuffer)},Mt.compare=function(Pt,Et){if(!Mt.isBuffer(Pt)||!Mt.isBuffer(Et))throw new TypeError("Arguments must be Buffers");if(Pt===Et)return 0;for(var $t=Pt.length,zt=Et.length,Gt=0,le=Math.min($t,zt);Gt0&&(Pt=this.toString("hex",0,Et).match(/.{2}/g).join(" "),this.length>Et&&(Pt+=" ... ")),""},Mt.prototype.compare=function(Pt,Et,$t,zt,Gt){if(!Mt.isBuffer(Pt))throw new TypeError("Argument must be a Buffer");if(Et===void 0&&(Et=0),$t===void 0&&($t=Pt?Pt.length:0),zt===void 0&&(zt=0),Gt===void 0&&(Gt=this.length),Et<0||$t>Pt.length||zt<0||Gt>this.length)throw new RangeError("out of range index");if(zt>=Gt&&Et>=$t)return 0;if(zt>=Gt)return-1;if(Et>=$t)return 1;if(Et>>>=0,$t>>>=0,zt>>>=0,Gt>>>=0,this===Pt)return 0;for(var le=Gt-zt,ye=$t-Et,Ue=Math.min(le,ye),We=this.slice(zt,Gt),Ee=Pt.slice(Et,$t),Ze=0;ZeGt)&&($t=Gt),Pt.length>0&&($t<0||Et<0)||Et>this.length)throw new RangeError("Attempt to write outside buffer bounds");zt||(zt="utf8");for(var le=!1;;)switch(zt){case"hex":return Rt(this,Pt,Et,$t);case"utf8":case"utf-8":return Ut(this,Pt,Et,$t);case"ascii":return Nt(this,Pt,Et,$t);case"latin1":case"binary":return qt(this,Pt,Et,$t);case"base64":return te(this,Pt,Et,$t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt(this,Pt,Et,$t);default:if(le)throw new TypeError("Unknown encoding: "+zt);zt=(""+zt).toLowerCase(),le=!0}},Mt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _t=4096;Mt.prototype.slice=function(Pt,Et){var $t=this.length;Pt=~~Pt,Et=Et===void 0?$t:~~Et,Pt<0?(Pt+=$t)<0&&(Pt=0):Pt>$t&&(Pt=$t),Et<0?(Et+=$t)<0&&(Et=0):Et>$t&&(Et=$t),Et0&&(Gt*=256);)zt+=this[Pt+--Et]*Gt;return zt},Mt.prototype.readUInt8=function(Pt,Et){return Et||he(Pt,1,this.length),this[Pt]},Mt.prototype.readUInt16LE=function(Pt,Et){return Et||he(Pt,2,this.length),this[Pt]|this[Pt+1]<<8},Mt.prototype.readUInt16BE=function(Pt,Et){return Et||he(Pt,2,this.length),this[Pt]<<8|this[Pt+1]},Mt.prototype.readUInt32LE=function(Pt,Et){return Et||he(Pt,4,this.length),(this[Pt]|this[Pt+1]<<8|this[Pt+2]<<16)+16777216*this[Pt+3]},Mt.prototype.readUInt32BE=function(Pt,Et){return Et||he(Pt,4,this.length),16777216*this[Pt]+(this[Pt+1]<<16|this[Pt+2]<<8|this[Pt+3])},Mt.prototype.readIntLE=function(Pt,Et,$t){Pt|=0,Et|=0,$t||he(Pt,Et,this.length);for(var zt=this[Pt],Gt=1,le=0;++le=Gt&&(zt-=Math.pow(2,8*Et)),zt},Mt.prototype.readIntBE=function(Pt,Et,$t){Pt|=0,Et|=0,$t||he(Pt,Et,this.length);for(var zt=Et,Gt=1,le=this[Pt+--zt];zt>0&&(Gt*=256);)le+=this[Pt+--zt]*Gt;return Gt*=128,le>=Gt&&(le-=Math.pow(2,8*Et)),le},Mt.prototype.readInt8=function(Pt,Et){return Et||he(Pt,1,this.length),128&this[Pt]?-1*(255-this[Pt]+1):this[Pt]},Mt.prototype.readInt16LE=function(Pt,Et){Et||he(Pt,2,this.length);var $t=this[Pt]|this[Pt+1]<<8;return 32768&$t?4294901760|$t:$t},Mt.prototype.readInt16BE=function(Pt,Et){Et||he(Pt,2,this.length);var $t=this[Pt+1]|this[Pt]<<8;return 32768&$t?4294901760|$t:$t},Mt.prototype.readInt32LE=function(Pt,Et){return Et||he(Pt,4,this.length),this[Pt]|this[Pt+1]<<8|this[Pt+2]<<16|this[Pt+3]<<24},Mt.prototype.readInt32BE=function(Pt,Et){return Et||he(Pt,4,this.length),this[Pt]<<24|this[Pt+1]<<16|this[Pt+2]<<8|this[Pt+3]},Mt.prototype.readFloatLE=function(Pt,Et){return Et||he(Pt,4,this.length),Yt.read(this,Pt,!0,23,4)},Mt.prototype.readFloatBE=function(Pt,Et){return Et||he(Pt,4,this.length),Yt.read(this,Pt,!1,23,4)},Mt.prototype.readDoubleLE=function(Pt,Et){return Et||he(Pt,8,this.length),Yt.read(this,Pt,!0,52,8)},Mt.prototype.readDoubleBE=function(Pt,Et){return Et||he(Pt,8,this.length),Yt.read(this,Pt,!1,52,8)},Mt.prototype.writeUIntLE=function(Pt,Et,$t,zt){Pt=+Pt,Et|=0,$t|=0,!zt&&Jt(this,Pt,Et,$t,Math.pow(2,8*$t)-1,0);var Gt=1,le=0;for(this[Et]=255&Pt;++le<$t&&(Gt*=256);)this[Et+le]=Pt/Gt&255;return Et+$t},Mt.prototype.writeUIntBE=function(Pt,Et,$t,zt){Pt=+Pt,Et|=0,$t|=0,!zt&&Jt(this,Pt,Et,$t,Math.pow(2,8*$t)-1,0);var Gt=$t-1,le=1;for(this[Et+Gt]=255&Pt;--Gt>=0&&(le*=256);)this[Et+Gt]=Pt/le&255;return Et+$t},Mt.prototype.writeUInt8=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,1,255,0),Mt.TYPED_ARRAY_SUPPORT||(Pt=Math.floor(Pt)),this[Et]=255&Pt,Et+1},Mt.prototype.writeUInt16LE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,2,65535,0),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=255&Pt,this[Et+1]=Pt>>>8):re(this,Pt,Et,!0),Et+2},Mt.prototype.writeUInt16BE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,2,65535,0),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=Pt>>>8,this[Et+1]=255&Pt):re(this,Pt,Et,!1),Et+2},Mt.prototype.writeUInt32LE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,4,4294967295,0),Mt.TYPED_ARRAY_SUPPORT?(this[Et+3]=Pt>>>24,this[Et+2]=Pt>>>16,this[Et+1]=Pt>>>8,this[Et]=255&Pt):se(this,Pt,Et,!0),Et+4},Mt.prototype.writeUInt32BE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,4,4294967295,0),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=Pt>>>24,this[Et+1]=Pt>>>16,this[Et+2]=Pt>>>8,this[Et+3]=255&Pt):se(this,Pt,Et,!1),Et+4},Mt.prototype.writeIntLE=function(Pt,Et,$t,zt){if(Pt=+Pt,Et|=0,!zt){var Gt=Math.pow(2,8*$t-1);Jt(this,Pt,Et,$t,Gt-1,-Gt)}var le=0,ye=1,Ue=0;for(this[Et]=255&Pt;++le<$t&&(ye*=256);)Pt<0&&Ue===0&&this[Et+le-1]!==0&&(Ue=1),this[Et+le]=(Pt/ye>>0)-Ue&255;return Et+$t},Mt.prototype.writeIntBE=function(Pt,Et,$t,zt){if(Pt=+Pt,Et|=0,!zt){var Gt=Math.pow(2,8*$t-1);Jt(this,Pt,Et,$t,Gt-1,-Gt)}var le=$t-1,ye=1,Ue=0;for(this[Et+le]=255&Pt;--le>=0&&(ye*=256);)Pt<0&&Ue===0&&this[Et+le+1]!==0&&(Ue=1),this[Et+le]=(Pt/ye>>0)-Ue&255;return Et+$t},Mt.prototype.writeInt8=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,1,127,-128),Mt.TYPED_ARRAY_SUPPORT||(Pt=Math.floor(Pt)),Pt<0&&(Pt=255+Pt+1),this[Et]=255&Pt,Et+1},Mt.prototype.writeInt16LE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,2,32767,-32768),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=255&Pt,this[Et+1]=Pt>>>8):re(this,Pt,Et,!0),Et+2},Mt.prototype.writeInt16BE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,2,32767,-32768),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=Pt>>>8,this[Et+1]=255&Pt):re(this,Pt,Et,!1),Et+2},Mt.prototype.writeInt32LE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,4,2147483647,-2147483648),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=255&Pt,this[Et+1]=Pt>>>8,this[Et+2]=Pt>>>16,this[Et+3]=Pt>>>24):se(this,Pt,Et,!0),Et+4},Mt.prototype.writeInt32BE=function(Pt,Et,$t){return Pt=+Pt,Et|=0,$t||Jt(this,Pt,Et,4,2147483647,-2147483648),Pt<0&&(Pt=4294967295+Pt+1),Mt.TYPED_ARRAY_SUPPORT?(this[Et]=Pt>>>24,this[Et+1]=Pt>>>16,this[Et+2]=Pt>>>8,this[Et+3]=255&Pt):se(this,Pt,Et,!1),Et+4},Mt.prototype.writeFloatLE=function(Pt,Et,$t){return ue(this,Pt,Et,!0,$t)},Mt.prototype.writeFloatBE=function(Pt,Et,$t){return ue(this,Pt,Et,!1,$t)},Mt.prototype.writeDoubleLE=function(Pt,Et,$t){return Re(this,Pt,Et,!0,$t)},Mt.prototype.writeDoubleBE=function(Pt,Et,$t){return Re(this,Pt,Et,!1,$t)},Mt.prototype.copy=function(Pt,Et,$t,zt){if($t||($t=0),zt||zt===0||(zt=this.length),Et>=Pt.length&&(Et=Pt.length),Et||(Et=0),zt>0&&zt<$t&&(zt=$t),zt===$t||Pt.length===0||this.length===0)return 0;if(Et<0)throw new RangeError("targetStart out of bounds");if($t<0||$t>=this.length)throw new RangeError("sourceStart out of bounds");if(zt<0)throw new RangeError("sourceEnd out of bounds");zt>this.length&&(zt=this.length),Pt.length-Et=0;--Gt)Pt[Gt+Et]=this[Gt+$t];else if(le<1e3||!Mt.TYPED_ARRAY_SUPPORT)for(Gt=0;Gt>>=0,$t=$t===void 0?this.length:$t>>>0,Pt||(Pt=0);var le;if(typeof Pt=="number")for(le=Et;le<$t;++le)this[le]=Pt;else{var ye=Mt.isBuffer(Pt)?Pt:_e(new Mt(Pt,zt).toString()),Ue=ye.length;for(le=0;le<$t-Et;++le)this[le+Et]=ye[le%Ue]}return this};var It=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof ce.g!="undefined"?ce.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(wt,Qt,Zt){Qt.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(wt,Qt,Zt){"use strict";var Ot=function(){this.buffer=[],this.fns=[]};Ot.prototype.push=function(Ct,Mt){if(this.fns.length)return this.fns.shift()(null,Ct);var Bt={data:Ct,priority:Mt},St=jt(this.buffer,Bt,function(kt){return kt.priority});this.buffer.splice(St,0,Bt)},Ot.prototype.next=function(){var Ct=this;return function(Mt){if(Ct.buffer.length)return Mt(null,Ct.buffer.pop().data);Ct.fns.push(Mt)}};var jt=function(Ct,Mt,Bt){Mt=Bt(Mt);for(var St=0,kt=Ct?Ct.length:St;St>>1;Bt(Ct[xt])2&&(ct=yt.call(arguments,1)),lt(ct)})})}function Mt(et){return Promise.all(et.map(jt,this))}function Bt(et){for(var tt=new et.constructor,lt=Object.keys(et),ot=[],ut=0;utet;)if((xt=Dt[et++])!=xt)return!0}else for(;yt>et;et++)if((Mt||et in Dt)&&Dt[et]===St)return Mt||et||0;return!Mt&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(wt,Qt,Zt){var Ot=wt("./_cof"),jt=wt("./_wks")("toStringTag"),Ct=Ot(function(){return arguments}())=="Arguments",Mt=function(Bt,St){try{return Bt[St]}catch(kt){}};Qt.exports=function(Bt){var St,kt,xt;return Bt===void 0?"Undefined":Bt===null?"Null":typeof(kt=Mt(St=Object(Bt),jt))=="string"?kt:Ct?Ot(St):(xt=Ot(St))=="Object"&&typeof St.callee=="function"?"Arguments":xt}},{"./_cof":64,"./_wks":131}],64:[function(wt,Qt,Zt){var Ot={}.toString;Qt.exports=function(jt){return Ot.call(jt).slice(8,-1)}},{}],65:[function(wt,Qt,Zt){var Ot=Qt.exports={version:"2.5.7"};typeof __e=="number"&&(__e=Ot)},{}],66:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_object-dp"),jt=wt("./_property-desc");Qt.exports=function(Ct,Mt,Bt){Mt in Ct?Ot.f(Ct,Mt,jt(0,Bt)):Ct[Mt]=Bt}},{"./_object-dp":98,"./_property-desc":111}],67:[function(wt,Qt,Zt){var Ot=wt("./_a-function");Qt.exports=function(jt,Ct,Mt){if(Ot(jt),Ct===void 0)return jt;switch(Mt){case 1:return function(Bt){return jt.call(Ct,Bt)};case 2:return function(Bt,St){return jt.call(Ct,Bt,St)};case 3:return function(Bt,St,kt){return jt.call(Ct,Bt,St,kt)}}return function(){return jt.apply(Ct,arguments)}}},{"./_a-function":58}],68:[function(wt,Qt,Zt){Qt.exports=function(Ot){if(Ot==null)throw TypeError("Can't call method on "+Ot);return Ot}},{}],69:[function(wt,Qt,Zt){Qt.exports=!wt("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(wt,Qt,Zt){var Ot=wt("./_is-object"),jt=wt("./_global").document,Ct=Ot(jt)&&Ot(jt.createElement);Qt.exports=function(Mt){return Ct?jt.createElement(Mt):{}}},{"./_global":76,"./_is-object":85}],71:[function(wt,Qt,Zt){Qt.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(wt,Qt,Zt){var Ot=wt("./_object-keys"),jt=wt("./_object-gops"),Ct=wt("./_object-pie");Qt.exports=function(Mt){var Bt=Ot(Mt),St=jt.f;if(St)for(var kt,xt=St(Mt),Dt=Ct.f,yt=0;xt.length>yt;)Dt.call(Mt,kt=xt[yt++])&&Bt.push(kt);return Bt}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(wt,Qt,Zt){var Ot=wt("./_global"),jt=wt("./_core"),Ct=wt("./_ctx"),Mt=wt("./_hide"),Bt=wt("./_has"),St=function(kt,xt,Dt){var yt,et,tt,lt=kt&St.F,ot=kt&St.G,ut=kt&St.S,ct=kt&St.P,ft=kt&St.B,gt=kt&St.W,Lt=ot?jt:jt[xt]||(jt[xt]={}),Rt=Lt.prototype,Ut=ot?Ot:ut?Ot[xt]:(Ot[xt]||{}).prototype;ot&&(Dt=xt);for(yt in Dt)(et=!lt&&Ut&&Ut[yt]!==void 0)&&Bt(Lt,yt)||(tt=et?Ut[yt]:Dt[yt],Lt[yt]=ot&&typeof Ut[yt]!="function"?Dt[yt]:ft&&et?Ct(tt,Ot):gt&&Ut[yt]==tt?function(Nt){var qt=function(te,Vt,de){if(this instanceof Nt){switch(arguments.length){case 0:return new Nt;case 1:return new Nt(te);case 2:return new Nt(te,Vt)}return new Nt(te,Vt,de)}return Nt.apply(this,arguments)};return qt.prototype=Nt.prototype,qt}(tt):ct&&typeof tt=="function"?Ct(Function.call,tt):tt,ct&&((Lt.virtual||(Lt.virtual={}))[yt]=tt,kt&St.R&&Rt&&!Rt[yt]&&Mt(Rt,yt,tt)))};St.F=1,St.G=2,St.S=4,St.P=8,St.B=16,St.W=32,St.U=64,St.R=128,Qt.exports=St},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(wt,Qt,Zt){Qt.exports=function(Ot){try{return!!Ot()}catch(jt){return!0}}},{}],75:[function(wt,Qt,Dt){var Ot=wt("./_ctx"),jt=wt("./_iter-call"),Ct=wt("./_is-array-iter"),Mt=wt("./_an-object"),Bt=wt("./_to-length"),St=wt("./core.get-iterator-method"),kt={},xt={},Dt=Qt.exports=function(yt,et,tt,lt,ot){var ut,ct,ft,gt,Lt=ot?function(){return yt}:St(yt),Rt=Ot(tt,lt,et?2:1),Ut=0;if(typeof Lt!="function")throw TypeError(yt+" is not iterable!");if(Ct(Lt)){for(ut=Bt(yt.length);ut>Ut;Ut++)if((gt=et?Rt(Mt(ct=yt[Ut])[0],ct[1]):Rt(yt[Ut]))===kt||gt===xt)return gt}else for(ft=Lt.call(yt);!(ct=ft.next()).done;)if((gt=jt(ft,Rt,ct.value,et))===kt||gt===xt)return gt};Dt.BREAK=kt,Dt.RETURN=xt},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(wt,Qt,Zt){var Ot=Qt.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Ot)},{}],77:[function(wt,Qt,Zt){var Ot={}.hasOwnProperty;Qt.exports=function(jt,Ct){return Ot.call(jt,Ct)}},{}],78:[function(wt,Qt,Zt){var Ot=wt("./_object-dp"),jt=wt("./_property-desc");Qt.exports=wt("./_descriptors")?function(Ct,Mt,Bt){return Ot.f(Ct,Mt,jt(1,Bt))}:function(Ct,Mt,Bt){return Ct[Mt]=Bt,Ct}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(wt,Qt,Zt){var Ot=wt("./_global").document;Qt.exports=Ot&&Ot.documentElement},{"./_global":76}],80:[function(wt,Qt,Zt){Qt.exports=!wt("./_descriptors")&&!wt("./_fails")(function(){return Object.defineProperty(wt("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(wt,Qt,Zt){Qt.exports=function(Ot,jt,Ct){var Mt=Ct===void 0;switch(jt.length){case 0:return Mt?Ot():Ot.call(Ct);case 1:return Mt?Ot(jt[0]):Ot.call(Ct,jt[0]);case 2:return Mt?Ot(jt[0],jt[1]):Ot.call(Ct,jt[0],jt[1]);case 3:return Mt?Ot(jt[0],jt[1],jt[2]):Ot.call(Ct,jt[0],jt[1],jt[2]);case 4:return Mt?Ot(jt[0],jt[1],jt[2],jt[3]):Ot.call(Ct,jt[0],jt[1],jt[2],jt[3])}return Ot.apply(Ct,jt)}},{}],82:[function(wt,Qt,Zt){var Ot=wt("./_cof");Qt.exports=Object("z").propertyIsEnumerable(0)?Object:function(jt){return Ot(jt)=="String"?jt.split(""):Object(jt)}},{"./_cof":64}],83:[function(wt,Qt,Zt){var Ot=wt("./_iterators"),jt=wt("./_wks")("iterator"),Ct=Array.prototype;Qt.exports=function(Mt){return Mt!==void 0&&(Ot.Array===Mt||Ct[jt]===Mt)}},{"./_iterators":91,"./_wks":131}],84:[function(wt,Qt,Zt){var Ot=wt("./_cof");Qt.exports=Array.isArray||function(jt){return Ot(jt)=="Array"}},{"./_cof":64}],85:[function(wt,Qt,Zt){Qt.exports=function(Ot){return typeof Ot=="object"?Ot!==null:typeof Ot=="function"}},{}],86:[function(wt,Qt,Zt){var Ot=wt("./_an-object");Qt.exports=function(jt,Ct,Mt,Bt){try{return Bt?Ct(Ot(Mt)[0],Mt[1]):Ct(Mt)}catch(kt){var St=jt.return;throw St!==void 0&&Ot(St.call(jt)),kt}}},{"./_an-object":61}],87:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_object-create"),jt=wt("./_property-desc"),Ct=wt("./_set-to-string-tag"),Mt={};wt("./_hide")(Mt,wt("./_wks")("iterator"),function(){return this}),Qt.exports=function(Bt,St,kt){Bt.prototype=Ot(Mt,{next:jt(1,kt)}),Ct(Bt,St+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_library"),jt=wt("./_export"),Ct=wt("./_redefine"),Mt=wt("./_hide"),Bt=wt("./_iterators"),St=wt("./_iter-create"),kt=wt("./_set-to-string-tag"),xt=wt("./_object-gpo"),Dt=wt("./_wks")("iterator"),yt=!([].keys&&"next"in[].keys()),et=function(){return this};Qt.exports=function(tt,lt,ot,ut,ct,ft,gt){St(ot,lt,ut);var Lt,Rt,Ut,Nt=function(Pe){if(!yt&&Pe in de)return de[Pe];switch(Pe){case"keys":case"values":return function(){return new ot(this,Pe)}}return function(){return new ot(this,Pe)}},qt=lt+" Iterator",te=ct=="values",Vt=!1,de=tt.prototype,ge=de[Dt]||de["@@iterator"]||ct&&de[ct],be=ge||Nt(ct),Ne=ct?te?Nt("entries"):be:void 0,Ge=lt=="Array"&&de.entries||ge;if(Ge&&(Ut=xt(Ge.call(new tt)))!==Object.prototype&&Ut.next&&(kt(Ut,qt,!0),Ot||typeof Ut[Dt]=="function"||Mt(Ut,Dt,et)),te&&ge&&ge.name!=="values"&&(Vt=!0,be=function(){return ge.call(this)}),Ot&&!gt||!yt&&!Vt&&de[Dt]||Mt(de,Dt,be),Bt[lt]=be,Bt[qt]=et,ct)if(Lt={values:te?be:Nt("values"),keys:ft?be:Nt("keys"),entries:Ne},gt)for(Rt in Lt)Rt in de||Ct(de,Rt,Lt[Rt]);else jt(jt.P+jt.F*(yt||Vt),lt,Lt);return Lt}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(wt,Qt,Zt){var Ot=wt("./_wks")("iterator"),jt=!1;try{var Ct=[7][Ot]();Ct.return=function(){jt=!0},Array.from(Ct,function(){throw 2})}catch(Mt){}Qt.exports=function(Mt,Bt){if(!Bt&&!jt)return!1;var St=!1;try{var kt=[7],xt=kt[Ot]();xt.next=function(){return{done:St=!0}},kt[Ot]=function(){return xt},Mt(kt)}catch(Dt){}return St}},{"./_wks":131}],90:[function(wt,Qt,Zt){Qt.exports=function(Ot,jt){return{value:jt,done:!!Ot}}},{}],91:[function(wt,Qt,Zt){Qt.exports={}},{}],92:[function(wt,Qt,Zt){Qt.exports=!0},{}],93:[function(wt,Qt,Zt){var Ot=wt("./_uid")("meta"),jt=wt("./_is-object"),Ct=wt("./_has"),Mt=wt("./_object-dp").f,Bt=0,St=Object.isExtensible||function(){return!0},kt=!wt("./_fails")(function(){return St(Object.preventExtensions({}))}),xt=function(lt){Mt(lt,Ot,{value:{i:"O"+ ++Bt,w:{}}})},Dt=function(lt,ot){if(!jt(lt))return typeof lt=="symbol"?lt:(typeof lt=="string"?"S":"P")+lt;if(!Ct(lt,Ot)){if(!St(lt))return"F";if(!ot)return"E";xt(lt)}return lt[Ot].i},yt=function(lt,ot){if(!Ct(lt,Ot)){if(!St(lt))return!0;if(!ot)return!1;xt(lt)}return lt[Ot].w},et=function(lt){return kt&&tt.NEED&&St(lt)&&!Ct(lt,Ot)&&xt(lt),lt},tt=Qt.exports={KEY:Ot,NEED:!1,fastKey:Dt,getWeak:yt,onFreeze:et}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(wt,Qt,Zt){var Ot=wt("./_global"),jt=wt("./_task").set,Ct=Ot.MutationObserver||Ot.WebKitMutationObserver,Mt=Ot.process,Bt=Ot.Promise,St=wt("./_cof")(Mt)=="process";Qt.exports=function(){var kt,xt,Dt,yt=function(){var ot,ut;for(St&&(ot=Mt.domain)&&ot.exit();kt;){ut=kt.fn,kt=kt.next;try{ut()}catch(ct){throw kt?Dt():xt=void 0,ct}}xt=void 0,ot&&ot.enter()};if(St)Dt=function(){Mt.nextTick(yt)};else if(!Ct||Ot.navigator&&Ot.navigator.standalone)if(Bt&&Bt.resolve){var et=Bt.resolve(void 0);Dt=function(){et.then(yt)}}else Dt=function(){jt.call(Ot,yt)};else{var tt=!0,lt=document.createTextNode("");new Ct(yt).observe(lt,{characterData:!0}),Dt=function(){lt.data=tt=!tt}}return function(ot){var ut={fn:ot,next:void 0};xt&&(xt.next=ut),kt||(kt=ut,Dt()),xt=ut}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(wt,Qt,Zt){"use strict";function Ot(Ct){var Mt,Bt;this.promise=new Ct(function(St,kt){if(Mt!==void 0||Bt!==void 0)throw TypeError("Bad Promise constructor");Mt=St,Bt=kt}),this.resolve=jt(Mt),this.reject=jt(Bt)}var jt=wt("./_a-function");Qt.exports.f=function(Ct){return new Ot(Ct)}},{"./_a-function":58}],96:[function(wt,Qt,Zt){"use strict";var Ot=wt("./_object-keys"),jt=wt("./_object-gops"),Ct=wt("./_object-pie"),Mt=wt("./_to-object"),Bt=wt("./_iobject"),St=Object.assign;Qt.exports=!St||wt("./_fails")(function(){var kt={},xt={},Dt=Symbol(),yt="abcdefghijklmnopqrst";return kt[Dt]=7,yt.split("").forEach(function(et){xt[et]=et}),St({},kt)[Dt]!=7||Object.keys(St({},xt)).join("")!=yt})?function(kt,xt){for(var Dt=Mt(kt),yt=arguments.length,et=1,tt=jt.f,lt=Ct.f;yt>et;)for(var ot,ut=Bt(arguments[et++]),ct=tt?Ot(ut).concat(tt(ut)):Ot(ut),ft=ct.length,gt=0;ft>gt;)lt.call(ut,ot=ct[gt++])&&(Dt[ot]=ut[ot]);return Dt}:St},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(wt,Qt,Zt){var Ot=wt("./_an-object"),jt=wt("./_object-dps"),Ct=wt("./_enum-bug-keys"),Mt=wt("./_shared-key")("IE_PROTO"),Bt=function(){},St=function(){var kt,xt=wt("./_dom-create")("iframe"),Dt=Ct.length;for(xt.style.display="none",wt("./_html").appendChild(xt),xt.src="javascript:",kt=xt.contentWindow.document,kt.open(),kt.write("