(self.webpackChunk=self.webpackChunk||[]).push([[9352],{10906:function(Pn,_n,ce){"use strict";ce.d(_n,{Z:function(){return Mt}});var $t=ce(14809),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,$t.Z)({},St,{ref:kt,icon:Zt}))},Ct=wt.forwardRef(jt),Mt=Ct},8336:function(){"use strict"},12469:function(){"use strict"},99587:function(Pn,_n){"use strict";_n.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 Pn(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(Pn.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(Pn.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(Pn.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(Pn.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 Pn))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 _n=[];function ce(yt,et){var tt=_n.pop();return tt===void 0?new go.Point(yt,et):(tt.x=yt,tt.y=et,tt)}function $t(){var yt=_n.pop();return yt===void 0?new go.Point:yt}function wt(yt){_n.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,ee=ut-qt*ot;Ut=yt,Nt=qt*Ut+ee}else if(Rt===0){var Yt=(et-lt)/Lt,de=et-Yt*yt;Ut=ot,Nt=Yt*Ut+de}else{var Yt=(et-lt)/Lt,qt=(ut-ft)/Rt,de=et-Yt*yt,ee=ut-qt*ot;Ut=(ee-de)/(Yt-qt),Nt=Yt*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 ee=1-gt,Yt=gt,de=yt*ee+tt*Yt,ge=et*ee+lt*Yt,be=tt*ee+ot*Yt,Ne=lt*ee+ut*Yt,We=ot*ee+ct*Yt,we=ut*ee+ft*Yt,je=de*ee+be*Yt,he=ge*ee+Ne*Yt,Jt=be*ee+We*Yt,re=Ne*ee+we*Yt,se=je*ee+Jt*Yt,pe=he*ee+re*Yt;Lt.x=de,Lt.y=ge,Rt.x=je,Rt.y=he,Ut.x=se,Ut.y=pe,Nt.x=Jt,Nt.y=re,qt.x=We,qt.y=we}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 Pn("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 Pn("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 Pn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Pn("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 Pn("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 Pn("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 Pn("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 Pn("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 Pn("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 Pn("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=$t(),Rt=$t(),Ut=$t(),Nt=$t();Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.42,Lt,Rt,Ut,Nt,Nt);var qt=$t(),ee=$t(),Yt=$t();Zt(ct,ft-ut,ct+ot,ft-ut,ct+ut,ft-ot,ct+ut,ft,.58,Nt,Nt,Yt,qt,ee);var de=$t(),ge=$t(),be=$t();Zt(ct,ft+ut,ct-ot,ft+ut,ct-ut,ft+ot,ct-ut,ft,.42,de,ge,be,Nt,Nt);var Ne=$t(),We=$t(),we=$t();return Zt(ct,ft+ut,ct-ot,ft+ut,ct-ut,ft+ot,ct-ut,ft,.58,Nt,Nt,we,Ne,We),gt.add(new go.PathSegment(go.PathSegment.Move,we.x*et,we.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,Ne.x*et,Ne.y*tt,We.x*et,We.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,we.x*et,we.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,Yt.x*et,Yt.y*tt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,qt.x*et,qt.y*tt,ee.x*et,ee.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(ee),wt(Yt),wt(de),wt(ge),wt(be),wt(Ne),wt(We),wt(we),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 Pn("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=$t(),Lt=$t(),Rt=$t(),Ut=$t(),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 ee=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,(ee.x*.1+.9)*et,.15*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,(ee.x*.1+.9)*et,(ee.y*.1+.05*.9)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,ee.x*et,ee.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 Yt=new go.PathFigure(ct*et,(ft-ut)*tt,!1);lt.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-ot)*et,(ft-ut)*tt,(ct-ut)*et,(ft-ot)*tt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+ot)*tt,(ct-ot)*et,(ft+ut)*tt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+ot)*et,(ft+ut)*tt,(ct+ut)*et,(ft+ot)*tt)),Yt.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(ee),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 Pn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Pn("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,$t());return gt.spot2=new go.Spot(Rt.x,Rt.y),wt(Rt),gt}),go.Shape.setFigureParameter("Arrow2",0,new Pn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Pn("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,$t());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 Pn("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,$t());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 Pn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Pn("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,$t());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 Pn("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,$t());return ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("IBeamArrow2",0,new Pn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Pn("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,$t());return Lt.spot2=new go.Spot(Ut.x,Ut.y),wt(Ut),Lt}),go.Shape.setFigureParameter("Pointer",0,new Pn("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,$t());return ot.spot2=new go.Spot(ct.x,ct.y),wt(ct),ot}),go.Shape.setFigureParameter("RoundedPointer",0,new Pn("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,$t());return ot.spot2=new go.Spot(ct.x,ct.y),wt(ct),ot}),go.Shape.setFigureParameter("SplitEndArrow",0,new Pn("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,$t());return ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Pn("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,$t());return ct.spot2=new go.Spot(gt.x,gt.y),wt(gt),ct}),go.Shape.setFigureParameter("SquareArrow",0,new Pn("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 Pn("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 ee=new go.PathFigure((gt-ft)*et+Rt,Lt*tt+Ut,!0);lt.add(ee),ee.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)),ee.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)),ee.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)),ee.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 Yt=new go.PathFigure(gt*et+Rt,(Lt-ft)*tt+Ut,!0);lt.add(Yt),Yt.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)),Yt.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)),Yt.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)),Yt.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=$t(),Lt=$t(),Rt=$t(),Ut=$t();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,ee=new go.PathFigure(gt*et,(1-Lt)*tt,!1);return lt.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,Ut*tt,Rt*et,.7*tt,Rt*et,Ut*tt)),ee.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)),ee.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)),ee.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)),ee.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),ee.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),ee.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,ee=Rt*Nt,Yt=Rt*qt;ut.add(new go.PathSegment(go.PathSegment.Bezier,(ft-Nt)*et,gt*tt,(ft-(ee+Nt)/2)*et,(gt+(qt+Yt)/2)*tt,(ft-Nt)*et,(gt+Yt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(gt-qt)*tt,(ft-Nt)*et,(gt-Yt)*tt,(ft-ee)*et,(gt-qt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ft+Nt)*et,gt*tt,(ft+ee)*et,(gt-qt)*tt,(ft+Nt)*et,(gt-Yt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(ft+Nt)*et,(gt+Yt)*tt,(ft+(ee+Nt)/2)*et,(gt+(qt+Yt)/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,ee=new go.PathFigure((Nt-Rt)*et,qt*tt,!0);lt.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt-Rt)*tt,(Nt-Rt)*et,(qt-Ut)*tt,(Nt-Ut)*et,(qt-Rt)*tt)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+Rt)*et,qt*tt,(Nt+Ut)*et,(qt-Rt)*tt,(Nt+Rt)*et,(qt-Ut)*tt)),ee.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(qt+Rt)*tt,(Nt+Rt)*et,(qt+Ut)*tt,(Nt+Ut)*et,(qt+Rt)*tt)),ee.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 Yt=new go.PathFigure(0,tt,!1);return lt.add(Yt),Yt.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 Pn={},_n="5.0",ce={},$t=null,wt=!1,Qt=!1,Zt=null,Ot=!1,jt=null,Ct=null,Mt=0;Mt4?parseFloat(ue):5};Pn.setHTML5Codebase=function(ue,Ie){Ct=ue,re(ue,Ie)},Pn.setJavaCodebase=Pn.setJavaCodebaseVersion=Pn.isCompiledInstalled=Pn.setPreCompiledScriptPath=Pn.setPreCompiledResourcePath=function(){},Pn.setHTML5CodebaseVersion=function(ue,Ie){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,Ie)},Pn.getHTML5CodebaseVersion=function(){return yt},Pn.getParameters=function(){return ce},Pn.setFontsCSSURL=function(ue){ct=ue},Pn.setGiacJSURL=function(ue){},Pn.setJNLPFile=function(ue){St=ue},Pn.setJNLPBaseDir=function(ue){},Pn.inject=function(){function ue(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ie="auto",Fe=ce.id,Qe,Ae=!1,Pe=0;Pe=5)return!0;var ue=Pn.getAppletObject();return ue&&typeof ue.recalculateEnvironments=="function"?(ue.recalculateEnvironments(),!0):!1},Pn.startAnimation=function(){var ue=Pn.getAppletObject();return ue&&typeof ue.startAnimation=="function"?(ue.startAnimation(),!0):!1},Pn.stopAnimation=function(){var ue=Pn.getAppletObject();return ue&&typeof ue.stopAnimation=="function"?(ue.stopAnimation(),!0):!1},Pn.getAppletObject=function(){var ue=ce.id!==void 0?ce.id:"ggbApplet";return window[ue]},Pn.resize=function(){};var ee=function(ue,Ie,Fe){var Qe=document.createElement("param");Qe.setAttribute("name",Ie),Qe.setAttribute("value",Fe),ue.appendChild(Qe)},Yt=function(ue){return ue&&ue!=="false"},de=function(ue,Ie,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 Pe=Ie.width,He=Ie.height;if(Ie.disableAutoScale=Ie.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ie.disableAutoScale,Ie.width!==void 0)if(gt(yt)<=4.4)Yt(Ie.showToolBar)&&(Ie.height-=7),Yt(Ie.showAlgebraInput)&&(Ie.height-=37),Ie.width<605&&Yt(Ie.showToolBar)&&(Ie.width=605,Pe=605);else{var Re=100;(Yt(Ie.showToolBar)||Yt(Ie.showMenuBar))&&(Ie.hasOwnProperty("customToolBar")&&(Ie.customToolbar=Ie.customToolBar),Re=Yt(Ie.showMenuBar)?245:155),Pe=5?(Ie.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(Vt)):Ae.appendChild(Vt),Tt.appendChild(Ae),At||ue.appendChild(Tt),setTimeout(function(){Pn.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),Ie.appletOnLoad=function(le){Pn.resize(),ie(le)}}function Ht(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(Ge){Ht(Ge.article,Ge.params)}),html5AppletsToProcess=null)},gt(yt)<5&&(le.className+=" geogebraweb")):Ht(le,ye)}if(Qe){scriptLoadStarted=!0;for(var Pt=0;Pt0?(_e.remove(),Tt.attr("id","fullscreencontent").show(),jQuery(ie).append(Tt),window.dispatchEvent(new Event("resize"))):de(_e,Ie,!1),window.GGBT_wsf_view.launchFullScreen(ie)}else Dt=Qe,de(ue,Ie,!1);if(!window.GGBT_wsf_view)for(He=0;Heue/4*3&&(_e=ue/4*3),ie=_e/5.8,Re.setAttribute("src",ot),Re.setAttribute("width",_e),Re.setAttribute("height",ie);var Tt=(ue-_e)/2,At=(Ie-ie)/2;Re.style.left=Tt+"px",Re.style.top=At+"px",Ae.appendChild(Re)}}return Ae.appendChild(He),Ae},je=function(ue){return ue=ue.toLowerCase(),ue==="html5"||ue==="screenshot"?ue:"html5"},he=["web","webSimple","web3d","tablet","tablet3d","phone"],Jt=function(ue,Ie){if(yt=ue,Ie){re(yt,!0);return}var Fe=!wt;if(Fe){var Qe=gt(yt);!isNaN(Qe)&&Qe<4.4&&(Fe=!1)}var Ae,Pe;window.location.protocol.substr(0,4)==="http"?Ae=window.location.protocol:Ae="http:";var He=yt.indexOf("//");He>0?Pe=yt:He===0?Pe=Ae+yt:Pe="https://www.geogebra.org/apps/5.2.814.0/";for(var Re in he)if(yt.slice(he[Re].length*-1)===he[Re]||yt.slice((he[Re].length+1)*-1)===he[Re]+"/"){re(Pe,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Fe&&!$t.is3D&&!$t.AV&&!$t.SV&&!$t.CV&&!$t.EV2&&!$t.CP&&!$t.PC&&!$t.DA&&!$t.FI&&!$t.PV&&!Yt(ce.showToolBar)&&!Yt(ce.showMenuBar)&&!Yt(ce.showAlgebraInput)&&!Yt(ce.enableRightClick)&&(!ce.appName||ce.appName=="classic")?Pe+="webSimple/":Pe+="web3d/",re(Pe,!1)},re=function(ue,Ie){if(ue.requirejs){kt=ue;return}ue.slice(-1)!=="/"&&(ue+="/"),kt=ue,Ie===null&&(Ie=ue.indexOf("http")===-1),xt=Ie,et="web.nocache.js",tt=!1;var Fe=kt.split("/");Fe.length>1&&(!Ie&&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",Ie))},se=function(ue,Ie){window.console&&window.console.log&&(!Ie||typeof Ie.showLogging=="undefined"||Ie.showLogging&&Ie.showLogging!=="false")&&console.log(ue)};ce.material_id!==void 0?Ut(pe):pe();function pe(){var ue=_n;jt!==null?ue=jt:parseFloat(ue)<5&&(ue="5.0"),Jt(ue,!1),Ct!==null&&re(Ct,xt),Ot=!0}return Pn},GGBAppletUtils=function(){"use strict";function Pn(){return window.GGBT_wsf_edit!==void 0}function _n(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=$t(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);Pn()&&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(Pn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Pn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Pn){var _n=c[Pn];return _n==null?null:_n},r=d,webModule.__errFn=e}function B(){function Pn(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 _n(Ot){if(!Ot.match(/^\w+:\/\//)){var jt=o.createElement(ub);jt.src=Ot+vb,Ot=Pn(jt.src)}return Ot}function ce(){var Ot=__gwt_getMetaProperty(wb);return Ot!=null?Ot:W}function $t(){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=$t()),Zt==W&&(Zt=wt()),Zt==W&&Qt()&&(Zt=Pn(o.location.href)),Zt=_n(Zt),Zt}function C(Pn){return Pn.match(/^\//)||Pn.match(/^[a-zA-Z]+:\/\//)?Pn:webModule.__moduleBase+Pn}function D(){var Pn=[],_n=O,ce=[],$t=[];function wt(Ot){var jt=$t[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&&(_n=parseInt(Qt.substring(Zt+P),$),Qt=Qt.substring(O,Zt))}catch(Ot){}return webModule.__softPermutationId=_n,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(Pn,_n,ce){"use strict";ce.d(_n,{$Y:function(){return Pe},A0:function(){return Ie},EP:function(){return Ot},F_:function(){return Mt},Fk:function(){return Ht},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 we},QF:function(){return ye},RS:function(){return Lt},RY:function(){return Wt},Rj:function(){return Ne},SX:function(){return Nt},Tp:function(){return He},Ui:function(){return ue},V1:function(){return he},Vn:function(){return Ut},dL:function(){return Vt},fo:function(){return ee},gG:function(){return Yt},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 $t},n_:function(){return kt},oP:function(){return Re},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 je},wt:function(){return de},yS:function(){return gt},yi:function(){return Qt},ym:function(){return We},z2:function(){return Zt}});const $t="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",ee="DISABLE_DISCUSS",Yt="CHANGE_PAGE",de="SHOW_ANSWER_LOADING",ge="FETCH_ANSWER_INFO",be="HIGH_TIP_MODAL",Ne="SHOW_TIP_MODAL",We="SELECT_UNLOCK_ANSWER",we="SET_CHOOSE_ANSWERS",je="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",Ie="HIDE_EVALUATE_LOADING",Fe="SET_EVALUATE_MESSAGE",Qe="SET_SHOW_DIR",Ae="SET_EDITOR_SETTING",Pe="SET_EDITOR_THEME",He="SET_EDITOR_FONTSIZE",Re="SET_REPOS",_e="SHOW_PATH_LIST",ie="HIDE_PATH_LIST",Tt="HIDE_PICTURE_VIEW",At="SHOW_PICTURE_VIEW",Vt="SHOW_NOTICE",oe="HIDE_NOTICE",Ht="SHOW_CASE_NOTICE",It="HIDE_CASE_NOTICE",Pt="SET_TAB_INDEX",Et="SET_SSH_TABS",te="SET_SSH_CONFIGDATA",zt="SET_SSH_CONFIGDATAARR",Wt="SET_VNC_LOADING ",le="ON_TAB_TO_SPACE ",ye="ON_AUTO_FORMAT "},46699:function(Pn,_n,ce){"use strict";ce.d(_n,{Ax:function(){return Zt},Ds:function(){return Ot},KI:function(){return Ct},SI:function(){return Qt},f1:function(){return wt}});var $t=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($t.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(Pn,_n,ce){"use strict";ce.d(_n,{Z:function(){return St}});var $t=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,$t.useState)(!1),tt=$t.createElement(wt.ZP,{loading:yt,icon:$t.createElement(Ot.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),lt=()=>$t.createElement("div",{className:Mt.img},$t.createElement("img",{src:Ct.Z.API_SERVER+"/api/attachments/"+kt,alt:"avatar",style:{width:288}}),$t.createElement("div",null,$t.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 $t.createElement($t.Fragment,null,kt?lt():$t.createElement("div",null,$t.createElement(Zt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${Ct.Z.API_SERVER}/api/attachments.json`,onChange:ot,accept:"image/*"},tt),$t.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"),$t.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))}},9507:function(Pn,_n,ce){"use strict";ce.d(_n,{Z:function(){return kt}});var $t=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,$t.useRef)(null),ft=(0,$t.useRef)(null),gt=(0,$t.useRef)(null),Lt=(0,$t.useRef)(null),[Rt,Ut]=(0,$t.useState)(!1),[Nt,qt]=(0,$t.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,$t.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&&ee()):(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 ee=()=>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("")}),Yt=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(We=>{const we=document.querySelector(We.name);we&&we.setAttribute("title",We.title)})},ge=()=>{ft.current=new jt.hP(ct.current),ft.current.targetRoot=Lt.current,ft.current.addEventListener("render",Yt),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 $t.createElement($t.Fragment,null,(xt==null?void 0:xt.visible)&&$t.createElement(Ot.Z,{spinning:Rt,tip:Nt,style:{position:"absolute",width:"100vw"}},$t.createElement("div",{ref:Lt,className:Zt()(wt.imageDimensions,Dt,yt?wt.fullWidth:""),style:et},$t.createElement("img",{className:wt.img,ref:ct}))))}},76562:function(Pn,_n,ce){"use strict";var $t=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,$t.forwardRef)(({callback:kt,showSaveButton:xt,value:Dt=""},yt)=>{const et=(0,$t.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,$t.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")))});_n.Z=St},96472:function(Pn,_n,ce){"use strict";ce.d(_n,{z:function(){return je},Z:function(){return he}});var $t=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 Ie=Ae=>{try{Qe(se.next(Ae))}catch(Pe){ue(Pe)}},Fe=Ae=>{try{Qe(se.throw(Ae))}catch(Pe){ue(Pe)}},Qe=Ae=>Ae.done?pe(Ae.value):Promise.resolve(Ae.value).then(Ie,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:Ie="\u6587\u4EF6\u4E0A\u4F20",accept:Fe=null})=>{const Qe={multiple:!1,fileList:Jt,accept:Fe,withCredentials:!0,beforeUpload:Pe=>Pe.size/1024/1024(At.name.indexOf(et)===-1&&(At.name=`${At.name}${et}${tt(At.size)}`),Dt({},At))),Pe.file.status==="done"&&((Re=(He=Pe.file)==null?void 0:He.response)==null?void 0:Re.status)===-1){message.error((ie=(_e=Pe.file)==null?void 0:_e.response)==null?void 0:ie.message),se([]);return}se(Tt)},onRemove:Pe=>yt(void 0,null,function*(){const He=Pe.size/1024/1024;return Pe.status==="uploading"?!0:He0?"\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},Ie),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=",ee=Object.defineProperty,Yt=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,be=(Jt,re,se)=>re in Jt?ee(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(Yt)for(var se of Yt(re))ge.call(re,se)&&be(Jt,se,re[se]);return Jt},We=(Jt,re,se)=>new Promise((pe,ue)=>{var Ie=Ae=>{try{Qe(se.next(Ae))}catch(Pe){ue(Pe)}},Fe=Ae=>{try{Qe(se.throw(Ae))}catch(Pe){ue(Pe)}},Qe=Ae=>Ae.done?pe(Ae.value):Promise.resolve(Ae.value).then(Ie,Fe);Qe((se=se.apply(Jt,re)).next())});const{Dragger:we}=wt.default;function je(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:Ie=150,title:Fe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Qe=!1,accept:Ae="",additionalText:Pe,isDragger:He,number:Re=1e3,aloneClear:_e=!1,realTimeRemove:ie=!0,uploadText:Tt,setFileProgress:At,showFileProgress:Vt})=>{const[oe,Ht]=(0,$t.useState)(!1);let[It,Pt]=(0,$t.useState)(Jt||[]),[Et,te]=(0,$t.useState)(1);(0,$t.useEffect)(()=>{Jt&&(Et===1&&Pt([...Jt]),te(2),Re===(Jt==null?void 0:Jt.length)&&Ht(!0))},[Jt]);const zt=()=>{setTimeout(()=>{It.pop(),Pt([...It])},500)};Vt&&At(It.some(ye=>ye.status==="uploading"));const Wt={multiple:!0,disabled:oe,accept:Ae,withCredentials:!0,fileList:It,beforeUpload:(ye,Ge)=>{const ze=ye.size/1024/1024;return It.concat(Ge).length>Re?(It.pop(),Pt([...It]),Qt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Re}\u4E2A\u6587\u4EF6`),_e?Promise.reject():(zt(),!1)):ze=Re?Ht(!0):Ht(!1),Pt([...It]),It=It.map(on=>{var rn,Je;return(rn=on==null?void 0:on.response)!=null&&rn.id&&(on.url=(Je=on==null?void 0:on.response)==null?void 0:Je.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=>We(void 0,null,function*(){if(!ie)return!0;const Ge=()=>We(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((ze,Ee)=>{Zt.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:$t.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>We(void 0,null,function*(){const Xe=yield Ge();Qt.ZP.success("\u5220\u9664\u6210\u529F"),ze(!0)}),onCancel:()=>ze(!1)})}):yield Ge()})};function le(ye){ye.preventDefault(),ye.stopPropagation()}return $t.createElement("div",{className:`multi-upload ${ue||""}`},He&&$t.createElement(we,Ne({},Wt),$t.createElement("p",{className:"ant-upload-drag-icon"},$t.createElement(ot.Z,null)),$t.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",$t.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ie,"MB)"," "),Pe),!He&&$t.createElement(wt.default,Ne({},Wt),$t.createElement(Ot.ZP,{disabled:oe,className:"upload_button"},$t.createElement("img",{className:"aBtn_img",src:qt}),Fe),$t.createElement("span",{onClick:le,className:"upload_text"},Tt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ie}MB)`)))}},28426:function(Pn,_n,ce){"use strict";var $t=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=""})=>$t.createElement("section",{className:`tc animated fadeIn ${Rt}`,style:kt({color:"#999",margin:"100px auto",visibility:Lt?"hidden":"visible"},tt)},$t.createElement("img",{src:yt||wt,style:xt(kt({},gt),{pointerEvents:"none",userSelect:"none"})}),$t.createElement("p",{className:"mt20 font14"},lt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ot&&$t.createElement(Qt.ZP,kt({className:ct,onClick:ut},et),ot),ft&&ft);_n.Z=Dt},45677:function(Pn,_n,ce){"use strict";ce.d(_n,{Z:function(){return ct}});var $t=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=Yt=>{try{ee(Lt.next(Yt))}catch(de){Ut(de)}},qt=Yt=>{try{ee(Lt.throw(Yt))}catch(de){Ut(de)}},ee=Yt=>Yt.done?Rt(Yt.value):Promise.resolve(Yt.value).then(Nt,qt);ee((Lt=Lt.apply(ft,gt)).next())}),ct=({editOffice:ft="view",data:gt,issaver:Lt,onSaver:Rt,theme:Ut,type:Nt,filename:qt,monacoEditor:ee,className:Yt,style:de,close:ge,onClose:be,hasMask:Ne,disabledDownload:We,onImgDimensions:we,showNodata:je,recordInfo:he})=>{const[Jt,re]=(0,$t.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,$t.useState)(""),[ue,Ie]=(0,$t.useState)(),Fe=window.ENV==="build"?"/react/build":"",Qe=location.host.startsWith("localhost")?St.Z.PROXY_SERVER:St.Z.API_SERVER,Pe=10*(1024*1024),He=(0,$t.useRef)();gt!=null&>.startsWith("/api")&&Nt!=="txt"&&(gt=St.Z.API_SERVER+gt);const Re=Vt=>Vt.substring(Vt.lastIndexOf("/")+1).split(".").pop();qt&&ee&&(ee.filename=qt),(0,$t.useEffect)(()=>{var Vt,oe;const Ht=(oe=(Vt=document.cookie)==null?void 0:Vt.replace(/\s/g,""))==null?void 0:oe.split(";");Ht==null||Ht.map(It=>{let Pt=It.split("=");Pt[0]==="_educoder_session"&&pe(Pt[1])})},[]),(0,$t.useEffect)(()=>{Nt==="office"&&(gt.indexOf("bigfilescdn.")>-1||gt.indexOf("bigfiles1")>-1?Ie({url:gt,fileType:Re(gt),model:gt.indexOf("model=edit")?"edit":"view"}):ie())},[Nt,gt]);function _e(Vt){return ut(this,null,function*(){Vt.data.type==="pdfdata"&&(Rt(Vt.data.data),window.removeEventListener("message",_e,!1)),console.log("mess---:",Vt.data)})}const ie=()=>ut(void 0,null,function*(){console.log("data:",gt);let Vt=gt;gt.startsWith("http")||(Vt=location.origin+Vt);let oe=new URL(Vt).pathname.split("/").pop();const Ht=yield(0,Mt.gJ)({attachment_id:oe});Ht.url=Qe+Ht.url,Ie(Ht)}),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:He},!!we&&xt.createElement(jt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>He.current},xt.createElement("span",{onClick:()=>{be(),we()}},xt.createElement("i",{className:"icon-yulanpizhu"}))),!We&&xt.createElement(jt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>He.current},xt.createElement("span",{onClick:At},xt.createElement("i",{className:"icon-quxiaozhiding"}))),Lt&&xt.createElement(jt.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>He.current},xt.createElement("span",{className:"",onClick:()=>{const Vt=document.getElementById("pdfiframe");window.addEventListener("message",_e,!1),setTimeout(()=>{Vt.contentWindow.postMessage("getData","*")},300)}},xt.createElement("i",{className:"icon-baocun"}))),xt.createElement(jt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>He.current},xt.createElement("span",{className:"",onClick:()=>{be()}},xt.createElement("i",{className:"icon-guanbi1"})))),xt.createElement("div",{className:`${wt[Yt]} ${Yt} ${wt.monaco} ${Nt==="txt"?"show":"hide"}`},Nt==="txt"&&xt.createElement(xt.Fragment,null,xt.createElement(Ot.ZP,ot({},ee)))),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=${!!We}`}),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=${!!We}&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,je?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:We},"\u4E0B\u8F7D")}):xt.createElement(Qt.ZP,{type:"primary",size:"middle",onClick:Tt,disabled:We},xt.createElement(Zt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Pn,_n,ce){"use strict";ce.d(_n,{z:function(){return Ut},Z:function(){return Nt}});var $t=ce(59301),wt=ce(8944),Qt=ce(81428),Zt=ce(64018),Ot=ce(15360),jt=ce(346),Ct=ce(51257),Mt=ce(15342),Bt=ce(1012),St=ce(45677),kt=ce(59301),Dt=({html:qt})=>{const ee=(0,$t.useRef)(null),Yt=(0,$t.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,$t.useEffect)(()=>{const ge=ee.current.attachShadow({mode:"open"});Yt.current=document.createElement("div"),Yt.current.className="markdown-body",Yt.current.innerHTML=qt,ge.appendChild(Yt.current);const be=document.createElement("style");return be.textContent=de,ge.appendChild(be),()=>{ge.innerHTML=""}},[]),(0,$t.useEffect)(()=>{Yt.current&&(Yt.current.innerHTML=qt)},[qt]),kt.createElement("div",{ref:ee})};function yt(qt){const ee=["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"],Yt=new RegExp(`\\b(${ee.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return qt.replace(Yt,"").trim()}var et=Object.defineProperty,tt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,ut=(qt,ee,Yt)=>ee in qt?et(qt,ee,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):qt[ee]=Yt,ct=(qt,ee)=>{for(var Yt in ee||(ee={}))lt.call(ee,Yt)&&ut(qt,Yt,ee[Yt]);if(tt)for(var Yt of tt(ee))ot.call(ee,Yt)&&ut(qt,Yt,ee[Yt]);return qt};const ft="@\u2581\u2581@",gt="@\u2581@",Lt=/]*>/g;function Rt(qt){let ee=document.createElement("div");return ee.innerHTML=qt,ee.childNodes.length===0?"":ee.childNodes[0].nodeValue}const Ut=(qt,ee)=>{qt=qt||"";const Yt=/(?: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 ee?qt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Yt,(Ne,We,we,je,he,Jt,re)=>{const se=We||je||Jt,pe=we||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,We,we,je,he,Jt,re)=>{const se=We||je||Jt,pe=we||he||re||"?";return jt.Z.API_SERVER+"/attachments/download/"+se+pe+"&t="+(0,Ct.Jn)(se,Date.now())+(Ne.indexOf(")")>-1?")":"&")}).replace(Yt,(Ne,We,we,je,he,Jt,re)=>{const se=We||je||Jt,pe=we||he||re||"?";return jt.Z.API_SERVER+"/api/attachments/"+se+pe+"&t="+(0,Ct.Jn)(se,Date.now())+(Ne.indexOf(")")>-1?")":"&")}).replace(de,(Ne,We,we,je,he)=>{const Jt=We||je,re=we||he||"";return'"'+jt.Z.API_SERVER+"/api/attachments/"+Jt+re+Jt+re+"&t="+(0,Ct.Jn)(Jt,Date.now())}).replace(ge,(Ne,We,we,je,he)=>{const Jt=We||je,re=we||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:ee,showTextOnly:Yt,showLines:de,style:ge={},stylesPrev:be={},highlightKeywords:Ne,showProgramFill:We,isProgramFill:we,disabledFill:je=!1,programFillValue:he,onFillChange:Jt=pe=>{},onFillBlur:re=()=>{},onFillFocus:se=()=>{}})=>{let pe=yt(String(qt||""));const[ue,Ie]=(0,$t.useState)(""),[Fe,Qe]=(0,$t.useState)("office"),[Ae,Pe]=(0,$t.useState)([]),He=(0,$t.useRef)("a"+(0,Bt.Z)()),Re={},_e=Wt=>//i.test(Wt||""),ie=(Wt,le,ye)=>{const Ge=document.createElement(Wt===gt?"input":"textarea");Ge.style.width="100%",Ge.style.height=Wt===gt?"40px":"151px",Ge.rows=5,Ge.spellcheck=!1,Ge.name="edu-program-fill",Ge.placeholder="\u8BF7\u8F93\u5165",Ge.dataset.id=le;const ze=Object.keys(Re).length;return Re[ze]=Ge,`${Ge.outerHTML}`};function Tt(Wt){return Wt=Wt.replace(/!\[.*?\]\(.*?\)/g,""),Wt=Wt.replace(/\[.*?\]\(.*?\)/g,""),Wt=Wt.replace(new RegExp("","gs"),""),Wt=Wt.replace(//g,""),Wt=Wt.replace(//g,""),Wt=Wt.replace(new RegExp(".*?<\\/video>","gs"),""),Wt=Wt.replace(new RegExp(".*?<\\/audio>","gs"),""),Wt=Wt.replace(new RegExp(".*?<\\/style>","gs"),""),Wt=Wt.replace(new RegExp(".*?<\\/script>","gs"),""),Wt}const At=Wt=>!Yt&&_e(pe)?Wt:Wt.replace(/([\s\S]+?)<\/style>/gim,function(le,ye){let Ge=ye.replace(/(\n|\r)/g,"").split("}"),ze=[];return Ge.map(Ee=>{Ee!=""&&ze.push(`.${He.current} ${Ee}`)}),``}),Vt=(0,$t.useMemo)(()=>{try{const Ge=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ze=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ee=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Xe=/\(\/attachments\/download\//g;pe=pe.replace(Xe,"("+jt.Z.API_SERVER+"/attachments/download/").replace(Ge,"("+jt.Z.API_SERVER+"/api/attachments/").replace(ze,'"'+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(Ge){}if(We){let Ge=-1;return pe=pe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ze,Ee,Xe){var on;return++Ge,ie(ze,Ge,(on=he==null?void 0:he[Ge])==null?void 0:on.value.replaceAll("<","<").replaceAll(">",">"))}),`
${At(pe||"")}
`}let Wt=At(pe);Wt=(0,Qt.ZP)(Wt);const le=(0,Qt.ez)();pe.match(/\[TOC\]/)&&(Wt=Wt.replace("

[TOC]

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

${Xs||

`):pn.replaceSelection(`${Xs||`):((no=Hr==null?void 0:Hr.type)==null?void 0:no.indexOf("video"))>-1?pn.replaceSelection(``):((Cr=Hr==null?void 0:Hr.type)==null?void 0:Cr.indexOf("pdf"))>-1?pn.replaceSelection(`${Hr.name}`):zn.includes(Qa)?pn.replaceSelection(`${Hr.name}`):pn.replaceSelection(`[${Hr.name}](${Ws})`),pn.focus();case Nn:const{row:ua,col:kl,align:Fr}=pi;let Eo=` `;for(let Gs=0;Gs{switch(Un){case Je:return $t.createElement(re,{callback:ti,onCancel:Nr});case ii:return $t.createElement(se.Z,{callback:ti,onCancel:Nr});case Tn:return $t.createElement(pe.Z,{callback:ti,onCancel:Nr});case gn:return $t.createElement(Pt,{callback:ti,onCancel:Nr});case Nn:return $t.createElement(le,{callback:ti,onCancel:Nr});case"maths-latex":return $t.createElement(Xe,{showSaveButton:!0,callback:ti});case"inline-latex":return $t.createElement(on.Z,{showSaveButton:!0,callback:ti});default:return null}},[Un]);function Nr(){Bi("")}(0,$t.useEffect)(()=>{if(er.current){let pi=function(no){mr=!0,Ar=no.pageY},li=function(){mr=!1},Li=function(no){if(mr){let Cr=no.pageY-Ar;Cr<0&&(Cr=0),Cr>300&&(Cr=300);let oo=an+Cr+"px";$i(oo)}},xn=er.current,mr=!1,Ar=0;return xn.addEventListener("mousedown",pi),document.addEventListener("mousemove",Li),document.addEventListener("mouseup",li),()=>{xn.removeEventListener("mousedown",pi),document.removeEventListener("mousemove",Li),document.removeEventListener("mouseup",li)}}},[pn,er]),(0,$t.useEffect)(()=>{$i(an)},[an]);const ds=jn(Ye),ts=jn(Ki),vo={width:ds,height:ts},Pr=(0,$t.useMemo)(()=>{if(ki){let pi=new Date(ki),li=pi.getHours(),Li=pi.getMinutes(),xn=pi.getSeconds();return li=li<10?"0"+li:li,Li=Li<10?"0"+Li:Li,xn=xn<10?"0"+xn:xn,`${li}:${Li}:${xn}`}return 0},[ki]),ai=pi=>{const li=[];if(Ue){let Li=-1;pi=pi.replace(/(@▁▁@|@▁@)/g,function(xn,mr,Ar){li.push({multiLine:xn!==Wi})})}return li};function Pi(){window.sessionStorage.removeItem(gi),un(!1),Ii(0)}function nr(){un(!1),Ii(0),pn.setValue(window.sessionStorage.getItem(gi))}(0,$t.useEffect)(()=>{qn[Un]&&Un!==Cn&&Un!==gn&&setTimeout(()=>{const pi=document.getElementsByClassName("markdown-popup-form")[0],li=window.innerWidth/2-pi.offsetWidth/2,Li=window.innerHeight/2-pi.offsetHeight/2;cn(li),tr(Li)},0)},[Un]);const fi=pi=>{pi.preventDefault();const li=pi.clientX-vr,Li=pi.clientY-hi;document.body.onmousemove=xn=>{let mr=xn.clientX-li,Ar=xn.clientY-Li;const no=document.getElementsByClassName("markdown-popup-form")[0],Cr=window.innerWidth-no.offsetWidth,oo=window.innerHeight-no.offsetHeight;mr=Math.max(0,Math.min(mr,Cr)),Ar=Math.max(0,Math.min(Ar,oo)),Zi(xn.clientX,xn.clientY,li,Li)&&(cn(mr),tr(Ar))},document.body.onmouseup=function(){document.body.onmousemove=null}},Zi=(pi,li,Li,xn)=>{const mr=document.body.clientHeight,Ar=document.body.clientWidth;return pi<20&&Li>pi||pi>Ar-20&&Lili||li>mr-20&&xnqt in Nt?kt(Nt,qt,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Nt[qt]=ee,ot=(Nt,qt)=>{for(var ee in qt||(qt={}))et.call(qt,ee)&<(Nt,ee,qt[ee]);if(yt)for(var ee of yt(qt))tt.call(qt,ee)&<(Nt,ee,qt[ee]);return Nt},ut=(Nt,qt)=>xt(Nt,Dt(qt));const{useForm:ct}=$t.default,ft={width:280,marginRight:10},gt={labelCol:{span:5},wrapperCol:{span:19}};var Lt=({callback:Nt,onCancel:qt})=>{const[ee]=ct();let Yt=(0,Bt.useRef)();function de(Ne){Yt.current.width=ee.getFieldValue("width"),Yt.current.align=ee.getFieldValue("align"),Nt(Ne,Yt.current)}function ge(Ne,We){if(Ne.status===-1){wt.ZP.error(Ne.message);return}ee.setFieldsValue({src:`/api/attachments/${Ne.id}`,type:We.type})}function be(Ne){let We=Ne.target.files[0];Yt.current=We,Ut(We,ge)}return St.createElement($t.default,ut(ot({form:ee},gt),{className:"upload-image-panel",onFinish:de,style:{width:470,overflow:"hidden"}}),St.createElement($t.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},St.createElement("div",{className:"flex-container"},St.createElement($t.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($t.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},St.createElement(Qt.default,{style:{width:264}})),St.createElement($t.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},St.createElement(Zt.Z,null,St.createElement($t.default.Item,{name:"width",style:{margin:0}},St.createElement(Ot.Z,{style:{width:264}})),St.createElement("span",{className:"ml8"},"%"))),St.createElement($t.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($t.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 ee=new FormData;ee.append("editormd-image-file",Nt),ee.append("file_param_name","editormd-image-file"),ee.append("byxhr","true");var Yt=new window.XMLHttpRequest;Yt.withCredentials=!0,Yt.addEventListener("load",function(de){qt(JSON.parse(de.target.responseText),Nt)},!1),Yt.addEventListener("error",function(de){console.error(de)},!1),Yt.open("POST",`${Mt.KI}/api/attachments.json`),Yt.send(ee)}},91558:function(Pn,_n,ce){"use strict";ce.d(_n,{Z:function(){return Qt}});var $t=ce(59301),wt=ce(4676);class Qt extends $t.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(Pn,_n,ce){"use strict";ce.d(_n,{SV:function(){return Pt},ZP:function(){return It}});var $t=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,te,zt)=>te in Et?St(Et,te,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[te]=zt,lt=(Et,te)=>{for(var zt in te||(te={}))yt.call(te,zt)&&tt(Et,zt,te[zt]);if(Dt)for(var zt of Dt(te))et.call(te,zt)&&tt(Et,zt,te[zt]);return Et},ot=(Et,te)=>kt(Et,xt(te)),ut=(Et,te,zt)=>new Promise((Wt,le)=>{var ye=Ee=>{try{ze(zt.next(Ee))}catch(Xe){le(Xe)}},Ge=Ee=>{try{ze(zt.throw(Ee))}catch(Xe){le(Xe)}},ze=Ee=>Ee.done?Wt(Ee.value):Promise.resolve(Ee.value).then(ye,Ge);ze((zt=zt.apply(Et,te)).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,te)=>te.map(zt=>({label:zt,kind:Et.languages.CompletionItemKind.Keyword,insertText:zt})),gt=Et=>Object.keys(ct.tables).map(te=>({label:te,kind:Et.languages.CompletionItemKind.Variable,insertText:te})),Lt=(Et,te)=>{const zt=ct.tables[Et];return zt?zt.map(Wt=>({label:Wt,kind:te.languages.CompletionItemKind.Field,insertText:Wt})):[]};function Rt(Et,te,zt,Wt,le){let ye=te.getWordUntilPosition(zt),Ge={startLineNumber:zt.lineNumber,endLineNumber:zt.lineNumber,startColumn:ye.startColumn,endColumn:ye.endColumn},ze=Wt.map(Ee=>({label:Ee,kind:Et.languages.CompletionItemKind.Keyword,insertText:Ee,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}));return le.map(Ee=>{ze.push(ot(lt({},Ee),{range:Ge}))}),ze}var Ut=Et=>{ct.languages.map(le=>(Et.languages.registerDocumentFormattingEditProvider(le,{provideDocumentFormattingEdits(ye,Ge,ze){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 te=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})),Wt=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 Ge=le.getWordUntilPosition(ye),ze={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...Ot.keywords.map(Xe=>({label:Xe,kind:Et.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...Ot.quickKey.map(Xe=>({label:Xe.label,kind:Et.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ee.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}}),Et.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(le,ye){var Ge=le.getWordUntilPosition(ye),ze={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn};return{suggestions:[...Qt.keywords.map(Ee=>({label:Ee,kind:Et.languages.CompletionItemKind.Function,documentation:Ee,insertText:Ee,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}}),Et.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(le,ye){var Ge=le.getWordUntilPosition(ye),ze={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...Zt.keywords.map(Xe=>({label:Xe,kind:Et.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...Zt.quickKey.map(Xe=>({label:Xe.label,kind:Et.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ee.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}}),Et.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(le,ye){var Ge=le.getWordUntilPosition(ye),ze={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...Ct.keywords.map(Xe=>({label:Xe,kind:Et.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...Ct.quickKey.map(Xe=>({label:Xe.label,kind:Et.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ee.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}}),Et.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(le,ye){var Ge=le.getWordUntilPosition(ye),ze={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ee=le.getLineContent(ye.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...jt.keywords.map(Xe=>({label:Xe,kind:Et.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...jt.quickKey.map(Xe=>({label:Xe.label,kind:Et.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ee.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:Et.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}})};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,ee=(Et,te,zt)=>te in Et?qt(Et,te,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[te]=zt,Yt=(Et,te,zt)=>ee(Et,typeof te!="symbol"?te+"":te,zt);const de=class mx{constructor(te,zt,Wt){this.placeholder=te,this.editor=zt,this.monaco=Wt,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)}};Yt(de,"ID","editor.widget.placeholderHint");var be=de,Ne=ce(96236),We=ce(6767),we=ce(25399),je=ce(89392),he=ce(49535),Jt=ce(56102),re=Object.defineProperty,se=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Qe=(Et,te,zt)=>te in Et?re(Et,te,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[te]=zt,Ae=(Et,te)=>{for(var zt in te||(te={}))Ie.call(te,zt)&&Qe(Et,zt,te[zt]);if(ue)for(var zt of ue(te))Fe.call(te,zt)&&Qe(Et,zt,te[zt]);return Et},Pe=(Et,te)=>se(Et,pe(te)),He=(Et,te)=>{var zt={};for(var Wt in Et)Ie.call(Et,Wt)&&te.indexOf(Wt)<0&&(zt[Wt]=Et[Wt]);if(Et!=null&&ue)for(var Wt of ue(Et))te.indexOf(Wt)<0&&Fe.call(Et,Wt)&&(zt[Wt]=Et[Wt]);return zt},Re=(Et,te,zt)=>new Promise((Wt,le)=>{var ye=Ee=>{try{ze(zt.next(Ee))}catch(Xe){le(Xe)}},Ge=Ee=>{try{ze(zt.throw(Ee))}catch(Xe){le(Xe)}},ze=Ee=>Ee.done?Wt(Ee.value):Promise.resolve(Ee.value).then(ye,Ge);ze((zt=zt.apply(Et,te)).next())});function _e(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 Vt(Et=[]){let te=Et;if(Array.isArray(Et)){for(let zt=0;ztRe(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 te=Et,{width:zt="100%",height:Wt="100%",value:le,language:ye="javascript",style:Ge={},options:ze={},overrideServices:Ee={},theme:Xe="vs-dark",onEditBlur:on,isCopy:rn=!1,onSave:Je,autoHeight:Tn=!1,forbidCopy:gn=!1,onChange:Cn=ie,editorDidMount:Bn=ie,onFocus:ii=ie,onBreakPoint:Nn=ie,breakPointValue:oi=[],filename:Ai="educoder.txt",errorLine:Si,errorContent:Xi="",highlightLine:Ui,openBreakPoint:_i=!1,placeholder:zi="",showMiniMap:wi=!0}=te,Wi=He(te,["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,$t.useRef)(),zn=(0,$t.useRef)({}),jn=(0,$t.useRef)(),Ln=(0,$t.useRef)(),Kn=(0,$t.useRef)([]),Xn=(0,$t.useRef)(!1),qn=(0,$t.useRef)(),ji=(0,$t.useRef)(),nn=(0,$t.useRef)(!1),[qe,Ye]=(0,$t.useState)(!1);function an(){let wn;return Kt.current&&(wn=new wt.Z(Sn=>{for(let Gn of Sn)(Gn.target.offsetHeight>0||Gn.target.offsetWidth>0)&&zn.current.instance.layout()}),wn.observe(Kt.current)),wn}function ri(){We.ZP.warning({content:decodeURIComponent(Nt),key:"monaco-editor-tip"})}const $n=()=>{let wn=zn.current.instance;if(le!=null&&wn&&qe){const Sn=wn.getModel();Sn&&le!==Sn.getValue()&&(Tt=!0,Sn.setValue(le),wn.layout(),Tt=!1)}};(0,$t.useEffect)(()=>{const wn=he.Z.subscribe("formatDocument",Sn=>{var Gn;let Fn=zn.current.instance;(Gn=Fn==null?void 0:Fn.getAction)==null||Gn.call(Fn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Sn=>{Cn(Sn)},wn},[]),(0,$t.useEffect)(()=>{var wn;let Sn=zn.current.instance;Ln.current&&clearTimeout(Ln.current),Ln.current=setTimeout(()=>{$n()},500),le&&(le!=null&&le.length)&&((wn=Sn==null?void 0:Sn.updateOptions)==null||wn.call(Sn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(le.split(/\r\n|\r|\n/g).length))+3,5)}))},[le,qe,zn.current]),(0,$t.useEffect)(()=>{if(Si&&zn.current&&zn.current.instance){let Sn=zn.current.instance;Sn.changeViewZones(function(Gn){var Fn=document.createElement("div");Fn.style.padding="10px 20px",Fn.style.width="calc(100% - 20px)",Fn.className="my-error-line-wrp",Fn.innerHTML=Xi,Gn.addZone({afterLineNumber:Si||11,heightInLines:3,domNode:Fn})});var wn={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(wn),Sn.revealPositionInCenter({lineNumber:20,column:1})}},[Si,zn.current,qe]);const mi=(wn="",Sn)=>{if(!wn||wn.trim()==="")return!0;const Fn=zn.current.instance.getModel().getLineTokens(Sn);let On=!1;for(let Vn=0;Vn<2;Vn++)Fn.getStandardTokenType(Vn)===1&&(On=!0);return On};(0,$t.useEffect)(()=>{var wn;const Sn=(wn=zn.current)==null?void 0:wn.instance;if(Sn&&qe&&gn){const Gn=Sn.onDidBlurEditorWidget(()=>{nn.current=!1}),Fn=Sn.onDidFocusEditorText(()=>{nn.current=!0});return()=>{Gn.dispose(),Fn.dispose()}}},[zn.current,qe,gn]),(0,$t.useEffect)(()=>{var wn;if((wn=zn.current)!=null&&wn.instance&&qe&&_i){let Sn=zn.current.instance,Gn=Sn.getModel();if(!Gn)return;(()=>{var Jn;let di=[],Un=[];const Bi=Gn.getAllDecorations();for(let Ii of Bi)Ii.options.className==="highlighted-line"&&(di.push((Jn=Ii==null?void 0:Ii.range)==null?void 0:Jn.startLineNumber),Un.push(Ii==null?void 0:Ii.id));if(Ui===di[0])return;Gn.deltaDecorations(Un,[]);const ki=Gn.getLineCount();Ui&&Ui<=ki&&(Sn.deltaDecorations([],[{range:new oe.Range(Ui,1,Ui,Gn.getLineMaxColumn(Ui)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Sn.revealLineInCenter(Ui))})();const On=(Jn=!1)=>{var di;let Un=[],Bi=[];const ki=Gn.getAllDecorations();for(let Ii of ki)Ii.options.linesDecorationsClassName==="breakpoints-select"&&(Un.push((di=Ii==null?void 0:Ii.range)==null?void 0:di.startLineNumber),Bi.push(Ii==null?void 0:Ii.id));if(Jn)return{lines:Un,ids:Bi};Nn(Un)},Vn=Jn=>Re(void 0,null,function*(){let di={range:new oe.Range(Jn,1,Jn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Gn.deltaDecorations([],[di]),On()}),bi=Jn=>Re(void 0,null,function*(){let di=[];const Un=Sn.getLineDecorations(Jn);for(let Bi of Un)Bi.options.linesDecorationsClassName==="breakpoints-select"&&di.push(Bi.id);yield Gn.deltaDecorations(di,[]),On()}),ui=Jn=>{let di=Sn.getLineDecorations(Jn);for(let Un of di)if(Un.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,je.isEqual)(oi,On(!0).lines)){Gn.deltaDecorations(On(!0).ids,[]);const Jn=oi.map(di=>({range:new oe.Range(di,1,di,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Gn.deltaDecorations([],Jn)}const pn=Sn.onDidChangeModelContent(Jn=>{let di=Sn.getPosition();if(di){let Un=di.lineNumber;clearTimeout(ji.current),ji.current=setTimeout(()=>{mi(Gn.getLineContent(Un),Un)?bi(Un):ui(Un)?(bi(Un),Vn(Un)):On()},100)}}),Rn=Sn.onMouseDown(Jn=>{var di,Un,Bi;if(Jn.target.detail&&((Bi=(Un=(di=Jn.target)==null?void 0:di.element)==null?void 0:Un.className)!=null&&Bi.includes("line-numbers"))){let ki=Jn.target.position.lineNumber;if(mi(Gn.getLineContent(ki),ki))return;ui(ki)?bi(ki):Vn(ki)}}),Ti=Jn=>{let di={range:new oe.Range(Jn,1,Jn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Kn.current=Sn.deltaDecorations(Kn.current,[di])},Ji=()=>{Kn.current=Sn.deltaDecorations(Kn.current,[])},hr=Sn.onMouseMove(Jn=>{var di,Un,Bi;if(Ji(),Jn.target.detail&&((Bi=(Un=(di=Jn.target)==null?void 0:di.element)==null?void 0:Un.className)!=null&&Bi.includes("line-numbers"))){let ki=Jn.target.position.lineNumber;if(mi(Gn.getLineContent(ki),ki))return;Ti(ki)}}),Ze=Sn.onMouseLeave(()=>{Ji()});return()=>{pn.dispose(),Rn.dispose(),hr.dispose(),Ze.dispose()}}},[zn.current,qe,oi,Ui,_i,ye]),(0,$t.useEffect)(()=>{var wn;(wn=zn.current)!=null&&wn.instance&&_i&&zn.current.instance.setPosition({lineNumber:0,column:0})},[Ui]);function fn(){let wn=zn.current.instance;if(wn){const Sn=wn.getSelection(),Gn=zn.current.pastePos||{},Fn=new oe.Range(Gn.startLineNumber||Sn.endLineNumber,Gn.startColumn||Sn.endColumn,Gn.endLineNumber||Sn.endLineNumber,Gn.endColumn||Sn.endColumn);setTimeout(()=>{wn.executeEdits("",[{range:Fn,text:""}])},300)}}function Wn(wn){(window.navigator.platform.match("Mac")?wn.metaKey:wn.ctrlKey)&&wn.keyCode==83&&(wn.preventDefault(),Je())}const gi=()=>{if(Tn&&zn.current.instance){const wn=zn.current.instance.getContentHeight();$e(wn{if(!nn.current)return;const{keyCode:Sn,ctrlKey:Gn,metaKey:Fn,target:On,type:Vn}=wn;return(Vn==="paste"||(Sn===67||Sn===86)&&(Fn||Gn))&&On.nodeName==="TEXTAREA"&&(ri(),wn.preventDefault()),!1};function ke(wn,Sn){var Gn=window.URL||window.webkitURL||window,Fn=new Blob([Sn]),On=document.createElementNS("http://www.w3.org/1999/xhtml","a");On.href=Gn.createObjectURL(Fn),On.download=wn,Hi(On)}(0,$t.useEffect)(()=>{gi()},[gi]),(0,$t.useEffect)(()=>{Kt.current&&!qe&&Promise.all([ce.e(8909),ce.e(6656)]).then(ce.bind(ce,71448)).then(wn=>{try{oe=wn,zn.current.instance=oe.editor.create(Kt.current,{value:le,language:Vt(ye),theme:Xe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:wi||!1}},Ee);const Sn=zn.current.instance;let On=[...Ne.BH._menuItems].find(pn=>pn[0]._debugName=="EditorContext")[1],Vn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],bi=(pn,Rn)=>{var Ti,Ji;let hr=pn._first;do Rn.includes((Ji=(Ti=hr.element)==null?void 0:Ti.command)==null?void 0:Ji.id)&&pn._remove(hr);while(hr=hr.next)};if(Bn(Sn,oe),setTimeout(()=>{gi(),zn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ke(Ai||"educoder.txt",Sn.getValue())}})},500),zn.current.subscription=Sn.onDidChangeModelContent(pn=>{Xn.current?clearTimeout(qn.current):(gi(),Cn(Sn.getValue(),pn)),qn.current=setTimeout(()=>{Xn.current=!1},500)}),window.Monaco||Ut(oe,Vt(ye)),gn&&(bi(On,Vn),Kt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Dn),window.removeEventListener("paste",Dn),window.addEventListener("keydown",Dn),window.addEventListener("paste",Dn)),window.Monaco=oe,on&&Sn.onDidBlurEditorWidget(()=>{on(Sn.getValue())}),ii&&Sn.onDidFocusEditorText(()=>{gn&&Ht(),ii(Sn.getValue())}),gn){Ht();try{Sn.onDidPaste(pn=>{const Rn=Sn.getSelection(),Ti=zn.current.pastePos||{},Ji=new oe.Range(Ti.startLineNumber||Rn.endLineNumber,Ti.startColumn||Rn.endColumn,Ti.endLineNumber||Rn.endLineNumber,Ti.endColumn||Rn.endColumn);Sn.executeEdits("",[{range:pn.range,text:""}])})}catch(pn){}}let ui=an();return zi&&typeof zi=="string"&&new be(zi,Sn,oe),Ye(!0),()=>{const pn=zn.current.instance;pn.dispose();const Rn=pn.getModel();Rn&&Rn.dispose(),zn.current.subscription&&zn.current.subscription.dispose(),ui.unobserve(Kt.current)}}catch(Sn){}})},[]),(0,$t.useEffect)(()=>{if(zn.current.instance&&qe)return document.addEventListener("keydown",Wn,!1),()=>{document.removeEventListener("keydown",Wn)}},[Je,qe]),(0,$t.useEffect)(()=>{let wn=zn.current.instance;if(wn&&qe){let Sn=Vt(ye);oe.editor.setModelLanguage(wn.getModel(),Sn)}},[ye,qe]),(0,$t.useEffect)(()=>{zn.current.instance&&qe&&oe.editor.setTheme(Xe)},[Xe,qe]),(0,$t.useEffect)(()=>{let wn=zn.current.instance;jn.current=ze,wn&&qe&&(wn.updateOptions(Ae({},ze)),setTimeout(()=>{wn.getModel().updateOptions(Ae({},ze))},200))},[JSON.stringify(ze),qe]),(0,$t.useEffect)(()=>{let wn=zn.current.instance;wn&&qe&&wn.layout()},[zt,Wt,qe]);const[Ue,kn]=(0,$t.useState)(_e(zt)),[En,$e]=(0,$t.useState)(_e(Wt)),bn=Pe(Ae({},Ge),{width:Ue,height:En,position:"relative"});return $t.createElement("div",{className:"my-monaco-editor",ref:Kt,style:bn},rn&&$t.createElement(Jt.CopyToClipboard,{text:le,onCopy:()=>We.ZP.success("\u590D\u5236\u6210\u529F")},$t.createElement(we.Z,{title:"\u590D\u5236\u4EE3\u7801"},$t.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},$t.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Pt({width:Et="100%",height:te="100%",original:zt,modified:Wt,language:le,options:ye={}}){const Ge=(0,$t.useRef)(),[ze,Ee]=(0,$t.useState)(null);function Xe(Tn){let gn;return Ge.current&&(gn=new wt.Z(Cn=>{for(let Bn of Cn)(Bn.target.offsetHeight>0||Bn.target.offsetWidth>0)&&Tn.layout()}),gn.observe(Ge.current)),gn}(0,$t.useEffect)(()=>(Ge.current&&Promise.all([ce.e(8909),ce.e(9404)]).then(ce.bind(ce,2550)).then(Tn=>{oe=Tn;const gn=oe.editor.createDiffEditor(Ge.current,Pe(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(gn);let Cn=Xe(gn);return()=>{gn.dispose();const Bn=gn.getModel();Bn&&Bn.dispose(),Cn.unobserve(Ge.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,$t.useEffect)(()=>{ze&&ze.setModel({original:oe.editor.createModel(zt,le),modified:oe.editor.createModel(Wt,le)})},[zt,Wt,le,ze]);const on=_e(Et),rn=_e(te),Je={width:on,height:rn};return $t.createElement("div",{className:"my-diff-editor",ref:Ge,style:Je})}},10661:function(Pn,_n,ce){"use strict";ce.d(_n,{Z:function(){return kt}});var $t={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()($t.list,xt)},!!(Dt!=null&&Dt.length)&&(Dt==null?void 0:Dt.map((Nt,qt)=>{var ee;const{name:Yt,id:de,identifier:ge,featured:be,school_name:Ne,image_url:We,excellent:we,is_plan:je}=Nt;return Bt.createElement("div",{key:de,className:$t.wrap,style:{width:Rt,marginRight:(1+qt)%yt===0?0:et+lt,marginBottom:tt}},Bt.createElement("a",{className:$t.li,onClick:he=>{he.preventDefault(),he.stopPropagation(),ut&&(0,jt.L9)([ut]),(0,jt.xg)(`/paths/${ge}`)}},Bt.createElement("div",{className:$t.img},Bt.createElement("img",{className:$t.cover,src:`${We}`}),gt&&(0,Mt.bg)()&&(Nt==null?void 0:Nt.studying)&&Bt.createElement("div",{className:`${$t.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")),(ee=Nt==null?void 0:Nt.subject_tags)==null?void 0:ee.map((he,Jt)=>{var re,se;if(Jt===0){const ue=(re=Ut.find(Ie=>Ie.name==he))==null?void 0:re.swimg;return Bt.createElement("img",{className:$t.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:$t.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:$t.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Bt.createElement("div",{className:$t.name},Bt.createElement(Qt.Z,{title:Lt&&(Nt!=null&&Nt.excellent_alias_name)?Bt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Yt}`,Bt.createElement("br",null),Bt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Nt==null?void 0:Nt.excellent_alias_name}`)):Yt},Bt.createElement("span",{className:$t.e},Lt&&(Nt==null?void 0:Nt.excellent_alias_name)||Yt))),Bt.createElement(Qt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ne}`},Bt.createElement("div",{className:$t.unit},Bt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ne)),Bt.createElement("div",{className:$t.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(Pn,_n,ce){"use strict";ce.d(_n,{jL:function(){return Ot},w9:function(){return re},QD:function(){return on},cQ:function(){return We.Z},op:function(){return le},O5:function(){return jn},_b:function(){return Bn},t7:function(){return ot},Gi:function(){return Qe},YG:function(){return Ie},qp:function(){return kt},vr:function(){return Tn},qE:function(){return ze},Je:function(){return ft},wb:function(){return Ne},cq:function(){return ie},tp:function(){return yt}});var $t=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,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ot=({dataSource:Ln=[],img:Kn,imgWidth:Xn=346,title:qn,sunTitle:ji,bannerExtraContent:nn})=>$t.createElement("div",{className:wt.banner},$t.createElement("div",{className:wt.content},$t.createElement("aside",null,$t.createElement("p",null,$t.createElement("b",null,qn),$t.createElement("span",null,ji)),Ln.length>0&&$t.createElement("div",{className:wt.btns},Ln.map((qe,Ye)=>$t.createElement("div",{key:Ye,onClick:qe.click},qe.name,qe.sign?$t.createElement("img",{src:Qt,width:39}):null))),nn),Kn&&$t.createElement("img",{style:{marginTop:33,marginRight:38},src:Kn,width:Xn}))),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:Ln=[],value:Kn,onChange:Xn,onTitleChange:qn,className:ji,title:nn,titleWidth:qe=41,style:Ye={},fontColor:an="#6A7283",showCount:ri})=>{const[$n,mi]=(0,$t.useState)(0),[fn,Wn]=(0,$t.useState)(!1),gi=(0,$t.useRef)(null),Hi=(0,$t.useRef)(null);return(0,$t.useEffect)(()=>{var Dn;Ln.length!==0&&(((Dn=gi==null?void 0:gi.current)==null?void 0:Dn.clientHeight)>97?mi(1):mi(0)),Ln.length===0&&mi(0),Wn(!1)},[Ln]),$t.createElement("div",{className:Mt()(jt.row,ji),style:Ye},$t.createElement("div",{onClick:(0,Bt.throttle)(()=>qn==null?void 0:qn(),2e3),style:{width:qe,marginTop:fn?12:4},className:`${jt.title} ${qn?"current":""}`},nn),$t.createElement("div",{className:fn?`${jt.tagsWrap} ${jt.tagsBorderWrap}`:jt.tagsWrap},$t.createElement("div",{className:jt.bar,ref:Hi,style:$n>0?{height:$n===1?97:"auto",overflow:$n===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},$t.createElement("div",{className:jt.tag,ref:gi},Ln==null?void 0:Ln.map(Dn=>$t.createElement("span",{onClick:()=>Xn(Dn.id),key:Dn.id,style:{color:an},className:Kn===Dn.id?jt.active:""},$t.createElement("span",{title:Dn.name,className:jt.name},Dn.name),!!ri&&$t.createElement("span",{className:jt.num},Dn.count))))),!!$n&&$t.createElement($t.Fragment,null,$n===1?$t.createElement("div",{onClick:()=>{var Dn;mi(2),((Dn=gi==null?void 0:gi.current)==null?void 0:Dn.clientHeight)>245?Wn(!0):Wn(!1)},className:jt.action},"\u5C55\u5F00",$t.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):$t.createElement("div",{onClick:()=>{Hi.current.scrollTop=0,mi(1),Wn(!1)},className:jt.action},"\u6536\u8D77",$t.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:Ln=[],value:Kn,onChange:Xn,className:qn,style:ji={}})=>$t.createElement("div",{style:ji,className:Mt()(xt.tabs,qn)},Ln.map(nn=>$t.createElement("span",{onClick:()=>Xn(nn.id),className:Kn===nn.id?xt.active:"",key:nn.id},nn.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:Ln=[],value:Kn="",onChange:Xn,onInputChange:qn=()=>{},className:ji,style:nn={},placeholder:qe,allowClear:Ye=!1})=>{var an;const[ri,$n]=(0,$t.useState)(""),[mi,fn]=(0,$t.useState)("");(0,$t.useEffect)(()=>{var Hi;let Dn=Kn;(Hi=JSON.stringify(Kn))!=null&&Hi.includes("{")&&($n(Kn.id),Dn=Kn.value||"");try{fn(decodeURIComponent(Dn||""))}catch(ke){fn(decodeURIComponent(Dn||""))}},[Kn]);const Wn=()=>{Xn(encodeURIComponent(mi),ri||null)},gi=Hi=>{Hi!==ri&&($n(Hi),Xn(encodeURIComponent(mi),Hi))};return $t.createElement("div",{className:Mt()(et.input,ji),style:nn},!!Ln.length&&$t.createElement("div",{className:et.dropdown},$t.createElement("div",{className:et.text},(an=Ln.find(Hi=>Hi.id===ri))==null?void 0:an.name,$t.createElement("i",{className:"iconfont icon-zhankai4"}),$t.createElement("b",{className:et.b1}),$t.createElement("b",{className:et.b2})),$t.createElement("div",{className:et.menu},Ln.map((Hi,Dn)=>$t.createElement("div",{key:Dn,onClick:()=>gi(Hi.id)},Hi.name)))),$t.createElement(tt.default,{onPressEnter:Wn,value:mi,onChange:Hi=>{fn(Hi.target.value),qn(encodeURIComponent(Hi.target.value),ri||null)},bordered:!1,placeholder:qe}),$t.createElement("i",{onClick:Wn,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:Ln,onChange:Kn,className:Xn,total:qn,pageSize:ji,style:nn={}})=>{const qe=Ln<2,Ye=Ln>=Math.ceil(qn/ji);return qn<=ji?$t.createElement($t.Fragment,null):$t.createElement("div",{className:Mt()(ut.quickPager,Xn),style:nn},$t.createElement("div",{onClick:()=>{qe||Kn(Ln-1,"prev")},className:qe?ut.disabled:""},"\u4E0A\u4E00\u9875"),$t.createElement("div",{onClick:()=>{Ye||Kn(Ln+1,"next")},className:Ye?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),ee=ce(96908),Yt=ce(57177),de=ce(81378),ge=ce(28426),Ne=({className:Ln,dataSource:Kn=[],col:Xn=4,right:qn,bottom:ji=23,precision:nn=0,wrapWidth:qe=1200,trackEventItems:Ye,loading:an})=>{const ri=Math.floor((qe-(Xn-1)*qn)/Xn);return $t.createElement(Lt.Z,{spinning:an},$t.createElement("div",{className:Mt()(gt.list,Ln)},!!Kn.length&&Kn.map(($n,mi)=>{const{name:fn,id:Wn,identifier:gi,power:Hi,cover_image_id:Dn,pic:ke}=$n;return $t.createElement("div",{className:gt.wrap,key:Wn,style:{width:ri,marginRight:(1+mi)%Xn===0?0:qn+nn,marginBottom:ji}},$t.createElement("a",{target:"_blank",href:`/shixuns/${gi}/challenges`,className:gt.li,onClick:Ue=>{Ue.preventDefault(),Ye&&(0,qt.L9)([Ye]),Hi&&(0,qt.xg)(`/shixuns/${gi}/challenges`)}},$t.createElement("div",{className:gt.img},$t.createElement("img",{className:gt.cover,src:`${ke}`}),$n.is_jupyter&&$t.createElement("img",{className:gt.sign,src:ee}),$n.is_jupyter_lab&&$t.createElement("img",{className:gt.sign,src:Yt}),$n.is_unity_3d&&$t.createElement("img",{className:gt.sign,src:de})),$t.createElement("div",{className:gt.name},$t.createElement(Rt.Z,{title:fn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},$t.createElement("span",{className:gt.e},fn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),$t.createElement("div",{className:gt.tags},$t.createElement(Rt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},$t.createElement("span",null,$t.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),$t.createElement("span",null,$n.challenges_count))),!!$n.myshixuns_count&&$t.createElement(Rt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},$t.createElement("span",null,$t.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),$t.createElement("span",null,$n.myshixuns_count))),$t.createElement(Rt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},$t.createElement("span",null,$t.createElement("span",null,$n.level))),$t.createElement("div",{className:gt.rate},$t.createElement(Ut.Z,{allowHalf:!0,disabled:!0,defaultValue:$n.score_info}),$t.createElement("span",null,"\xA0",$n.score_info?`${$n.score_info}\u5206`:"5\u5206")))),!Hi&&$t.createElement("div",{className:gt.lockWrap},$t.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),$t.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Kn.length&&$t.createElement(ge.Z,null)))},We=ce(10661),we={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"},je="data:image/png;base64,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",he=ce(59301),re=({className:Ln,dataSource:Kn=[],col:Xn=4,right:qn,bottom:ji=23,precision:nn=0,wrapWidth:qe=1200,trackEventItems:Ye,loading:an,handleVery:ri=()=>!0})=>{const $n=Math.floor((qe-(Xn-1)*qn)/Xn);return he.createElement(Lt.Z,{spinning:an},he.createElement("div",{className:Mt()(we.list,Ln)},!!Kn.length&&Kn.map((mi,fn)=>{const{subject_identifier:Wn,id:gi,identifier:Hi,power:Dn}=mi,ke=mi.is_public!=0&&mi.is_public;return he.createElement("div",{className:we.wrap,key:gi,style:{width:$n,marginRight:(1+fn)%Xn===0?0:qn+nn,marginBottom:ji}},he.createElement("a",{className:we.li,onClick:Ue=>{Ue.preventDefault(),ri(mi==null?void 0:mi.first_category_url)&&(Ye&&(0,qt.L9)([Ye]),(0,qt.xg)(mi.first_category_url))}},he.createElement("div",{className:we.top},he.createElement(Rt.Z,{title:mi.name},he.createElement("div",{className:we.name},mi.name)),he.createElement("img",{className:we.img,src:Nt.Z.IMG_SERVER+"/images/"+mi.avatar_url}),he.createElement("div",{className:we.text,title:mi.creator},mi.creator),Wn&&he.createElement("div",{className:we.btns},he.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),he.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ke&&he.createElement("div",{className:we.sign},"\u516C\u5F00")),he.createElement("div",{className:we.bottom},mi.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,mi.visits))),mi.course_members_count>0&&he.createElement(Rt.Z,{title:"\u6210\u5458",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-chengyuan"}),mi.course_members_count)),mi.tasks_count>0&&he.createElement(Rt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-zuoye"}),mi.tasks_count)),mi.is_end?he.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):he.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!mi.is_accessible&&he.createElement("div",{className:we.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")))}),!Kn.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),Ie=({dataSource:Ln=[],value:Kn,onChange:Xn,className:qn,style:ji={},tabBarExtraContent:nn})=>$t.createElement("div",{className:Mt()(se.tabs,qn),style:ji},$t.createElement("div",{className:se.tabsWrap},Ln.map((qe,Ye)=>!(qe!=null&&qe.hide)&&$t.createElement("aside",{className:se.tab,onClick:()=>{Xn(qe.id),qe.link&&pe.history.push(qe.link)},key:Ye},$t.createElement("div",{className:Kn===qe.id?se.active:""},qe.name),(qe==null?void 0:qe.resetCount)==null&&(qe==null?void 0:qe.total)!==void 0&&$t.createElement("span",null,"\uFF08",qe==null?void 0:qe.total,"\uFF09"),(qe==null?void 0:qe.resetCount)!==void 0&&(qe==null?void 0:qe.total)!==void 0&&$t.createElement(Rt.Z,{title:(qe==null?void 0:qe.tip)!=null?qe==null?void 0:qe.tip:""},$t.createElement("span",{style:{color:"#9096A3"}},"\uFF08",$t.createElement("span",{style:{color:"#000"}},qe==null?void 0:qe.resetCount),"/",$t.createElement("span",null,qe==null?void 0:qe.total),"\uFF09"))))),$t.createElement("div",{className:se.tabBar},nn)),Qe=({className:Ln,style:Kn={},children:Xn})=>$t.createElement("div",{className:Mt()(Ln),style:Kn},Xn),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"},Pe=ce(75727),He=ce(93041);const Re=[{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:Ln,dropValue:Kn,className:Xn,onSort:qn,onDrop:ji,dataSource:nn=Re})=>{var qe;return $t.createElement("div",{className:Mt()(Ae.orderWrap,Xn)},$t.createElement(Pe.Z,{dropdownRender:()=>$t.createElement(He.default,null,nn.map((Ye,an)=>$t.createElement(He.default.Item,{key:an,onClick:()=>ji(Ye.id)},Ye.name)))},$t.createElement("span",{className:Ae.orderTextWrap},(qe=nn.find(Ye=>Kn===Ye.id))==null?void 0:qe.name)),$t.createElement("span",{className:Ae.orderIconWrap},$t.createElement("span",{className:Ae.orderAsc},$t.createElement("i",{className:Ln==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ae.cursorPointer} ${Ae.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ae.cursorPointer}`,onClick:()=>qn(Ln==="asc"?"desc":"asc")})),$t.createElement("span",{className:Ae.orderDesc},$t.createElement("i",{className:Ln==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ae.cursorPointer} ${Ae.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ae.cursorPointer}`,onClick:()=>qn(Ln==="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),Vt=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Pt=(Ln,Kn,Xn)=>Kn in Ln?Vt(Ln,Kn,{enumerable:!0,configurable:!0,writable:!0,value:Xn}):Ln[Kn]=Xn,Et=(Ln,Kn)=>{for(var Xn in Kn||(Kn={}))Ht.call(Kn,Xn)&&Pt(Ln,Xn,Kn[Xn]);if(oe)for(var Xn of oe(Kn))It.call(Kn,Xn)&&Pt(Ln,Xn,Kn[Xn]);return Ln},te=(Ln,Kn)=>{var Xn={};for(var qn in Ln)Ht.call(Ln,qn)&&Kn.indexOf(qn)<0&&(Xn[qn]=Ln[qn]);if(Ln!=null&&oe)for(var qn of oe(Ln))Kn.indexOf(qn)<0&&It.call(Ln,qn)&&(Xn[qn]=Ln[qn]);return Xn},zt=(Ln,Kn,Xn)=>new Promise((qn,ji)=>{var nn=an=>{try{Ye(Xn.next(an))}catch(ri){ji(ri)}},qe=an=>{try{Ye(Xn.throw(an))}catch(ri){ji(ri)}},Ye=an=>an.done?qn(an.value):Promise.resolve(an.value).then(nn,qe);Ye((Xn=Xn.apply(Ln,Kn)).next())}),le=Ln=>{var Kn=Ln,{className:Xn,style:qn,children:ji,loading:nn=!1,openLoading:qe,onClick:Ye=()=>{},size:an="middle",shape:ri="round"}=Kn,$n=te(Kn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[mi,fn]=(0,$t.useState)(!1);return $t.createElement(At.ZP,Et({onClick:(0,Bt.throttle)(Wn=>zt(void 0,null,function*(){qe&&fn(!0);try{yield Ye(Wn)}catch(gi){console.log("error",gi)}qe&&fn(!1)}),2e3,{leading:!0,trailing:!1}),className:Mt()(Tt.btn,Tt[`${an}-${ri}`],Xn),style:qn,size:an,shape:ri,loading:mi||nn},$n),ji)},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"},ze=({className:Ln,style:Kn,children:Xn=null,onClick:qn,title:ji})=>$t.createElement("div",{className:Mt()(ye.head,Ln),style:Kn},$t.createElement("span",{className:"primary-hover",onClick:qn},$t.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),$t.createElement("b",{title:ji},ji),$t.createElement("div",{className:ye.node},Xn)),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:Ln=!0,confirmTitle:Kn,confirmClick:Xn,cancelShow:qn=!0,cancelTitle:ji,cancelClick:nn,className:qe,style:Ye,confirmLoading:an=!1})=>$t.createElement("div",{className:Mt()(Ee.btns,qe),style:Ye},Ln&&$t.createElement(At.ZP,{loading:an,onClick:Xn,type:"primary",className:Ee.confirm},Kn),qn&&$t.createElement(At.ZP,{onClick:nn,className:Ee.cancel},ji)),rn={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"},Tn=({className:Ln,style:Kn={},LeftContent:Xn,children:qn,RightContent:ji})=>$t.createElement("div",{className:Mt()(rn.fixedBottom,Ln),style:Kn},$t.createElement("div",{className:rn.wrap},$t.createElement("div",{className:rn.left},Xn),$t.createElement("div",{className:rn.center},qn),$t.createElement("div",{className:rn.right},ji))),gn={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"},Bn=({className:Ln,style:Kn={},dataSource:Xn=[]})=>$t.createElement("div",{className:Mt()(gn.crumbs,Ln),style:Kn},Xn.map((qn,ji)=>jipe.history.push(qn.path)},qn.name):$t.createElement("span",null,qn.name),$t.createElement("span",null,"\xA0",">","\xA0")):$t.createElement("span",{key:ji,style:{color:"#5F6368"}},qn.name))),ii=ce(11938),Nn=Object.defineProperty,oi=Object.defineProperties,Ai=Object.getOwnPropertyDescriptors,Si=Object.getOwnPropertySymbols,Xi=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,_i=(Ln,Kn,Xn)=>Kn in Ln?Nn(Ln,Kn,{enumerable:!0,configurable:!0,writable:!0,value:Xn}):Ln[Kn]=Xn,zi=(Ln,Kn)=>{for(var Xn in Kn||(Kn={}))Xi.call(Kn,Xn)&&_i(Ln,Xn,Kn[Xn]);if(Si)for(var Xn of Si(Kn))Ui.call(Kn,Xn)&&_i(Ln,Xn,Kn[Xn]);return Ln},wi=(Ln,Kn)=>oi(Ln,Ai(Kn)),Wi=(Ln,Kn)=>{var Xn={};for(var qn in Ln)Xi.call(Ln,qn)&&Kn.indexOf(qn)<0&&(Xn[qn]=Ln[qn]);if(Ln!=null&&Si)for(var qn of Si(Ln))Kn.indexOf(qn)<0&&Ui.call(Ln,qn)&&(Xn[qn]=Ln[qn]);return Xn};const{Countdown:Kt}=ii.default;var jn=Ln=>{var Kn=Ln,{onChange:Xn}=Kn,qn=Wi(Kn,["onChange"]);const[ji,nn]=(0,$t.useState)(null);(0,$t.useEffect)(()=>{typeof ji=="number"&&ji>=0&&Xn(ji)},[ji]);const qe=Ye=>{const an=Math.floor(Ye/1e3);nn(an)};return $t.createElement(Kt,wi(zi({},qn),{onChange:qe}))}},37808:function(Pn,_n,ce){"use strict";ce.d(_n,{Z:function(){return wt}});var $t=ce(59301);function wt(Qt,Zt){const Ot=(0,$t.useRef)();(0,$t.useEffect)(()=>{Ot.current=Qt}),(0,$t.useEffect)(()=>{function jt(){Ot.current()}if(Zt!==null){let Ct=setInterval(jt,Zt);return()=>clearInterval(Ct)}},[Zt])}},51917:function(Pn,_n,ce){"use strict";ce.d(_n,{$J:function(){return Qt},JZ:function(){return Ot},bN:function(){return Ct},jP:function(){return jt},rO:function(){return Zt}});var $t=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,$t.U2)(`libraries/${Mt}.json`)}function Zt(){return(0,$t.U2)("library_tags.json")}function Ot(Mt){return wt(this,null,function*(){return(yield(0,$t.IV)(`attachments/${Mt}.json`)).status===0})}function jt(Mt){return(0,$t.v_)("libraries.json",Mt)}function Ct(Mt,Bt){return(0,$t.gz)(`libraries/${Mt}.json`,Bt)}},23019:function(Pn,_n,ce){"use strict";ce.d(_n,{Z:function(){return Ut}});var $t=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,ee)=>qt in Nt?yt(Nt,qt,{enumerable:!0,configurable:!0,writable:!0,value:ee}):Nt[qt]=ee,ut=(Nt,qt)=>{for(var ee in qt||(qt={}))tt.call(qt,ee)&&ot(Nt,ee,qt[ee]);if(et)for(var ee of et(qt))lt.call(qt,ee)&&ot(Nt,ee,qt[ee]);return Nt},ct=(Nt,qt,ee)=>new Promise((Yt,de)=>{var ge=We=>{try{Ne(ee.next(We))}catch(we){de(we)}},be=We=>{try{Ne(ee.throw(We))}catch(we){de(we)}},Ne=We=>We.done?Yt(We.value):Promise.resolve(We.value).then(ge,be);Ne((ee=ee.apply(Nt,qt)).next())});const{TextArea:ft}=Qt.default,gt=1024,Lt=(Nt,qt)=>{var ee;const{uploadInfo:Yt={}}=qt.payload||{};switch(qt.type){case"addVideo":return{videoList:[...Nt.videoList,{name:Yt.file.name,size:Yt.file.size,type:Yt.file.type,fileHash:Yt.fileHash,state:Yt.state,videoId:Yt.videoId,loaded:Yt.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:Yt.videoId,fileHash:Yt.fileHash}):de)};case"updateTitle":return{videoList:(ee=Nt.videoList)==null?void 0:ee.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:ee,dispatch:Yt,visible:de,editData:ge,onCancel:be=()=>{},onOk:Ne=()=>{},queryParams:We={}})=>{var we;const je=(0,wt.useParams)(),[he]=Zt.default.useForm(),[Jt,re]=(0,$t.useReducer)(Lt,{videoList:[]}),[se,pe]=(0,$t.useState)(!1),ue=(0,$t.useRef)(),[Ie,Fe]=(0,$t.useState)(),[Qe,Ae]=(0,$t.useState)(!1),[Pe,He]=(0,$t.useState)(!1),Re=(0,Dt.Ny)()?3:1;(0,$t.useEffect)(()=>{var Wt,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(((Wt=ge==null?void 0:ge.tags)==null?void 0:Wt.map(Ge=>Ge==null?void 0:Ge.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 _e=()=>{const Wt=document.getElementById("fileUpload");Wt.value=""},ie=Wt=>{var le;Ae(!1);const ye=Wt.target.files[0];if(!ye){_e();return}const Ge=ye.name.toLowerCase();if(Ge&&Ge.indexOf(".avi")==-1&&Ge.indexOf(".flv")==-1&&Ge.indexOf(".f4v")==-1&&Ge.indexOf(".m4v")==-1&&Ge.indexOf(".mov")==-1&&Ge.indexOf(".mp4")==-1&&Ge.indexOf(".rmvb")==-1&&Ge.indexOf(".swf")==-1&&Ge.indexOf(".webm")==-1&&Ge.indexOf(".wmv")==-1){Ot.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),_e();return}if(ye.size>gt*Re*1024*1024){Ot.ZP.info(`\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7${Re}G`),_e();return}if((le=Jt.videoList)!=null&&le.find(ze=>ze.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"),_e();return}At(ye)},Tt=(Wt,le)=>{jt.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:$t.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",le?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{_e(),re({type:"removeVideo",payload:{name:Wt}})}})},At=Wt=>{var le,ye='{"Vod":{}}';if(pe(!0),ue.current){ue.current.addFile(Wt,null,null,null,ye);return}(0,kt.o)((le=Nt.userInfo)==null?void 0:le.login,"",{create:!ue,addFileSuccess:Ge=>{re({type:"addVideo",payload:{uploadInfo:Ge}})},onUploadProgress:(Ge,ze,Ee)=>{const Xe=Math.ceil(Ee*100);re({type:"updateProgress",payload:{uploadInfo:Ge,progressPercent:Xe}}),_e()},onUploadFailed:Ge=>{Ot.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:Ge=>{pe(!1)},onUploadSucceed:Ge=>{pe(!1)},onUploadError:Ge=>{pe(!1)},gotUploader:Ge=>{Ge.addFile(Wt,null,null,null,ye),ue.current=Ge}})},Vt=()=>ct(void 0,null,function*(){var Wt,le;if(yield he.validateFields(),!Qe&&!((Wt=Jt.videoList)!=null&&Wt.length)||Qe&&!Ie){Ot.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");return}He(!0);const ye=Qe?{link:Ie}:{video_id:(le=Jt.videoList)==null?void 0:le[0].videoId},Ge=yield Ne(ut(ut(ut({},ye),We),{name:he.getFieldValue("name"),attachment_id:he.getFieldValue("attachment_id"),description:he.getFieldValue("description"),tags:he.getFieldValue("tag"),allow_skip:he.getFieldValue("allow_skip")}));He(!1),Ge!=null&&Ge.id&&oe()}),oe=()=>{he.resetFields(),re({type:"removeAll"}),Fe(null),Et([]),Ae(null)},Ht=()=>{be(),oe()},It=()=>{var Wt,le,ye,Ge,ze,Ee,Xe,on,rn,Je,Tn,gn;return $t.createElement($t.Fragment,null,!Qe&&!!((Wt=Jt.videoList)!=null&&Wt.length)&&$t.createElement("div",{className:St.fileProgress},((ye=(le=Jt.videoList)==null?void 0:le[0])==null?void 0:ye.loaded)==100?$t.createElement("div",{className:`${St.videoName} font14`},(ze=(Ge=Jt.videoList)==null?void 0:Ge[0])==null?void 0:ze.name):$t.createElement(Ct.Z,{style:{width:"80%"},percent:(Xe=(Ee=Jt.videoList)==null?void 0:Ee[0])==null?void 0:Xe.loaded,status:((rn=(on=Jt.videoList)==null?void 0:on[0])==null?void 0:rn.loaded)==100?"normal":"active"}),$t.createElement("div",{className:St.fileCancel,onClick:()=>{var Cn,Bn,ii,Nn;return Tt((Bn=(Cn=Jt.videoList)==null?void 0:Cn[0])==null?void 0:Bn.name,((Nn=(ii=Jt.videoList)==null?void 0:ii[0])==null?void 0:Nn.loaded)==100)}},((Tn=(Je=Jt.videoList)==null?void 0:Je[0])==null?void 0:Tn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((gn=Jt.videoList)!=null&&gn.length)&&$t.createElement("div",{className:St.uploadWrap},$t.createElement("label",{htmlFor:"fileUpload",className:St.upload},$t.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),$t.createElement("label",{className:`${St.upload} ${St.uploadLink}`,onClick:()=>Ae(!0)},$t.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),Qe&&$t.createElement(Qt.default,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:Ie,onChange:Cn=>Fe(Cn.target.value)}))},[Pt,Et]=(0,$t.useState)([]),te=Wt=>{if(Wt.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=(Wt,le)=>{Wt.preventDefault(),Et([...Pt.filter(ye=>ye!=le)])};return $t.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:Pe,onOk:Vt,onCancel:Ht},$t.createElement(Zt.default,{form:he},$t.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/*"}),$t.createElement(Zt.default.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},$t.createElement(Qt.default,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),$t.createElement(Zt.default.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:St.contentItem},It()),$t.createElement(Zt.default.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},$t.createElement(xt.Z,{getFileProgress:Wt=>{if(Wt.file.status==="uploading"){He(!0);return}Wt.file.status==="done"&&He(!1)}})),$t.createElement(Zt.default.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},$t.createElement(ft,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),$t.createElement(Zt.default.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},$t.createElement(Qt.default,{onKeyUp:te})),$t.createElement(Zt.default.Item,{label:"\u64AD\u653E\u8BBE\u7F6E",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0},$t.createElement(Mt.default,null,"\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E")),$t.createElement("div",{className:St["tagsList-content"]},Pt.map((Wt,le)=>$t.createElement(Bt.default,{key:le+Wt,closable:!0,onClose:ye=>{zt(ye,Wt)}},Wt))),$t.createElement("div",{className:"c-grey-999"},$t.createElement("div",null,"\u6CE8\u610F\uFF1A"),$t.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",$t.createElement(wt.Link,{to:`/users/${(we=Nt.userInfo)==null?void 0:we.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"),$t.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Re,"G\uFF1B"),$t.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),$t.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:ee})=>({user:Nt,globalSetting:ee,loading:qt}))(Rt)},67776:function(Pn,_n,ce){"use strict";ce.d(_n,{o:function(){return Bt}});var $t=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,$t.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,$t.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,$t.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(Pn,_n,ce){"use strict";ce.d(_n,{AL:function(){return ft},Iy:function(){return kt},Qv:function(){return yt},ez:function(){return ct},jb:function(){return xt}});var $t=ce(32834),wt=ce.n($t),Qt=ce(11690),Zt=ce.n(Qt);let Ot=1;function jt(Nt,qt){const ee=Nt.match(/^(\s+)(?:```)/);if(ee===null)return qt;const Yt=ee[1];return qt.split(` `).map(de=>{const ge=de.match(/^\s+/);if(ge===null)return de;const[be]=ge;return be.length>=Yt.length?de.slice(Yt.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,ee,Yt){if(qt>=Nt.length||Nt[qt].level<=ee)return qt;var de=Nt[qt];Yt.push("
    • "+de.text+""),qt++;var ge=[];return qt=Dt(Nt,qt,de.level,ge),ge.length>0&&(Yt.push("
        "),ge.forEach(function(be){Yt.push(be)}),Yt.push("
      ")),Yt.push("
    • "),qt=Dt(Nt,qt,ee,Yt),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 ee=qt[0];let Yt=jt(ee,qt[3]||"");const de=qt[2]?qt[2].trim():qt[2];if(["latex","katex","math"].indexOf(de)>=0){const ge=ot(),be=Yt;Yt=ge,ut[ge]={type:"block",expression:be}}return{type:"code",raw:ee,lang:de,text:Yt}}}},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,ee)=>{const Yt=ot();return ut[Yt]={type:"inline",expression:ee},Yt}),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,ee){const Yt=(qt||"").match(/\S*/)[0];return Yt?["latex","katex","math"].indexOf(Yt)>=0?`

    ${Nt}

    `:`
    ${ee?Nt:(0,Qt.escape)(Nt,!0)}
    `:'
    '+(ee?Nt:(0,Qt.escape)(Nt,!0))+"
    "},Bt.heading=function(Nt,qt,ee){let Yt=this.options.headerPrefix+ee.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ct.push({anchor:Yt,level:qt,text:Nt}),"'+Nt+""},wt().setOptions({silent:!0,gfm:!0,pedantic:!1}),wt().use({tokenizer:et,renderer:Bt}),_n.ZP=wt()},40197:function(Pn,_n,ce){"use strict";ce.d(_n,{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 $t=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((ee,Yt)=>{var de=Ne=>{try{be(qt.next(Ne))}catch(We){Yt(We)}},ge=Ne=>{try{be(qt.throw(Ne))}catch(We){Yt(We)}},be=Ne=>Ne.done?ee(Ne.value):Promise.resolve(Ne.value).then(de,ge);be((qt=qt.apply(Ut,Nt)).next())});const yt=(Ut,Nt=!1,qt=!1,ee="",Yt=!1)=>!!(et(Ut)&<(Ut,Nt,qt,ee,Yt)),et=Ut=>(0,Ot.bg)()?!0:(Ut({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),tt=Ut=>{var Nt,qt,ee;const{user:Yt}=(0,$t.getDvaApp)()._store.getState();(0,Ot.bg)()&&!((qt=(Nt=Yt==null?void 0:Yt.userInfo)==null?void 0:Nt.course)!=null&&qt.course_public)&&!((ee=Yt==null?void 0:Yt.userInfo)!=null&&ee.profile_completed)&&Ut({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},lt=(Ut,Nt=!1,qt=!0,ee="",Yt=!1)=>{var de;const{user:ge}=(0,$t.getDvaApp)()._store.getState();return(de=ge.userInfo)!=null&&de.profile_completed?!0:(qt?Ut({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:ee,isCurrentPage:Yt}}):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,$t.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,$t.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 ee="";return(qt==null?void 0:qt.public)===2&&(ee="\u5DF2\u516C\u5F00"),(qt==null?void 0:qt.public)===1&&(ee="\u5F85\u5BA1\u6838"),(qt==null?void 0:qt.shixun_status)===3&&(ee="\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",ee,"\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(Pn,_n,ce){(function($t){if(1)window.OSS=$t(),Pn.exports=$t();else var wt})(function(){var $t;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,Ie;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(Ie=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(Ie=Fe.sent,Ie.code!=="RequestTimeTooSkewed"){Fe.next=23;break}return this.options.amendTimeSkewed=+new Date(Ie.serverTime)-new Date,Fe.next=22,this.request(re);case 22:return Fe.abrupt("return",Fe.sent);case 23:Ie.params=re,Fe.next=30;break;case 26:if(!ue){Fe.next=30;break}return Fe.next=29,this.requestError(ue);case 29:Ie=Fe.sent;case 30:if(!Ie){Fe.next=32;break}throw Ie;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 we._isIP(Jt)},he._escape=function(Jt){return Yt.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 Ie={};if(Jt.query&&Ut(Ie,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(Ie,Fe)}return re.query=Ie,Nt.format(re)},he._getUserAgent=function(){var Jt=Ot&&Ot.browser?"js":"nodejs",re="aliyun-sdk-"+Jt+"/"+ge.version,se=ee.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,Ie;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:Ie=ue.Message||"unknow request error, status: "+re.status,ue.Condition&&(Ie+=" (condition: "+ue.Condition+")"),se=new Error(Ie),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,ee,Yt,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(Yt),de=this._divideParts(Rt,Ut),ge=de.length,be=!1,Ne=kt.default.mark(function Qe(Ae,Pe){var He,Re,_e;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,He=de[Pe-1],Re={stream:Ae._createStream(Lt,He.start,He.end),size:He.end-He.start},ie.next=6,Ae._uploadPart(ee,Nt,Pe,Re);case 6:if(_e=ie.sent,Ae.isCancel()||be){ie.next=13;break}if(ft.doneParts.push({number:Pe,etag:_e.res.headers.etag}),Yt.push({number:Pe,etag:_e.res.headers.etag}),!gt||!gt.progress){ie.next=13;break}return ie.next=13,gt.progress(qt.length/ge,ft,_e.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=Pe,ie.t0;case 21:case"end":return ie.stop()}},Qe,this,[[1,15]])}),We=(0,Bt.default)(new Array(ge),function(Qe,Ae){return Ae+1}),we=Yt.map(function(Qe){return Qe.number}),je=We.filter(function(Qe){return we.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(),Ie=ue[0],Ie.message="Failed to upload some parts with error: "+Ie.toString()+" part_num: "+Ie.partNum,Ie;case 37:if(!this.isCancel()){Fe.next=40;break}throw se=null,this._makeCancelEvent();case 40:return Fe.next=42,this.completeMultipartUpload(ee,Nt,Yt,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,ee=qt.data,Yt=ee&&ee.Deleted||null,Yt&&(Array.isArray(Yt)||(Yt=[Yt]),Yt=Yt.map(function(ge){return ge.Key})),de.abrupt("return",{res:qt.res,deleted:Yt});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(ee){for(;;)switch(ee.prev=ee.next){case 0:return Rt=Rt||{},Rt.headers=Rt.headers||{},(0,Ct.default)(Rt.headers).forEach(function(Yt){Rt.headers["x-oss-copy-source-"+Yt.toLowerCase()]=Rt.headers[Yt]}),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],ee.next=12,this.request(Ut);case 12:return Nt=ee.sent,qt=Nt.data,qt&&(qt={etag:qt.ETag,lastModified:qt.LastModified}),ee.abrupt("return",{data:qt,res:Nt.res});case 16:case"end":return ee.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,ee;return Bt.default.wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return Rt=this._objectRequestParams("GET","",Lt),Rt.query=gt,Rt.xmlResponse=!0,Rt.successStatuses=[200],Yt.next=6,this.request(Rt);case 6:return Ut=Yt.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}}})),ee=Ut.data.CommonPrefixes||null,ee&&(Array.isArray(ee)||(ee=[ee]),ee=ee.map(function(de){return de.Prefix})),Yt.abrupt("return",{res:Ut.res,objects:Nt,prefixes:ee,nextMarker:Ut.data.NextMarker||null,isTruncated:Ut.data.IsTruncated==="true"});case 13:case"end":return Yt.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),ee=(/SamsungBrowser/i.test(Dt),!qt&&/windows/i.test(Dt)),Yt=!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),We=!Ne&&/[^-]mobi/i.test(Dt),we=/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"):Yt?(tt.mac=kt,tt.osname="macOS"):we?(tt.xbox=kt,tt.osname="Xbox"):ee?(tt.windows=kt,tt.osname="Windows"):de&&(tt.linux=kt,tt.osname="Linux"):(tt.android=kt,tt.osname="Android");var je="";tt.windows?je=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?je=yt(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):tt.mac?(je=yt(/Mac OS X (\d+([_\.\s]\d+)*)/i),je=je.replace(/[_\s]/g,".")):lt?(je=yt(/os (\d+([_\s]\d+)*) like mac os x/i),je=je.replace(/[_\s]/g,".")):ut?je=yt(/android[ \/-](\d+(\.\d+)*)/i):tt.webos?je=yt(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):tt.blackberry?je=yt(/rim\stablet\sos\s(\d+(\.\d+)*)/i):tt.bada?je=yt(/bada\/(\d+(\.\d+)*)/i):tt.tizen&&(je=yt(/tizen[\/\s](\d+(\.\d+)*)/i)),je&&(tt.osversion=je);var he=!tt.windows&&je.split(".")[0];return Ne||ft||lt=="ipad"||ut&&(he==3||he>=4&&!We)||tt.silk?tt.tablet=kt:(We||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 te=Pt.length;if(te===0)return 0;for(var zt=!1;;)switch(Et){case"ascii":case"latin1":case"binary":return te;case"utf8":case"utf-8":case void 0:return Pe(Pt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*te;case"hex":return te>>>1;case"base64":return _e(Pt).length;default:if(zt)return Pe(Pt).length;Et=(""+Et).toLowerCase(),zt=!0}}function ct(Pt,Et,te){var zt=!1;if((Et===void 0||Et<0)&&(Et=0),Et>this.length||((te===void 0||te>this.length)&&(te=this.length),te<=0)||(te>>>=0,Et>>>=0,te<=Et))return"";for(Pt||(Pt="utf8");;)switch(Pt){case"hex":return we(this,Et,te);case"utf8":case"utf-8":return ge(this,Et,te);case"ascii":return Ne(this,Et,te);case"latin1":case"binary":return We(this,Et,te);case"base64":return de(this,Et,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return je(this,Et,te);default:if(zt)throw new TypeError("Unknown encoding: "+Pt);Pt=(Pt+"").toLowerCase(),zt=!0}}function ft(Pt,Et,te){var zt=Pt[Et];Pt[Et]=Pt[te],Pt[te]=zt}function gt(Pt,Et,te,zt,Wt){if(Pt.length===0)return-1;if(typeof te=="string"?(zt=te,te=0):te>2147483647?te=2147483647:te<-2147483648&&(te=-2147483648),te=+te,isNaN(te)&&(te=Wt?0:Pt.length-1),te<0&&(te=Pt.length+te),te>=Pt.length){if(Wt)return-1;te=Pt.length-1}else if(te<0){if(!Wt)return-1;te=0}if(typeof Et=="string"&&(Et=Mt.from(Et,zt)),Mt.isBuffer(Et))return Et.length===0?-1:Lt(Pt,Et,te,zt,Wt);if(typeof Et=="number")return Et&=255,Mt.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Wt?Uint8Array.prototype.indexOf.call(Pt,Et,te):Uint8Array.prototype.lastIndexOf.call(Pt,Et,te):Lt(Pt,[Et],te,zt,Wt);throw new TypeError("val must be string, number or Buffer")}function Lt(Pt,Et,te,zt,Wt){function le(Je,Tn){return ye===1?Je[Tn]:Je.readUInt16BE(Tn*ye)}var ye=1,Ge=Pt.length,ze=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,Ge/=2,ze/=2,te/=2}var Ee;if(Wt){var Xe=-1;for(Ee=te;EeGe&&(te=Ge-ze),Ee=te;Ee>=0;Ee--){for(var on=!0,rn=0;rnWt&&(zt=Wt):zt=Wt;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(Wt+Ge<=te){var ze,Ee,Xe,on;switch(Ge){case 1:le<128&&(ye=le);break;case 2:ze=Pt[Wt+1],(192&ze)==128&&(on=(31&le)<<6|63&ze)>127&&(ye=on);break;case 3:ze=Pt[Wt+1],Ee=Pt[Wt+2],(192&ze)==128&&(192&Ee)==128&&(on=(15&le)<<12|(63&ze)<<6|63&Ee)>2047&&(on<55296||on>57343)&&(ye=on);break;case 4:ze=Pt[Wt+1],Ee=Pt[Wt+2],Xe=Pt[Wt+3],(192&ze)==128&&(192&Ee)==128&&(192&Xe)==128&&(on=(15&le)<<18|(63&ze)<<12|(63&Ee)<<6|63&Xe)>65535&&on<1114112&&(ye=on)}}ye===null?(ye=65533,Ge=1):ye>65535&&(ye-=65536,zt.push(ye>>>10&1023|55296),ye=56320|1023&ye),zt.push(ye),Wt+=Ge}return be(zt)}function be(Pt){var Et=Pt.length;if(Et<=Ht)return String.fromCharCode.apply(String,Pt);for(var te="",zt=0;ztzt)&&(te=zt);for(var Wt="",le=Et;lete)throw new RangeError("Trying to access beyond buffer length")}function Jt(Pt,Et,te,zt,Wt,le){if(!Mt.isBuffer(Pt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Et>Wt||EtPt.length)throw new RangeError("Index out of range")}function re(Pt,Et,te,zt){Et<0&&(Et=65535+Et+1);for(var Wt=0,le=Math.min(Pt.length-te,2);Wt>>8*(zt?Wt:1-Wt)}function se(Pt,Et,te,zt){Et<0&&(Et=4294967295+Et+1);for(var Wt=0,le=Math.min(Pt.length-te,4);Wt>>8*(zt?Wt:3-Wt)&255}function pe(Pt,Et,te,zt,Wt,le){if(te+zt>Pt.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("Index out of range")}function ue(Pt,Et,te,zt,Wt){return Wt||pe(Pt,Et,te,4,34028234663852886e22,-34028234663852886e22),Vt.write(Pt,Et,te,zt,23,4),te+4}function Ie(Pt,Et,te,zt,Wt){return Wt||pe(Pt,Et,te,8,17976931348623157e292,-17976931348623157e292),Vt.write(Pt,Et,te,zt,52,8),te+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 Pe(Pt,Et){Et=Et||1/0;for(var te,zt=Pt.length,Wt=null,le=[],ye=0;ye55295&&te<57344){if(!Wt){if(te>56319){(Et-=3)>-1&&le.push(239,191,189);continue}if(ye+1===zt){(Et-=3)>-1&&le.push(239,191,189);continue}Wt=te;continue}if(te<56320){(Et-=3)>-1&&le.push(239,191,189),Wt=te;continue}te=65536+(Wt-55296<<10|te-56320)}else Wt&&(Et-=3)>-1&&le.push(239,191,189);if(Wt=null,te<128){if((Et-=1)<0)break;le.push(te)}else if(te<2048){if((Et-=2)<0)break;le.push(te>>6|192,63&te|128)}else if(te<65536){if((Et-=3)<0)break;le.push(te>>12|224,te>>6&63|128,63&te|128)}else{if(!(te<1114112))throw new Error("Invalid code point");if((Et-=4)<0)break;le.push(te>>18|240,te>>12&63|128,te>>6&63|128,63&te|128)}}return le}function He(Pt){for(var Et=[],te=0;te>8,Wt=te%256,le.push(Wt),le.push(zt);return le}function _e(Pt){return At.toByteArray(Fe(Pt))}function ie(Pt,Et,te,zt){for(var Wt=0;Wt=Et.length||Wt>=Pt.length);++Wt)Et[Wt+te]=Pt[Wt];return Wt}function Tt(Pt){return Pt!==Pt}var At=wt("base64-js"),Vt=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,te){return Bt(null,Pt,Et,te)},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,te){return kt(null,Pt,Et,te)},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 te=Pt.length,zt=Et.length,Wt=0,le=Math.min(te,zt);Wt0&&(Pt=this.toString("hex",0,Et).match(/.{2}/g).join(" "),this.length>Et&&(Pt+=" ... ")),""},Mt.prototype.compare=function(Pt,Et,te,zt,Wt){if(!Mt.isBuffer(Pt))throw new TypeError("Argument must be a Buffer");if(Et===void 0&&(Et=0),te===void 0&&(te=Pt?Pt.length:0),zt===void 0&&(zt=0),Wt===void 0&&(Wt=this.length),Et<0||te>Pt.length||zt<0||Wt>this.length)throw new RangeError("out of range index");if(zt>=Wt&&Et>=te)return 0;if(zt>=Wt)return-1;if(Et>=te)return 1;if(Et>>>=0,te>>>=0,zt>>>=0,Wt>>>=0,this===Pt)return 0;for(var le=Wt-zt,ye=te-Et,Ge=Math.min(le,ye),ze=this.slice(zt,Wt),Ee=Pt.slice(Et,te),Xe=0;XeWt)&&(te=Wt),Pt.length>0&&(te<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,te);case"utf8":case"utf-8":return Ut(this,Pt,Et,te);case"ascii":return Nt(this,Pt,Et,te);case"latin1":case"binary":return qt(this,Pt,Et,te);case"base64":return ee(this,Pt,Et,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Yt(this,Pt,Et,te);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 Ht=4096;Mt.prototype.slice=function(Pt,Et){var te=this.length;Pt=~~Pt,Et=Et===void 0?te:~~Et,Pt<0?(Pt+=te)<0&&(Pt=0):Pt>te&&(Pt=te),Et<0?(Et+=te)<0&&(Et=0):Et>te&&(Et=te),Et0&&(Wt*=256);)zt+=this[Pt+--Et]*Wt;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,te){Pt|=0,Et|=0,te||he(Pt,Et,this.length);for(var zt=this[Pt],Wt=1,le=0;++le=Wt&&(zt-=Math.pow(2,8*Et)),zt},Mt.prototype.readIntBE=function(Pt,Et,te){Pt|=0,Et|=0,te||he(Pt,Et,this.length);for(var zt=Et,Wt=1,le=this[Pt+--zt];zt>0&&(Wt*=256);)le+=this[Pt+--zt]*Wt;return Wt*=128,le>=Wt&&(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 te=this[Pt]|this[Pt+1]<<8;return 32768&te?4294901760|te:te},Mt.prototype.readInt16BE=function(Pt,Et){Et||he(Pt,2,this.length);var te=this[Pt+1]|this[Pt]<<8;return 32768&te?4294901760|te:te},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),Vt.read(this,Pt,!0,23,4)},Mt.prototype.readFloatBE=function(Pt,Et){return Et||he(Pt,4,this.length),Vt.read(this,Pt,!1,23,4)},Mt.prototype.readDoubleLE=function(Pt,Et){return Et||he(Pt,8,this.length),Vt.read(this,Pt,!0,52,8)},Mt.prototype.readDoubleBE=function(Pt,Et){return Et||he(Pt,8,this.length),Vt.read(this,Pt,!1,52,8)},Mt.prototype.writeUIntLE=function(Pt,Et,te,zt){Pt=+Pt,Et|=0,te|=0,!zt&&Jt(this,Pt,Et,te,Math.pow(2,8*te)-1,0);var Wt=1,le=0;for(this[Et]=255&Pt;++le=0&&(le*=256);)this[Et+Wt]=Pt/le&255;return Et+te},Mt.prototype.writeUInt8=function(Pt,Et,te){return Pt=+Pt,Et|=0,te||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,te){return Pt=+Pt,Et|=0,te||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,te){return Pt=+Pt,Et|=0,te||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,te){return Pt=+Pt,Et|=0,te||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,te){return Pt=+Pt,Et|=0,te||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,te,zt){if(Pt=+Pt,Et|=0,!zt){var Wt=Math.pow(2,8*te-1);Jt(this,Pt,Et,te,Wt-1,-Wt)}var le=0,ye=1,Ge=0;for(this[Et]=255&Pt;++le>0)-Ge&255;return Et+te},Mt.prototype.writeIntBE=function(Pt,Et,te,zt){if(Pt=+Pt,Et|=0,!zt){var Wt=Math.pow(2,8*te-1);Jt(this,Pt,Et,te,Wt-1,-Wt)}var le=te-1,ye=1,Ge=0;for(this[Et+le]=255&Pt;--le>=0&&(ye*=256);)Pt<0&&Ge===0&&this[Et+le+1]!==0&&(Ge=1),this[Et+le]=(Pt/ye>>0)-Ge&255;return Et+te},Mt.prototype.writeInt8=function(Pt,Et,te){return Pt=+Pt,Et|=0,te||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,te){return Pt=+Pt,Et|=0,te||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,te){return Pt=+Pt,Et|=0,te||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,te){return Pt=+Pt,Et|=0,te||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,te){return Pt=+Pt,Et|=0,te||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,te){return ue(this,Pt,Et,!0,te)},Mt.prototype.writeFloatBE=function(Pt,Et,te){return ue(this,Pt,Et,!1,te)},Mt.prototype.writeDoubleLE=function(Pt,Et,te){return Ie(this,Pt,Et,!0,te)},Mt.prototype.writeDoubleBE=function(Pt,Et,te){return Ie(this,Pt,Et,!1,te)},Mt.prototype.copy=function(Pt,Et,te,zt){if(te||(te=0),zt||zt===0||(zt=this.length),Et>=Pt.length&&(Et=Pt.length),Et||(Et=0),zt>0&&zt=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;--Wt)Pt[Wt+Et]=this[Wt+te];else if(le<1e3||!Mt.TYPED_ARRAY_SUPPORT)for(Wt=0;Wt>>=0,te=te===void 0?this.length:te>>>0,Pt||(Pt=0);var le;if(typeof Pt=="number")for(le=Et;le>>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(ee,Yt,de){if(this instanceof Nt){switch(arguments.length){case 0:return new Nt;case 1:return new Nt(ee);case 2:return new Nt(ee,Yt)}return new Nt(ee,Yt,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(we){if(!yt&&we in de)return de[we];switch(we){case"keys":case"values":return function(){return new ot(this,we)}}return function(){return new ot(this,we)}},qt=lt+" Iterator",ee=ct=="values",Yt=!1,de=tt.prototype,ge=de[Dt]||de["@@iterator"]||ct&&de[ct],be=ge||Nt(ct),Ne=ct?ee?Nt("entries"):be:void 0,We=lt=="Array"&&de.entries||ge;if(We&&(Ut=xt(We.call(new tt)))!==Object.prototype&&Ut.next&&(kt(Ut,qt,!0),Ot||typeof Ut[Dt]=="function"||Mt(Ut,Dt,et)),ee&&ge&&ge.name!=="values"&&(Yt=!0,be=function(){return ge.call(this)}),Ot&&!gt||!yt&&!Yt&&de[Dt]||Mt(de,Dt,be),Bt[lt]=be,Bt[qt]=et,ct)if(Lt={values:ee?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||Yt),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("